Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 03:36:25 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r348660 - head/games/linux-rtcw
Message-ID:  <201403200336.s2K3aPuL099549@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Thu Mar 20 03:36:25 2014
New Revision: 348660
URL: http://svnweb.freebsd.org/changeset/ports/348660
QAT: https://qat.redports.org/buildarchive/r348660/

Log:
  - Introduce NVIDIA_GL option
  
  PR:		ports/187724
  Submitted by:	Johannes Jost Meixner <xmj@chaot.net>

Modified:
  head/games/linux-rtcw/Makefile

Modified: head/games/linux-rtcw/Makefile
==============================================================================
--- head/games/linux-rtcw/Makefile	Thu Mar 20 02:47:28 2014	(r348659)
+++ head/games/linux-rtcw/Makefile	Thu Mar 20 03:36:25 2014	(r348660)
@@ -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 (L
 
 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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403200336.s2K3aPuL099549>