diff options
Diffstat (limited to 'games/quake3/Makefile')
-rw-r--r-- | games/quake3/Makefile | 56 |
1 files changed, 17 insertions, 39 deletions
diff --git a/games/quake3/Makefile b/games/quake3/Makefile index 3343fa517211..41846d782d2f 100644 --- a/games/quake3/Makefile +++ b/games/quake3/Makefile @@ -15,58 +15,36 @@ MASTER_SITES= ftp://ftp.idsoftware.com/idstuff/source/ \ http://www.teamdarkside.net/ \ http://0day.icculus.org/mirrors/quake3/ \ http://www.olpainless.net/files/ -EXTRACT_SUFX= -source.zip -EXTRACT_ONLY= +DISTFILES= ${DISTNAME}-source${EXTRACT_SUFX} MAINTAINER= shirshegsm@gmail.com COMMENT= Quake III Arena -- first person shooter (native build) -EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip -BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm +BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm -USE_GMAKE= yes -USE_PERL5_BUILD= yes -USE_GL= yes -USE_REINPLACE= yes -CONFLICTS= q3server-1.32* +USE_ZIP= yes +USE_GMAKE= yes +USE_REINPLACE= yes +USE_PERL5_BUILD=yes +USE_GL= yes -# We need that -a flag -do-extract: - ${MKDIR} ${WRKDIR} && \ - cd ${WRKDIR} && \ - ${UNZIP_CMD} -aqx ${DISTDIR}/${PORTNAME}-${PORTVERSION}-source.zip +PLIST_FILES= bin/q3ded bin/quake3 post-patch: - @${REINPLACE_CMD} -e 's|##PREFIX##|${PREFIX}|g' ${WRKSRC}/code/unix/unix_shared.c + @${REINPLACE_CMD} -e 's|%%Q3DIR%%|"${Q3DIR}"|' \ + ${WRKSRC}/code/unix/unix_shared.c pre-build: - ${MKDIR} ${WRKSRC}/lcc/build + ${MKDIR} ${WRKSRC}/lcc/build do-build: - cd ${WRKSRC}/code && \ - ${PERL} unix/cons - ${MV} ${WRKSRC}/code/install/linuxq3ded ${WRKSRC}/code/install/q3ded - ${MV} ${WRKSRC}/code/install/linuxquake3 ${WRKSRC}/code/install/quake3 + cd ${WRKSRC}/code && ${PERL} unix/cons do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/code/install/q3ded ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/code/install/quake3 ${PREFIX}/bin - ${MKDIR} ${PREFIX}/lib/quake3/baseq3/vm - ${CP} ${WRKSRC}/code/install/baseq3/cgamei386.so ${PREFIX}/lib/quake3/baseq3 - ${CP} ${WRKSRC}/code/install/baseq3/qagamei386.so ${PREFIX}/lib/quake3/baseq3 - ${CP} ${WRKSRC}/code/install/baseq3/uii386.so ${PREFIX}/lib/quake3/baseq3 - ${CP} ${WRKSRC}/code/install/baseq3/vm/cgame.qvm ${PREFIX}/lib/quake3/baseq3/vm - ${CP} ${WRKSRC}/code/install/baseq3/vm/qagame.qvm ${PREFIX}/lib/quake3/baseq3/vm - ${CP} ${WRKSRC}/code/install/baseq3/vm/ui.qvm ${PREFIX}/lib/quake3/baseq3/vm - ${MKDIR} ${PREFIX}/lib/quake3/missionpack/vm - ${CP} ${WRKSRC}/code/install/missionpack/cgamei386.so ${PREFIX}/lib/quake3/missionpack - ${CP} ${WRKSRC}/code/install/missionpack/qagamei386.so ${PREFIX}/lib/quake3/missionpack - ${CP} ${WRKSRC}/code/install/missionpack/uii386.so ${PREFIX}/lib/quake3/missionpack - ${CP} ${WRKSRC}/code/install/missionpack/vm/cgame.qvm ${PREFIX}/lib/quake3/missionpack/vm - ${CP} ${WRKSRC}/code/install/missionpack/vm/qagame.qvm ${PREFIX}/lib/quake3/missionpack/vm - ${CP} ${WRKSRC}/code/install/missionpack/vm/ui.qvm ${PREFIX}/lib/quake3/missionpack/vm - -post-install: - ${CAT} pkg-message + ${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxq3ded \ + ${PREFIX}/bin/q3ded + ${INSTALL_PROGRAM} ${WRKSRC}/code/install/linuxquake3 \ + ${PREFIX}/bin/quake3 +.include "${.CURDIR}/../quake3-data/Makefile.include" .include <bsd.port.mk> |