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 | |
parent | 2077e6ab8e1b8cfdc27466c08f8e7bb40bf7acdc (diff) | |
download | ports-8fc162fbb1dd38291ba89f8af59c4ffc95d328b1.tar.gz ports-8fc162fbb1dd38291ba89f8af59c4ffc95d328b1.zip |
Notes
Diffstat (limited to 'games')
-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} |