- Add WITH_OPENGL knob to turn on OpenGL 3D graphics

PR:		ports/66221
Submitted by:	Radim Kolar <hsn@netmag.cz> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-05-04 18:22:38 +00:00
parent 2077e6ab8e
commit 8fc162fbb1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=108391

View file

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