aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorscf <scf@FreeBSD.org>2010-10-01 06:16:06 +0800
committerscf <scf@FreeBSD.org>2010-10-01 06:16:06 +0800
commit075196c31cd900dbfbca8a2249f048095840a9d0 (patch)
tree893c4c3685f143cb4b7fa1c118940ca1d0226cf8 /games
parent1227ffffe3b8a275dbf8d86e039081d399902422 (diff)
downloadfreebsd-ports-gnome-075196c31cd900dbfbca8a2249f048095840a9d0.tar.gz
freebsd-ports-gnome-075196c31cd900dbfbca8a2249f048095840a9d0.tar.zst
freebsd-ports-gnome-075196c31cd900dbfbca8a2249f048095840a9d0.zip
Do not apply the NWN movies patch unless the Platinum release is detected.
Approved by: shaun
Diffstat (limited to 'games')
-rw-r--r--games/linux-nwnclient/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/games/linux-nwnclient/Makefile b/games/linux-nwnclient/Makefile
index 08edd1b720d8..d623256f9c43 100644
--- a/games/linux-nwnclient/Makefile
+++ b/games/linux-nwnclient/Makefile
@@ -67,16 +67,18 @@ do-extract:
(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${_distfile} ${EXTRACT_AFTER_ARGS})
.endfor
-.if !defined(WITHOUT_NWMOVIES)
+.if defined(BINKPLAYERFILE)
(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
${DISTDIR}/${NWMOVIESFILE} ${EXTRACT_AFTER_ARGS} \
nwmovies/binklib.so nwmovies/libdis/libdisasm.so \
nwmovies/nwmovies.so)
(cd ${WRKSRC} && ${MV} BinkPlayer nwmovies)
.endif
- ${RM} ${WRKSRC}/lib/libSDL* ${WRKSRC}/SDL-1.2.5/* ${WRKSRC}/fixinstall \
- ${WRKSRC}/nwn
- ${RMDIR} ${WRKSRC}/SDL-1.2.5
+ ${RM} ${WRKSRC}/lib/libSDL* ${WRKSRC}/fixinstall ${WRKSRC}/nwn
+ if [ -d ${WRKSRC}/SDL-1.2.5 ]; then \
+ ${RM} ${WRKSRC}/SDL-1.2.5/*; \
+ ${RMDIR} ${WRKSRC}/SDL-1.2.5; \
+ fi
do-configure:
${SED} -e 's|%%NWNDATADIR%%|${NWNDATADIR}|' \
@@ -90,7 +92,7 @@ do-install:
${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 0755
${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 0644
(cd ${DATADIR} && ${CHMOD} 0755 dmclient nwmain nwserver)
-.if !defined(WITHOUT_NWMOVIES)
+.if defined(BINKPLAYERFILE)
(cd ${DATADIR} && ${CHMOD} 0755 nwmovies/BinkPlayer)
(cd ${DATADIR}/nwmovies && ${LN} -s /compat/linux/usr/lib/libX11.so.6 libX11.so)
${INSTALL_SCRIPT} ${FILESDIR}/nwmovies.pl ${DATADIR}