diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-05-11 13:06:48 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2016-05-11 13:06:48 +0000 |
commit | cc5b28acc05040ca7ce3dafc55d96f8f89d42994 (patch) | |
tree | d50ddbfd6bd7a2717c3cf957b5b9f2d4675ebc19 /games | |
parent | - Update to 3.17.0.1 (diff) |
- Switch to options helpers
Notes
Notes:
svn path=/head/; revision=414989
Diffstat (limited to 'games')
-rw-r--r-- | games/bouncy/Makefile | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/games/bouncy/Makefile b/games/bouncy/Makefile index 5c6e7ddf952e..90cc87ce3514 100644 --- a/games/bouncy/Makefile +++ b/games/bouncy/Makefile @@ -27,10 +27,6 @@ USES= python:2 PORTDOCS= README.txt -OPTIONS_DEFINE= DOCS SHADER -SHADER_DESC= Hardware shader support -OPTIONS_DEFAULT= SHADER - INSTALLS_ICONS= yes SUB_FILES= ${PORTNAME} @@ -38,16 +34,18 @@ SUB_FILES= ${PORTNAME} DESKTOP_ENTRIES="Bouncy the Hungry Rabbit" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS SHADER +OPTIONS_DEFAULT=SHADER + +SHADER_DESC= Hardware shader support post-patch: @${FIND} ${WRKSRC} -name '*.py' | ${XARGS} \ ${REINPLACE_CMD} -e 's|^.*#!.*python.*$$|#!${PYTHON_CMD}|' @${FIND} ${WRKSRC} -name "*.bak" -delete -.if ${PORT_OPTIONS:MSHADER} +post-patch-SHADER-on: @${REINPLACE_CMD} -i '' '/#try/,/# print/s/#//' ${WRKSRC}/objects.py -.endif do-build: @${PYTHON_CMD} -m compileall ${WRKSRC} @@ -68,6 +66,7 @@ do-install: ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ +do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |