pkgsrc/games/quake3server/Makefile

90 lines
3.3 KiB
Makefile
Raw Normal View History

2011-03-11 13:16:31 +01:00
# $NetBSD: Makefile,v 1.14 2011/03/11 12:24:39 zafer Exp $
DISTNAME= linuxq3apoint-1.32b.x86
PKGNAME= quake3server-1.32b
PKGREVISION= 2
CATEGORIES= games net
2011-03-11 13:16:31 +01:00
MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/quake3/linux/ \
http://distfiles.aydogan.net/games/
EXTRACT_SUFX= .run
MAINTAINER= david@silicium.ath.cx
COMMENT= Quake III Arena Dedicated Server for Linux
PKG_DESTDIR_SUPPORT= user-destdir
.include "../../games/quake3server/Makefile.common"
* Add new emulator framework in pkgsrc/mk/emulator that handles all binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
2007-07-29 07:18:36 +02:00
USE_TOOLS+= gtar
EXTRACT_CMD= ${SED} '1,265d' ${DOWNLOADED_DISTFILE} | ${GTAR} xzf -
NO_BUILD= yes
* Add new emulator framework in pkgsrc/mk/emulator that handles all binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
2007-07-29 07:18:36 +02:00
WRKSRC= ${WRKDIR}
BASEDOCDIR= ${PREFIX}/share/doc/lokigames/quake3server
RCD_SCRIPTS= quake3server
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "DragonFly"
# DragonFly sed(1) adds trailing newline and it confuses gzip(1). Bsdtar,
# which doesn't use gzip but zlib, extracts the archive fine though.
TOOLS_PLATFORM.gtar= /usr/bin/bsdtar
.endif
SPECIAL_PERMS+= ${Q3ROOTDIR}/q3ded nobody nogroup 0500
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${Q3ROOTDIR}/pb \
${DESTDIR}${Q3ROOTDIR}/baseq3 \
${DESTDIR}${Q3ROOTDIR}/missionpack
.for bpak in 1 2 3 4 5 6 7 8
${INSTALL_DATA} ${WRKSRC}/baseq3/pak${bpak}.pk3 \
${DESTDIR}${Q3ROOTDIR}/baseq3
.endfor
.for mpak in 1 2 3
${INSTALL_DATA} ${WRKSRC}/missionpack/pak${mpak}.pk3 \
${DESTDIR}${Q3ROOTDIR}/missionpack
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/bin/x86/q3ded ${DESTDIR}${Q3ROOTDIR}
.for pb in pbag.so pbcl.so pbsv.so
${INSTALL_DATA} ${WRKSRC}/pb/${pb} ${DESTDIR}${Q3ROOTDIR}/pb
.endfor
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${BASEDOCDIR}/Docs/LinuxFAQ \
${DESTDIR}${BASEDOCDIR}/Docs/PunkBuster/admins \
${DESTDIR}${BASEDOCDIR}/Docs/PunkBuster/players \
${DESTDIR}${BASEDOCDIR}/pb/htm
.for docs in CHANGES-1.32.txt INSTALL Q3A_EULA.txt README-Id-7-26-01.html \
README-linux.txt quake3.xpm
${INSTALL_DATA} ${WRKSRC}/${docs} ${DESTDIR}${BASEDOCDIR}
.endfor
.for faq in INSTALL index.html udp_wide_README.txt udp_wide_broadcast.patch
${INSTALL_DATA} ${WRKSRC}/Docs/LinuxFAQ/${faq} \
${DESTDIR}${BASEDOCDIR}/Docs/LinuxFAQ
.endfor
.for admins in index.htm tabout1.gif tadvanced1.gif tbasics1.gif \
tcommands1.gif tcommands2.gif tenabling1.gif tfaq1.gif tgame1.gif \
tintro1.gif tlogo.gif tmonitoring1.gif tpbint1.gif tpbsub1.gif \
tplayer1.gif tquick1.gif tremote1.gif tscreen1.gif tsettings1.gif \
ttitle1.gif ttoc1.gif tupdating1.gif
${INSTALL_DATA} ${WRKSRC}/Docs/PunkBuster/admins/${admins} \
${DESTDIR}${BASEDOCDIR}/Docs/PunkBuster/admins
.endfor
.for players in index.htm sbrowser1.jpg skeyboard1.gif stilde1.gif tabout1.gif \
tbasics1.gif tbutton1.gif tbutton2.gif tcommands1.gif tcommands2.gif \
tenabling1.gif tfaq1.gif tfinding1.gif tgame1.gif tintro1.gif \
tlogo.gif tmonitoring1.gif tname1.gif tpbint1.gif tpbsub1.gif \
tquick1.gif tremote1.gif tscreen1.gif tsettings1.gif ttaking1.gif \
ttitle1.gif ttoc1.gif tupdating1.gif tusing1.gif
${INSTALL_DATA} ${WRKSRC}/Docs/PunkBuster/players/${players} \
${DESTDIR}${BASEDOCDIR}/Docs/PunkBuster/players
.endfor
.for pbhtm in la001293.htm lc000993.htm ls000993.htm ma001293.htm mc000993.htm \
ms000993.htm wa001293.htm wc000993.htm ws000993.htm
${INSTALL_DATA} ${WRKSRC}/pb/htm/${pbhtm} ${DESTDIR}${BASEDOCDIR}/pb/htm
.endfor
${INSTALL_DATA} ${WRKSRC}/pb/PB_EULA.txt ${DESTDIR}${BASEDOCDIR}/pb
.include "../../mk/bsd.pkg.mk"