aboutsummaryrefslogtreecommitdiffstats
path: root/games/d2x
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-05-05 02:22:38 +0800
committerpav <pav@FreeBSD.org>2004-05-05 02:22:38 +0800
commit6a2055a8237f4c3c37c262592fb576a2bcf7452a (patch)
tree54e8f3157d2348725c01c24894877363075561f2 /games/d2x
parent57cd7524525b037cd04c31f21c5c927e12d7379b (diff)
downloadfreebsd-ports-gnome-6a2055a8237f4c3c37c262592fb576a2bcf7452a.tar.gz
freebsd-ports-gnome-6a2055a8237f4c3c37c262592fb576a2bcf7452a.tar.zst
freebsd-ports-gnome-6a2055a8237f4c3c37c262592fb576a2bcf7452a.zip
- Add WITH_OPENGL knob to turn on OpenGL 3D graphics
PR: ports/66221 Submitted by: Radim Kolar <hsn@netmag.cz> (maintainer)
Diffstat (limited to 'games/d2x')
-rw-r--r--games/d2x/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/games/d2x/Makefile b/games/d2x/Makefile
index d5399f7073b0..f82a65050f08 100644
--- a/games/d2x/Makefile
+++ b/games/d2x/Makefile
@@ -23,8 +23,25 @@ CONFIGURE_ARGS= --disable-network --disable-debug
PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt
PLIST_FILES= bin/d2x
+.ifdef(WITH_OPENGL)
+USE_GL= yes
+CONFIGURE_ARGS+=--with-opengl
+CONFIGURE_ENV=LDFLAGS=-L${X11BASE}/lib CPPFLAGS=-I${X11BASE}/include
+.endif
+
+pre-everything::
+.ifndef(WITH_OPENGL)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "Define WITH_OPENGL to use OpenGL for 3D graphics"
+ @${ECHO_MSG} ""
+.endif
+
do-install:
+.ifdef(WITH_OPENGL)
+ ${INSTALL} ${WRKSRC}/d2x-gl ${PREFIX}/bin/d2x
+.else
${INSTALL} ${WRKSRC}/d2x-sdl ${PREFIX}/bin/d2x
+.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}