Date: Tue, 29 Oct 2013 20:02:19 +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: r331988 - head/games/alienwave Message-ID: <201310292002.r9TK2J5u013474@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danilo Date: Tue Oct 29 20:02:18 2013 New Revision: 331988 URL: http://svnweb.freebsd.org/changeset/ports/331988 Log: - Add stage support - Use options helpers Modified: head/games/alienwave/Makefile Modified: head/games/alienwave/Makefile ============================================================================== --- head/games/alienwave/Makefile Tue Oct 29 19:52:24 2013 (r331987) +++ head/games/alienwave/Makefile Tue Oct 29 20:02:18 2013 (r331988) @@ -27,20 +27,9 @@ ALL_TARGET= ${PORTNAME} PORTDOCS= README STORY TO_DO PLIST_FILES= bin/alienwave -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MLEVEL_EASY} -CFLAGS+= -DLEV_EASY -.endif - -.if ${PORT_OPTIONS:MLEVEL_HARD} -CFLAGS+= -DLEV_HARD -.endif - -.if ${PORT_OPTIONS:MRANDOM_LEVELS} -CFLAGS+= -DRANDOM_LEVELS -.endif +LEVEL_EASY_CFLAGS= -DLEV_EASY +LEVEL_HARD_CFLAGS= -DLEV_HARD +RANDOM_LEVELS_CFLAGS= -DRANDOM_LEVELS post-patch: @${REINPLACE_CMD} -e \ @@ -50,12 +39,10 @@ post-patch: /strip /s|^|#|' ${WRKSRC}/Makefile do-install: - (cd ${WRKSRC} && ${INSTALL_PROGRAM} alienwave ${PREFIX}/bin) -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_PROGRAM} alienwave ${STAGEDIR}${PREFIX}/bin) + @${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${STAGEDIR}${DOCSDIR}) .endfor -.endif .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310292002.r9TK2J5u013474>