aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-19 03:19:30 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-19 03:19:30 +0800
commitdf3a7af39c43b7ab0ff5a82950b9d928be8794db (patch)
treedcc05300d3eae8f7186c3c383afda171239a5c69 /games
parent40a4cdb8c4e59e2b7a5128d927fb2e598533843e (diff)
downloadfreebsd-ports-gnome-df3a7af39c43b7ab0ff5a82950b9d928be8794db.tar.gz
freebsd-ports-gnome-df3a7af39c43b7ab0ff5a82950b9d928be8794db.tar.zst
freebsd-ports-gnome-df3a7af39c43b7ab0ff5a82950b9d928be8794db.zip
- Remove NO_PACKAGE
- Add DOCS and NVIDIA_GL options - Add stage support
Diffstat (limited to 'games')
-rw-r--r--games/linux-ut2004-demo/Makefile42
1 files changed, 17 insertions, 25 deletions
diff --git a/games/linux-ut2004-demo/Makefile b/games/linux-ut2004-demo/Makefile
index 7bf804a3f1cc..868370c53967 100644
--- a/games/linux-ut2004-demo/Makefile
+++ b/games/linux-ut2004-demo/Makefile
@@ -17,7 +17,6 @@ COMMENT= Unreal Tournament 2004 demo
ONLY_FOR_ARCHS= i386 amd64
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
-NO_PACKAGE= Distfile size is 275MB, set FORCE_PACKAGE if you really want to build this package
RESTRICTED= Redistribution is limited, see license
NO_BUILD= yes
NO_WRKSUBDIR= yes
@@ -38,12 +37,14 @@ PORTDOCS= *
LIBDIRS= Animations Benchmark ForceFeedback KarmaData Maps Music \
Sounds Speech StaticMeshes System Textures Web
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS NVIDIA_GL
+NVIDIA_GL_DESC= Use GL driver from nvidia-driver
-.if defined(WITH_NVIDIA_GL)
-RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
-.else
+NVIDIA_GL_RUN_DEPENDS= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+
+.include <bsd.port.options.mk>
+
+.if ! ${PORT_OPTIONS:MNVIDIA_GL}
USE_LINUX_APPS+=dri
.endif
@@ -64,30 +65,21 @@ pre-install:
| ${SED} -e 's|^|@dirrm ${UTDIR_REL}/|' >> ${PLIST}
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/ut2004-demo ${PREFIX}/bin
-
+ ${INSTALL_SCRIPT} ${WRKDIR}/ut2004-demo ${STAGEDIR}${PREFIX}/bin
cd ${WRKSRC} && \
${FIND} ${LIBDIRS} -type d ! -empty -exec \
- ${MKDIR} "${UTDIR}/{}" \; && \
+ ${MKDIR} "${STAGEDIR}${UTDIR}/{}" \; && \
${FIND} ${LIBDIRS} -type f -exec \
- ${INSTALL_DATA} "{}" "${UTDIR}/{}" \;
-
- -${CHOWN} ${BINOWN}:${BINGRP} ${UTDIR}/System/*-bin
- ${CHMOD} ${BINMODE} ${UTDIR}/System/*-bin
-
- -${CHOWN} ${LIBOWN}:${LIBGRP} ${UTDIR}/System/*.so*
- ${CHMOD} ${LIBMODE} ${UTDIR}/System/*.so*
-
- ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} "{}" "${STAGEDIR}${UTDIR}/{}" \;
+ ${CHMOD} ${BINMODE} ${STAGEDIR}${UTDIR}/System/*-bin
+ ${CHMOD} ${LIBMODE} ${STAGEDIR}${UTDIR}/System/*.so*
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.for f in Help/UT2004Logo.bmp ut2004.xpm
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
-
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in Help/Manual.pdf README.linux
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>