blob: 353a79ede718e91bb780eb29957a9cade2e1bea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# $NetBSD: Makefile,v 1.19 2008/05/26 02:13:19 joerg Exp $
#
DISTNAME= heretic2-demo-x86
PKGNAME= heretic2-demo-2.0
PKGREVISION= 1
CATEGORIES= games x11
MASTER_SITES= ftp://ftp.linuxgames.com/loki/demos/heretic2/ \
ftp://download.linuxlords.com/pub/demos/heretic2/ \
ftp://ftp.linux.tucows.com/pub/Loki/demos/heretic2/
EXTRACT_SUFX= .run
MAINTAINER= abs@NetBSD.org
HOMEPAGE= http://www.lokigames.com/products/heretic2/
COMMENT= Heretic2 - first person Quake 3D engine based (linux demo)
PKG_DESTDIR_SUPPORT= user-destdir
NO_CONFIGURE= yes
EXTRACT_CMD= ${SED} '1,/^END_OF_STUB$$/d' ${DOWNLOADED_DISTFILE} | \
${GTAR} xzf -
USE_TOOLS+= gtar pax
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly"
# system gzip doesn't like the file, but zlib does.
TOOLS_PLATFORM.gtar= /usr/bin/bsdtar
.endif
ONLY_FOR_PLATFORM=*-*-i386
DISTBINNAME= heretic2_demo.x86
BINNAME= heretic2-demo
WRKSRC= ${WRKDIR}
DIST_SUBDIR= lokigames
LIBDIR= ${PREFIX}/lib/lokigames/${BINNAME}
SHAREDIR= ${PREFIX}/share/doc/lokigames
INSTALLATION_DIRS= bin
do-build:
${SED} -e 's#@@PREFIX@@#${PREFIX}#g' \
-e 's#@@LIBDIR@@#${LIBDIR}#g' \
-e 's#@@BINNAME@@#${BINNAME}#g' \
<${FILESDIR}/wrapper.sh >${WRKDIR}/${BINNAME}.sh
# The executable must be in the same directory as the data.
do-install:
${INSTALL_PROGRAM_DIR} ${DESTDIR}${LIBDIR}
${INSTALL_DATA_DIR} ${DESTDIR}${SHAREDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh \
${DESTDIR}${PREFIX}/bin/${BINNAME}
${INSTALL_PROGRAM} ${WRKSRC}/${DISTBINNAME} \
${DESTDIR}${LIBDIR}/${BINNAME}
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${SHAREDIR}/${BINNAME}-QuickStart.txt
${INSTALL_DATA} ${WRKSRC}/README \
${DESTDIR}${SHAREDIR}/${BINNAME}-README
cd ${WRKSRC} && pax -rw base gl_drivers icon.xpm ref_glx.so \
${DESTDIR}${LIBDIR}
.include "../../mk/bsd.pkg.mk"
|