diff options
author | barner <barner@FreeBSD.org> | 2005-11-17 20:00:51 +0800 |
---|---|---|
committer | barner <barner@FreeBSD.org> | 2005-11-17 20:00:51 +0800 |
commit | fa9a0063355185baece8eebf2ef05fd5db7e524f (patch) | |
tree | 5379660ed3768e704103b5ca48b5d2c12b10d26b /games/vavoom/Makefile | |
parent | 4f464c0c9580adf2d1d78495781ffb47c032bcc6 (diff) | |
download | freebsd-ports-gnome-fa9a0063355185baece8eebf2ef05fd5db7e524f.tar.gz freebsd-ports-gnome-fa9a0063355185baece8eebf2ef05fd5db7e524f.tar.zst freebsd-ports-gnome-fa9a0063355185baece8eebf2ef05fd5db7e524f.zip |
- Integrate with "doom-data".
- Unbreak on 6.x
- Add OPTIONS.
- Use program's install target.
- Make wrapper scripts.
- Add installuser target
- Add SHA256
- Respect CC and friends
PR: ports/86448
Submitted by: Alejandro Pulver <alejandro@varnet.biz>
Tweaked by: Igor Pokrovsky <ip@doom.homeunix.org>, barner
Approved by: Igor Pokrovsky <ip@doom.homeunix.org> (maintainer)
Diffstat (limited to 'games/vavoom/Makefile')
-rw-r--r-- | games/vavoom/Makefile | 44 |
1 files changed, 32 insertions, 12 deletions
diff --git a/games/vavoom/Makefile b/games/vavoom/Makefile index 979a7a3fbec2..a7778f940abb 100644 --- a/games/vavoom/Makefile +++ b/games/vavoom/Makefile @@ -36,18 +36,26 @@ MAKE_ARGS= "USE_SDL=1" MAKE_ARGS+= "USE_AL=1" .endif -.include <bsd.port.pre.mk> - -.if ${OSVERSION} >= 600000 -BROKEN= Does not build on FreeBSD 6.X +.ifdef (WITH_OPTIMIZED_CFLAGS) +MAKE_ARGS+= OPT_CFLAGS="-O3 -ffast-math -fomit-frame-pointer" .endif -.ifndef (WITH_OPENAL) +SUB_FILES= pkg-message vavoom +SUB_LIST= "PREFIX=${PREFIX}" "PORTSDIR=${PORTSDIR}" + +.include "${.CURDIR}/../doom-data/Makefile.include" + +.include <bsd.port.pre.mk> + pre-everything:: - @${ECHO_CMD} "********************************************************************" - @${ECHO_CMD} "You can define WITH_OPENAL=yes to build Vavoom with 3D sound support" - @${ECHO_CMD} "********************************************************************" + @${ECHO_CMD} "" +.ifndef (WITH_OPENAL) + @${ECHO_CMD} "Define WITH_OPENAL=yes to build Vavoom with 3D sound support" +.endif +.ifndef (WITH_OPTIMIZED_CFLAGS) + @${ECHO_CMD} "Define WITH_OPTIMIZED_CFLAGS=yes to build Vavoom optimized for speed" .endif + @${ECHO_CMD} "" post-patch: @${REINPLACE_CMD} -i '' -e 's|SDL\/||g' ${WRKSRC}/source/*.cpp @@ -60,6 +68,9 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/Vavoom ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/VavoomSV ${PREFIX}/bin +# install wrapper script + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin + @${MKDIR} ${DATADIR} @${MKDIR} ${DATADIR}/basev ${INSTALL_DATA} ${WRKSRC}/basev/default.cfg ${DATADIR}/basev @@ -80,9 +91,18 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/docs/vavmref.txt ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/vavoom.txt ${DOCSDIR} .endif - -post-install: - @${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%DATADIR%%|${DATADIR}|' \ - <${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + +# Run this target as a user from which you will play Vavoom. It will create +# required symlinks in users home directory. This should be done only once. +installuser: + cd ${DATADIR} && \ + ${FIND} . -type d -exec ${MKDIR} -p ~/.${PORTNAME}/{} \; && \ + ${FIND} . -type f -exec ${LN} -sf ${DATADIR}/{} ~/.${PORTNAME}/{} \; +.if exists(${DMDIR}) + cd ${DMDIR} && \ + ${FIND} . -type d -exec ${MKDIR} -p ~/.${PORTNAME}/{} \; && \ + ${FIND} . -type f -exec ${LN} -sf ${DMDIR}/{} ~/.${PORTNAME}/{} \; +.endif .include <bsd.port.post.mk> |