Date: Fri, 1 Nov 2013 02:50:41 +0000 (UTC) From: Danilo Egea Gondolfo <danilo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r332338 - head/games/d2x Message-ID: <201311010250.rA12ofoH080011@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danilo Date: Fri Nov 1 02:50:40 2013 New Revision: 332338 URL: http://svnweb.freebsd.org/changeset/ports/332338 Log: - Add stage support - Add DOCS and OPENGL options - Use options helpers - Convert USE_GMAKE to USES Modified: head/games/d2x/Makefile Modified: head/games/d2x/Makefile ============================================================================== --- head/games/d2x/Makefile Fri Nov 1 02:30:54 2013 (r332337) +++ head/games/d2x/Makefile Fri Nov 1 02:50:40 2013 (r332338) @@ -11,41 +11,35 @@ MAINTAINER= ports@FreeBSD.org COMMENT= Unix port of Descent 2 Game GNU_CONFIGURE= yes +USES= gmake USE_SDL= sdl image -USE_GMAKE= yes CONFIGURE_ARGS= --disable-network --disable-debug PORTDOCS= README TODO NEWS AUTHORS readme.txt installation.txt PLIST_FILES= bin/d2x -.ifdef(WITH_OPENGL) -USE_GL= glut -CONFIGURE_ARGS+=--with-opengl -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -.endif +OPTIONS_DEFINE= OPENGL DOCS + +OPENGL_CONFIGURE_WITH= opengl +OPENGL_CXXFLAGS= -I${LOCALBASE}/include +OPENGL_LDFLAGS= -L${LOCALBASE}/lib -NO_STAGE= yes -pre-everything:: -.ifndef(WITH_OPENGL) - @${ECHO_MSG} "" - @${ECHO_MSG} "Define WITH_OPENGL to use OpenGL for 3D graphics" - @${ECHO_MSG} "" +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MOPENGL} +USE_GL= glut .endif do-install: -.ifdef(WITH_OPENGL) - ${INSTALL} ${WRKSRC}/d2x-gl ${PREFIX}/bin/d2x +.if ${PORT_OPTIONS:MOPENGL} + ${INSTALL_PROGRAM} ${WRKSRC}/d2x-gl ${STAGEDIR}${PREFIX}/bin/d2x .else - ${INSTALL} ${WRKSRC}/d2x-sdl ${PREFIX}/bin/d2x + ${INSTALL_PROGRAM} ${WRKSRC}/d2x-sdl ${STAGEDIR}${PREFIX}/bin/d2x .endif -.if !defined(NOPORTDOCS) - ${MKDIR} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor -.endif - ${CAT} ${PKGMESSAGE} .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311010250.rA12ofoH080011>