aboutsummaryrefslogtreecommitdiffstats
path: root/games/linux-q3ademo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/linux-q3ademo/Makefile')
-rw-r--r--games/linux-q3ademo/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/games/linux-q3ademo/Makefile b/games/linux-q3ademo/Makefile
index bfc38e82d8ed..bc2411aaf6a1 100644
--- a/games/linux-q3ademo/Makefile
+++ b/games/linux-q3ademo/Makefile
@@ -21,8 +21,15 @@ EXTRACT_SUFX=
MAINTAINER= 3d@freebsd.org
COMMENT= Linux 3d shooter from id Software / Loki Software (demo version)
-RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \
- /compat/linux/lib/libGL.so:${PORTSDIR}/graphics/linux_glx
+RUN_DEPENDS= /compat/linux/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
+
+.include <bsd.port.pre.mk>
+
+.if ${XFREE86_VERSION} == 4
+RUN_DEPENDS += /compat/linux/usr/X11R6/lib/libGL.so.1:${PORTSDIR}/graphics/linux_dri
+.else
+RUN_DEPENDS += /compat/linux/lib/libGL.so:${PORTSDIR}/graphics/linux_glx
+.endif
USE_X_PREFIX= yes
USE_MESA= yes
@@ -30,8 +37,6 @@ USE_MESA= yes
# Linux binary should not be stripped by INSTALL_PROGRAM as it uses /usr/bin/strip which then brands the binary as a FreeBSD ELF one.
STRIP=
-.include <bsd.port.pre.mk>
-
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE= may not be automatically fetched due to licensing\
restrictions. You MUST manually fetch the Linux version from:\