aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2005-07-17 18:03:40 +0800
committernetchild <netchild@FreeBSD.org>2005-07-17 18:03:40 +0800
commit9464cdc3616d779e2f203b355cf731e12edcc0d0 (patch)
tree0076bd598c238bb37a060c44bc1f46a8cf27a281
parentbe044e8badb626c31df97bfe2811147d07229e05 (diff)
downloadfreebsd-ports-graphics-9464cdc3616d779e2f203b355cf731e12edcc0d0.tar.gz
freebsd-ports-graphics-9464cdc3616d779e2f203b355cf731e12edcc0d0.tar.zst
freebsd-ports-graphics-9464cdc3616d779e2f203b355cf731e12edcc0d0.zip
- respect WITH_NVIDIA_GL setting
- Use PKGNAMEPREFIX (portlint) Submitted by: Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de>
-rw-r--r--games/linux-q3ademo/Makefile9
-rw-r--r--games/linux-quake3-demo/Makefile9
2 files changed, 14 insertions, 4 deletions
diff --git a/games/linux-q3ademo/Makefile b/games/linux-q3ademo/Makefile
index 7416ed8b981..9bb3d40ae61 100644
--- a/games/linux-q3ademo/Makefile
+++ b/games/linux-q3ademo/Makefile
@@ -8,12 +8,13 @@
# $FreeBSD$
#
-PORTNAME= linux-q3ademo
+PORTNAME= q3ademo
PORTVERSION= 1.11.6
PORTREVISION= 3
CATEGORIES= games graphics linux
# fetch manually
MASTER_SITES=
+PKGNAMEPREFIX= linux-
DISTNAME= linuxq3ademo-1.11-6.x86.gz.sh
# dont uncompress
EXTRACT_SUFX=
@@ -28,7 +29,11 @@ USE_X_PREFIX= yes
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
-RUN_DEPENDS += ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
+.ifdef(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:${PORTSDIR}/graphics/linux_glx
.endif
diff --git a/games/linux-quake3-demo/Makefile b/games/linux-quake3-demo/Makefile
index 7416ed8b981..9bb3d40ae61 100644
--- a/games/linux-quake3-demo/Makefile
+++ b/games/linux-quake3-demo/Makefile
@@ -8,12 +8,13 @@
# $FreeBSD$
#
-PORTNAME= linux-q3ademo
+PORTNAME= q3ademo
PORTVERSION= 1.11.6
PORTREVISION= 3
CATEGORIES= games graphics linux
# fetch manually
MASTER_SITES=
+PKGNAMEPREFIX= linux-
DISTNAME= linuxq3ademo-1.11-6.x86.gz.sh
# dont uncompress
EXTRACT_SUFX=
@@ -28,7 +29,11 @@ USE_X_PREFIX= yes
.include <bsd.port.pre.mk>
.if ${X_WINDOW_SYSTEM:L} != xfree86-3
-RUN_DEPENDS += ${LINUXBASE}/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
+.ifdef(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:${PORTSDIR}/graphics/linux_glx
.endif