- respect WITH_NVIDIA_GL setting

- Use PKGNAMEPREFIX (portlint)

Submitted by:	Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de>
This commit is contained in:
Alexander Leidinger 2005-07-17 10:03:40 +00:00
parent b20fc0395c
commit b412f9b07a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=139393
2 changed files with 14 additions and 4 deletions

View File

@ -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

View File

@ -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