From 8fc162fbb1dd38291ba89f8af59c4ffc95d328b1 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Tue, 4 May 2004 18:22:38 +0000 Subject: - Add WITH_OPENGL knob to turn on OpenGL 3D graphics PR: ports/66221 Submitted by: Radim Kolar (maintainer) --- games/d2x/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'games') 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} -- cgit v1.2.3