svn commit: r333406 - head/games/scare
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sun Nov 10 15:41:30 UTC 2013
Author: danilo
Date: Sun Nov 10 15:41:29 2013
New Revision: 333406
URL: http://svnweb.freebsd.org/changeset/ports/333406
Log:
- Use options helpers
- Add stage support
Modified:
head/games/scare/Makefile
Modified: head/games/scare/Makefile
==============================================================================
--- head/games/scare/Makefile Sun Nov 10 15:25:39 2013 (r333405)
+++ head/games/scare/Makefile Sun Nov 10 15:41:29 2013 (r333406)
@@ -25,15 +25,12 @@ USE_ZIP= yes
PLIST_FILES= bin/scare
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+XGLK_BUILD_DEPENDS= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
+XGLK_RUN_DEPENDS= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
+XGLK_ALL_TARGET= scare glkscare
+XGLK_PLIST_FILES= bin/glkscare
-.if ${PORT_OPTIONS:MXGLK}
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
-RUN_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
-ALL_TARGET= scare glkscare
-PLIST_FILES+= bin/glkscare
-.endif
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e \
@@ -55,9 +52,9 @@ do-configure:
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MXGLK}
- ${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${STAGEDIR}${PREFIX}/bin
.endif
test: build
More information about the svn-ports-head
mailing list