2005-03-25 00:43:44 +01:00
|
|
|
# $NetBSD: Makefile,v 1.19 2005/03/24 23:43:44 wiz Exp $
|
2000-12-14 00:58:32 +01:00
|
|
|
|
2003-09-01 00:32:30 +02:00
|
|
|
DISTNAME= linuxq3apoint-1.32b.x86
|
2004-01-04 19:53:54 +01:00
|
|
|
PKGREVISION= 1
|
2003-09-01 00:32:30 +02:00
|
|
|
PKGNAME= quake3arena-1.32b
|
2000-12-14 00:58:32 +01:00
|
|
|
CATEGORIES= games x11
|
2003-09-01 00:32:30 +02:00
|
|
|
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
|
|
|
|
ftp://mirrors.xmission.com/idsoftware/quake3/linux/
|
2000-12-14 00:58:32 +01:00
|
|
|
EXTRACT_SUFX= .run
|
|
|
|
|
2005-03-25 00:43:44 +01:00
|
|
|
MAINTAINER= jmcneill@NetBSD.org
|
2000-12-14 00:58:32 +01:00
|
|
|
HOMEPAGE= http://www.quake3arena.com/
|
2001-02-16 16:10:41 +01:00
|
|
|
COMMENT= Quake 3 Arena -- first person shooter (binary only, no data files)
|
2000-12-14 00:58:32 +01:00
|
|
|
|
2004-04-15 02:20:29 +02:00
|
|
|
CONFLICTS= quake3arena-demo-[0-9]*
|
2003-09-01 00:32:30 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} != Linux
|
2002-04-04 14:29:46 +02:00
|
|
|
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
|
2003-09-01 00:32:30 +02:00
|
|
|
.include "../../emulators/suse_linux/Makefile.application"
|
|
|
|
.else
|
|
|
|
USE_X11= yes
|
|
|
|
.endif
|
2000-12-14 00:58:32 +01:00
|
|
|
|
|
|
|
NO_SRC_ON_FTP= no
|
|
|
|
NO_BIN_ON_FTP= no
|
|
|
|
NO_CONFIGURE= yes
|
2004-04-15 02:20:29 +02:00
|
|
|
CHECK_SHLIBS= NO
|
|
|
|
|
2003-09-01 00:32:30 +02:00
|
|
|
EXTRACT_CMD= ${SED} '1,265d' ${DOWNLOADED_DISTFILE} | ${GTAR} xzf -
|
2000-12-14 00:58:32 +01:00
|
|
|
|
|
|
|
.if !make(fetch)
|
|
|
|
ONLY_FOR_PLATFORM=*-*-i386
|
|
|
|
.endif
|
|
|
|
|
|
|
|
DISTBINNAME= quake3.x86
|
|
|
|
BINNAME= quake3arena
|
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-12-14 00:58:32 +01:00
|
|
|
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}
|
2003-09-01 00:32:30 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/x86/${DISTBINNAME} \
|
2000-12-14 00:58:32 +01:00
|
|
|
${LIBDIR}/${BINNAME}
|
2003-09-01 00:32:30 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README-linux.txt ${SHAREDIR}/${BINNAME}-README
|
|
|
|
|
2003-04-10 03:28:03 +02:00
|
|
|
cd ${WRKSRC} && ${PAX} -rw baseq3 ${LIBDIR}
|
2000-12-14 00:58:32 +01:00
|
|
|
|
2004-04-15 02:20:29 +02:00
|
|
|
.if ${OPSYS} == "FreeBSD"
|
|
|
|
post-install:
|
|
|
|
${BRANDELF} -t Linux ${LIBDIR}/${BINNAME}
|
|
|
|
.endif
|
|
|
|
|
2003-03-26 05:05:37 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|