aboutsummaryrefslogtreecommitdiff
path: root/games/galaxymage/Makefile
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-07-09 10:07:28 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-07-09 10:07:28 +0000
commit3d683598c437faca0082db789decc93dd6a32a9e (patch)
tree1edddd4327f78b164ba9fc07e7678fb2a203e5c8 /games/galaxymage/Makefile
parenta88724972a0244b62015a72725cb4d98c5789884 (diff)
downloadports-3d683598c437faca0082db789decc93dd6a32a9e.tar.gz
ports-3d683598c437faca0082db789decc93dd6a32a9e.zip
1: Stagify.
2: use options helper.
Notes
Notes: svn path=/head/; revision=361348
Diffstat (limited to 'games/galaxymage/Makefile')
-rw-r--r--games/galaxymage/Makefile29
1 files changed, 12 insertions, 17 deletions
diff --git a/games/galaxymage/Makefile b/games/galaxymage/Makefile
index cb22a0cc6547..6e2a35d0833b 100644
--- a/games/galaxymage/Makefile
+++ b/games/galaxymage/Makefile
@@ -17,38 +17,33 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/Numeric/_numpy.so:${PORTSDIR}/math/py-numeric
USE_PYTHON= yes
USES= gettext twisted
NO_BUILD= yes
-
-NO_STAGE= yes
-
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
post-configure:
@${REINPLACE_CMD} -e 's@%%DATADIR%%@${DATADIR}@g' ${WRKSRC}/GalaxyMage.py ${WRKSRC}/src/Resources.py
@${REINPLACE_CMD} -e 's@%%LOCALBASE%%@${LOCALBASE}@g' ${WRKSRC}/src/Translate.py
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/GalaxyMage.py ${PREFIX}/bin/GalaxyMage
- @${MKDIR} ${DATADIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/GalaxyMage.py ${STAGEDIR}${PREFIX}/bin/GalaxyMage
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.for DIRE in src data
@cd ${WRKSRC}/${DIRE} && \
- ${FIND} * -type d -exec ${MKDIR} "${DATADIR}/{}" \; && \
+ ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(py|pyc|txt|TXT|ogg|wav|png|ttf|conf)" -exec ${INSTALL_DATA} "{}" \
- "${DATADIR}/{}" \;
+ "${STAGEDIR}${DATADIR}/{}" \;
.endfor
.for FILE in de en fr nl sp
- @${MKDIR} ${PREFIX}/share/locale/${FILE}/LC_MESSAGES && \
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${FILE}/LC_MESSAGES && \
${INSTALL_DATA} ${WRKSRC}/locale/${FILE}/LC_MESSAGES/* \
- ${PREFIX}/share/locale/${FILE}/LC_MESSAGES
+ ${STAGEDIR}${PREFIX}/share/locale/${FILE}/LC_MESSAGES
.endfor
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/doc && \
- ${FIND} * -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
+ ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
${FIND} -E * -type f -iregex ".*\.(html|css|txt|png)" -exec ${INSTALL_DATA} "{}" \
- "${DOCSDIR}/{}" \;
- @${INSTALL_DATA} ${WRKSRC}/CREDITS.txt ${WRKSRC}/README.txt ${DOCSDIR}
-.endif
+ "${STAGEDIR}${DOCSDIR}/{}" \;
+ @${INSTALL_DATA} ${WRKSRC}/CREDITS.txt ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
+
.include <bsd.port.mk>