aboutsummaryrefslogtreecommitdiffstats
path: root/games/quetoo
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2014-01-18 02:01:54 +0800
committerdanfe <danfe@FreeBSD.org>2014-01-18 02:01:54 +0800
commita143fbdaa516817128b0b1ea033b8e6c40c5c0f4 (patch)
tree5e096633eb0e87e6285cc93cf9e3cf1600c5e589 /games/quetoo
parent1fe290096d8cf8fa7597b583293828c440fb10aa (diff)
downloadfreebsd-ports-gnome-a143fbdaa516817128b0b1ea033b8e6c40c5c0f4.tar.gz
freebsd-ports-gnome-a143fbdaa516817128b0b1ea033b8e6c40c5c0f4.tar.zst
freebsd-ports-gnome-a143fbdaa516817128b0b1ea033b8e6c40c5c0f4.zip
- Convert deprecated +DOS2UNIX_FILES to USES= dos2unix and stagify
- Fix one misplaced .endif: QMASS and VANCTF options are independent While usually USES are placed above other USE_* knobs, make an exception here because of nice-looking starecase; it also allows to keep logically bound DOS2UNIX_FILES close to USES yet not break apart all USE* knobs at the same time.
Diffstat (limited to 'games/quetoo')
-rw-r--r--games/quetoo/Makefile42
1 files changed, 22 insertions, 20 deletions
diff --git a/games/quetoo/Makefile b/games/quetoo/Makefile
index 913159fb6608..a3ab6ff3e432 100644
--- a/games/quetoo/Makefile
+++ b/games/quetoo/Makefile
@@ -16,7 +16,8 @@ LICENSE= GPLv2
USE_BZIP2= yes
USE_SDL= sdl
USE_GL= glut
-USE_DOS2UNIX= src/vanctf/g_local.h
+USES= dos2unix
+DOS2UNIX_FILES= src/vanctf/g_local.h
GNU_CONFIGURE= yes
CONFIGURE_ENV= OPENGL_CFLAGS="-I${LOCALBASE}/include" \
@@ -38,7 +39,6 @@ VANCTF_DESC= Build Vanilla CTF mod
QMASS_DESC= Build QMass deathmatch mod
MYSQL_DESC= Enable frag logging with MySQL
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGAME}
@@ -91,31 +91,33 @@ post-patch: .SILENT
${REINPLACE_CMD} -e 's,-ldl,,' ${WRKSRC}/src/Makefile.in
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/quetoo ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/quetoo ${STAGEDIR}${PREFIX}/bin
.for g in ${Q2GAMES}
- @${MKDIR} ${LIBDIR}/${g}
- ${INSTALL_PROGRAM} ${WRKSRC}/src/${g}/.libs/game.so ${LIBDIR}/${g}
+ @${MKDIR} ${STAGEDIR}${LIBDIR}/${g}
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/${g}/.libs/game.so \
+ ${STAGEDIR}${LIBDIR}/${g}
.endfor
.if ${PORT_OPTIONS:MQMASS}
- @${MKDIR} ${DATADIR}/qmass/sound
- ${INSTALL_DATA} ${WRKSRC}/data/qmass/sound/*.wav ${DATADIR}/qmass/sound
+ @${MKDIR} ${STAGEDIR}${DATADIR}/qmass/sound
+ ${INSTALL_DATA} ${WRKSRC}/data/qmass/sound/*.wav \
+ ${STAGEDIR}${DATADIR}/qmass/sound
+.endif
.if ${PORT_OPTIONS:MVANCTF}
- @${MKDIR} ${DATADIR}/vanctf/maps
- ${INSTALL_DATA} ${WRKSRC}/data/vanctf/maps/*.ent ${DATADIR}/vanctf/maps
- ${INSTALL_DATA} ${WRKSRC}/data/vanctf/maps.lst ${DATADIR}/vanctf
+ @${MKDIR} ${STAGEDIR}${DATADIR}/vanctf/maps
+ ${INSTALL_DATA} ${WRKSRC}/data/vanctf/maps/*.ent \
+ ${STAGEDIR}${DATADIR}/vanctf/maps
+ ${INSTALL_DATA} ${WRKSRC}/data/vanctf/maps.lst \
+ ${STAGEDIR}${DATADIR}/vanctf
.endif
+.if ${PORT_OPTIONS:MQMASS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/qmass
+ ${INSTALL_DATA} ${WRKSRC}/src/qmass/README ${STAGEDIR}${DOCSDIR}/qmass
.endif
-.if ${PORT_OPTIONS:MDOCS}
-. if ${PORT_OPTIONS:MQMASS}
- @${MKDIR} ${DOCSDIR}/qmass
- ${INSTALL_DATA} ${WRKSRC}/src/qmass/README ${DOCSDIR}/qmass
-. endif
-. if ${PORT_OPTIONS:MVANCTF}
- @${MKDIR} ${DOCSDIR}/vanctf
- ${INSTALL_DATA} ${WRKSRC}/src/vanctf/*E* ${DOCSDIR}/vanctf
-. endif
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.if ${PORT_OPTIONS:MVANCTF}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/vanctf
+ ${INSTALL_DATA} ${WRKSRC}/src/vanctf/*E* ${STAGEDIR}${DOCSDIR}/vanctf
.endif
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include "${.CURDIR}/../quake2-data/Makefile.include"
.include <bsd.port.mk>