blob: 253c6729806b8c6e05aa35913129d772037935a5 (
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
|
# $NetBSD: Makefile,v 1.14 2004/01/04 18:53:54 xtraeme Exp $
DISTNAME= linuxq3apoint-1.32b.x86
PKGREVISION= 1
PKGNAME= quake3arena-1.32b
WRKSRC= ${WRKDIR}
CATEGORIES= games x11
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
ftp://mirrors.xmission.com/idsoftware/quake3/linux/
EXTRACT_SUFX= .run
MAINTAINER= jmcneill@invisible.yi.org
HOMEPAGE= http://www.quake3arena.com/
COMMENT= Quake 3 Arena -- first person shooter (binary only, no data files)
CONFLICTS= quake3arena-demo-[0-9]*
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != Linux
DEPENDS+= suse_base>=6.3:../../emulators/${SUSE_DIR_PREFIX}_base
DEPENDS+= suse_x11>=6.3:../../emulators/${SUSE_DIR_PREFIX}_x11
DEPENDS+= suse_glx>=6.4:../../emulators/${SUSE_DIR_PREFIX}_glx
.include "../../emulators/suse_linux/Makefile.application"
.else
USE_X11= yes
.include "../../graphics/MesaLib/buildlink2.mk"
.endif
NO_SRC_ON_FTP= no
NO_BIN_ON_FTP= no
NO_CONFIGURE= yes
EXTRACT_CMD= ${SED} '1,265d' ${DOWNLOADED_DISTFILE} | ${GTAR} xzf -
.if !make(fetch)
ONLY_FOR_PLATFORM=*-*-i386
.endif
DISTBINNAME= quake3.x86
BINNAME= quake3arena
LIBDIR= ${PREFIX}/lib/lokigames/${BINNAME}
SHAREDIR= ${PREFIX}/share/doc/lokigames
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} ${LIBDIR}
${INSTALL_DATA_DIR} ${SHAREDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${BINNAME}
${INSTALL_PROGRAM} ${WRKSRC}/bin/x86/${DISTBINNAME} \
${LIBDIR}/${BINNAME}
${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${SHAREDIR}/${BINNAME}-README
cd ${WRKSRC} && ${PAX} -rw baseq3 ${LIBDIR}
.include "../../mk/bsd.pkg.mk"
|