aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2014-03-20 11:36:25 +0800
committerswills <swills@FreeBSD.org>2014-03-20 11:36:25 +0800
commit8896d097d28191aacc6fb9b9d563a09396174a49 (patch)
treef60c202b8d474b9ab424cfb4ea47e389fff7726d /games
parentdeadec0fb0a6d1135c7ffac81696c008768740fe (diff)
downloadfreebsd-ports-gnome-8896d097d28191aacc6fb9b9d563a09396174a49.tar.gz
freebsd-ports-gnome-8896d097d28191aacc6fb9b9d563a09396174a49.tar.zst
freebsd-ports-gnome-8896d097d28191aacc6fb9b9d563a09396174a49.zip
- Introduce NVIDIA_GL option
PR: ports/187724 Submitted by: Johannes Jost Meixner <xmj@chaot.net>
Diffstat (limited to 'games')
-rw-r--r--games/linux-rtcw/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/games/linux-rtcw/Makefile b/games/linux-rtcw/Makefile
index 7e495a0787fb..8b6614730a6d 100644
--- a/games/linux-rtcw/Makefile
+++ b/games/linux-rtcw/Makefile
@@ -3,6 +3,7 @@
PORTNAME= rtcw
DISTVERSION= 1.41b
+PORTREVISION= 1
CATEGORIES= games linux
MASTER_SITES= ${MASTER_SITE_IDSOFTWARE}
MASTER_SITE_SUBDIR= wolf/linux
@@ -15,7 +16,7 @@ COMMENT= Return to Castle Wolfenstein (Linux version)
USES= makeself
USE_LINUX= yes
-USE_LINUX_APPS= dri xorglibs
+USE_LINUX_APPS= xorglibs
NO_WRKSUBDIR= yes
WRAPPERS= wolf wolfded wolfsp
@@ -25,7 +26,16 @@ PORTSCOUT= skipv:1.41-3
PORTDOCS= *
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS NVIDIA_GL
+NVIDIA_GL_DESC= Use GL driver from nvidia-driver
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNVIDIA_GL}
+RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
+.else
+USE_LINUX_APPS+= dri
+.endif
# XXX: should probably be converted to use the LICENSE framework
post-extract: