aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-09-04 10:36:31 +0800
committerjylefort <jylefort@FreeBSD.org>2005-09-04 10:36:31 +0800
commit8cf20e50f94cd97eed207870701b84328e303b37 (patch)
tree7e7685abe58db9cc59d05b9193ce0cc787fd66cf
parent8b323e47bbca1ead8c933f9c5964311e79b3aacf (diff)
downloadfreebsd-ports-gnome-8cf20e50f94cd97eed207870701b84328e303b37.tar.gz
freebsd-ports-gnome-8cf20e50f94cd97eed207870701b84328e303b37.tar.zst
freebsd-ports-gnome-8cf20e50f94cd97eed207870701b84328e303b37.zip
- Add a runtime dependency on libGL
- Use USE_X_PREFIX, now that it supports USE_LINUX - STRIP=#empty is no longer needed - Use SUB_FILES - No need to mkdir ${PREFIX}/bin
-rw-r--r--games/linux-doom3-demo/Makefile29
-rw-r--r--games/linux-doom3-demo/files/doom3-demo.in2
2 files changed, 19 insertions, 12 deletions
diff --git a/games/linux-doom3-demo/Makefile b/games/linux-doom3-demo/Makefile
index 809c8b771394..f6aa38ba3f14 100644
--- a/games/linux-doom3-demo/Makefile
+++ b/games/linux-doom3-demo/Makefile
@@ -18,29 +18,36 @@ EXTRACT_SUFX= .run
MAINTAINER= jylefort@FreeBSD.org
COMMENT= DOOM III demo
-RUN_DEPENDS= ${LINUXBASE}/usr/X11R6/lib/libX11.so.6:${PORTSDIR}/x11/linux-XFree86-libs
-
ONLY_FOR_ARCHS= i386
-PREFIX?= ${X11BASE} # USE_X_PREFIX would pull in USE_XLIB
+USE_X_PREFIX= yes
USE_LINUX= yes
NO_PACKAGE= Distfile is 462MB, set FORCE_PACKAGE if you really want to build this package
RESTRICTED= Redistribution is limited, see license
NO_BUILD= yes
NO_WRKSUBDIR= yes
DOOMDIR= ${PREFIX}/lib/${PORTNAME}
-STRIP= # do not brand Linux binaries as FreeBSD on INSTALL_PROGRAM
+
+SUB_FILES= doom3-demo
+SUB_LIST= DOOMDIR="${DOOMDIR}"
+
+.include <bsd.port.pre.mk>
+
+.if ${X_WINDOW_SYSTEM:L} != xfree86-3
+.if defined(WITH_NVIDIA_GL)
+RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+.else
+RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
+.endif
+.else
+RUN_DEPENDS+= ${LINUXBASE}/lib/libGL.so.1:${PORTSDIR}/graphics/linux_glx
+.endif
do-extract:
@${MKDIR} ${WRKSRC}
@cd ${WRKSRC} && ${TAIL} -c +8767 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf -
-post-patch:
- @${SED} -e 's|@DOOMDIR@|${DOOMDIR}|' ${FILESDIR}/doom3-demo.in \
- > ${WRKSRC}/doom3-demo
-
do-install:
- ${MKDIR} ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/doom3-demo ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/doom3-demo ${PREFIX}/bin
${MKDIR} ${DOOMDIR}/demo
${INSTALL_DATA} ${WRKSRC}/demo/demo00.pk4 ${DOOMDIR}/demo
@@ -59,4 +66,4 @@ do-install:
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/linux-doom3-demo/files/doom3-demo.in b/games/linux-doom3-demo/files/doom3-demo.in
index 0b91353beb55..84ae569cb4c4 100644
--- a/games/linux-doom3-demo/files/doom3-demo.in
+++ b/games/linux-doom3-demo/files/doom3-demo.in
@@ -1,6 +1,6 @@
#!/bin/sh
-cd "@DOOMDIR@" || exit 1
+cd "%%DOOMDIR%%" || exit 1
if [ -n "$LD_LIBRARY_PATH" ]; then
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:."