aboutsummaryrefslogtreecommitdiff
path: root/games/linux-virtual-jay-peak
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-09-04 02:04:45 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-09-04 02:04:45 +0000
commit1f74e902b098d5495e8496e7d1aaffd3b5346e5c (patch)
treeda998da65d6f557ae1750a9a3799cf8e20b6d44b /games/linux-virtual-jay-peak
parent90eb024c956b6ebf9ca2a705443af36253c93379 (diff)
downloadports-1f74e902b098d5495e8496e7d1aaffd3b5346e5c.tar.gz
ports-1f74e902b098d5495e8496e7d1aaffd3b5346e5c.zip
Notes
Diffstat (limited to 'games/linux-virtual-jay-peak')
-rw-r--r--games/linux-virtual-jay-peak/Makefile20
1 files changed, 13 insertions, 7 deletions
diff --git a/games/linux-virtual-jay-peak/Makefile b/games/linux-virtual-jay-peak/Makefile
index fff2d9bdbec0..3f53e94f1bc2 100644
--- a/games/linux-virtual-jay-peak/Makefile
+++ b/games/linux-virtual-jay-peak/Makefile
@@ -15,12 +15,6 @@ DISTNAME= virtual_jay_peak_linux_1_1a
MAINTAINER= jylefort@FreeBSD.org
COMMENT= A simulation of snowboarding at the Jay Peak resort in Vermont
-.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
-
WRKSRC= ${WRKDIR}/soulride
ONLY_FOR_ARCHS= i386
USE_X_PREFIX= yes
@@ -48,4 +42,16 @@ do-install:
.endfor
.endif
-.include <bsd.port.mk>
+.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
+
+.include <bsd.port.post.mk>