aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-ut2003-demo
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-19 02:31:24 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-19 02:31:24 +0800
commit0f9db16bacdf80fc502e2b0816a058be40fdf706 (patch)
tree76724e40ab70ef3fec57b6928f0265d9eca4cb51 /games/linux-ut2003-demo
parent624762fa42730cb1e17f73366b1c5af1a3aaa333 (diff)
downloadfreebsd-ports-gnome-0f9db16bacdf80fc502e2b0816a058be40fdf706.tar.gz
freebsd-ports-gnome-0f9db16bacdf80fc502e2b0816a058be40fdf706.tar.zst
freebsd-ports-gnome-0f9db16bacdf80fc502e2b0816a058be40fdf706.zip
- Remove NO_PACKAGE
- Add sdl12 to USE_LINUX_APPS - Add DOCS and NVIDIA_GL options - Fix an error with the libSDL included in the package - Add stage support
Diffstat (limited to 'games/linux-ut2003-demo')
-rw-r--r--games/linux-ut2003-demo/Makefile51
1 files changed, 24 insertions, 27 deletions
diff --git a/games/linux-ut2003-demo/Makefile b/games/linux-ut2003-demo/Makefile
index 8ece0356ac29..3e7b6b590d15 100644
--- a/games/linux-ut2003-demo/Makefile
+++ b/games/linux-ut2003-demo/Makefile
@@ -14,8 +14,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Unreal Tournament 2003 demo
USE_LINUX= yes
-USE_LINUX_APPS= xorglibs
-NO_PACKAGE= Distfile is 130MB, set FORCE_PACKAGE if you really want to build this package
+USE_LINUX_APPS= sdl12 xorglibs
RESTRICTED= Redistribution is limited, see license
NO_BUILD= yes
NO_WRKSUBDIR= yes
@@ -36,12 +35,14 @@ PORTDOCS= *
LIBDIRS= Animations Benchmark ForceFeedback KarmaData Maps Music \
Sounds 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
@@ -59,31 +60,27 @@ pre-install:
${FIND} ${LIBDIRS} -type d ! -empty | ${SORT} -r \
| ${SED} -e 's|^|@dirrm ${UTDIR_REL}/|' >> ${PLIST}
+ # This fix an error with the libSDL included in the ut2003 package
+ @${ECHO_CMD} "@exec cp ${LINUXBASE}/usr/lib/libSDL-1.2.so.0 ${UTDIR}/System/" \
+ >> ${PLIST}
+
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/ut2003-demo ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/ut2003-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}/Benchmark/*.sh ${UTDIR}/System/*-bin
- ${CHMOD} ${BINMODE} ${UTDIR}/Benchmark/*.sh ${UTDIR}/System/*-bin
-
- -${CHOWN} ${LIBOWN}:${LIBGRP} ${UTDIR}/System/*.so*
- ${CHMOD} ${LIBMODE} ${UTDIR}/System/*.so*
-
- ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} "{}" "${STAGEDIR}${UTDIR}/{}" \;
+ ${CHMOD} ${BINMODE} ${STAGEDIR}${UTDIR}/Benchmark/*.sh ${STAGEDIR}${UTDIR}/System/*-bin
+ ${CHMOD} ${LIBMODE} ${STAGEDIR}${UTDIR}/System/*.so*
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.for f in Help/UT2003Logo.bmp Unreal.xpm
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
+.endfor
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in README.linux Help/ReadMe-* eula/*
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-. for f in README.linux Help/ReadMe-* eula/*
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
-. endfor
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>