diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-04 18:22:38 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2004-05-04 18:22:38 +0000 |
commit | 8fc162fbb1dd38291ba89f8af59c4ffc95d328b1 (patch) | |
tree | 85aa8d82e0a07be98c34c64a7751f7ba1c159bb5 /games/d2x | |
parent | - Update to 4.30.3 (diff) |
- Add WITH_OPENGL knob to turn on OpenGL 3D graphics
PR: ports/66221
Submitted by: Radim Kolar <hsn@netmag.cz> (maintainer)
Notes
Notes:
svn path=/head/; revision=108391
Diffstat (limited to 'games/d2x')
-rw-r--r-- | games/d2x/Makefile | 17 |
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} |