aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2014-05-12 23:47:25 +0800
committerale <ale@FreeBSD.org>2014-05-12 23:47:25 +0800
commit6151dd5f919fd9afdafef3116ec4820b6694d350 (patch)
treec444e4be5a7f7e552c546f9f65c4398495c800e5
parent5bc2c55066911a23ca2cce5ad38bb7f1885fb0b7 (diff)
downloadfreebsd-ports-graphics-6151dd5f919fd9afdafef3116ec4820b6694d350.tar.gz
freebsd-ports-graphics-6151dd5f919fd9afdafef3116ec4820b6694d350.tar.zst
freebsd-ports-graphics-6151dd5f919fd9afdafef3116ec4820b6694d350.zip
Stagify.
-rw-r--r--games/freecol/Makefile28
1 files changed, 11 insertions, 17 deletions
diff --git a/games/freecol/Makefile b/games/freecol/Makefile
index 9a6eda099ef..ff4b7d060c0 100644
--- a/games/freecol/Makefile
+++ b/games/freecol/Makefile
@@ -12,6 +12,8 @@ COMMENT= An open source version of Colonization
LICENSE= GPLv2
+OPTIONS_DEFINE= DOCS
+
USES= zip
NO_BUILD= yes
SUB_FILES= freecol
@@ -22,27 +24,19 @@ PLIST_FILES= bin/freecol
PORTDATA= *
PORTDOCS= *
-DESKTOP_ENTRIES="FreeCol" "${COMMENT}" "${DATADIR}/freecol.xpm" "freecol" "Game;StrategyGame;" "false"
-
-NO_STAGE= yes
-
-OPTIONS_DEFINE= DOCS
-
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="FreeCol" "${COMMENT}" "${DATADIR}/freecol.xpm" "freecol" "Game;StrategyGame;" true
post-extract:
@${MV} ${WRKDIR}/freecol ${WRKSRC}
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/freecol ${PREFIX}/bin/
- @${MKDIR} ${DATADIR}
- @${INSTALL_DATA} ${WRKSRC}/FreeCol.jar ${DATADIR}/
- @${INSTALL_DATA} ${WRKSRC}/freecol.xpm ${DATADIR}/
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR}/)
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} jars ${DATADIR}/)
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- @${INSTALL_DATA} ${WRKSRC}/FreeCol.pdf ${DOCSDIR}/
-.endif
+ ${INSTALL_SCRIPT} ${WRKDIR}/freecol ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ @${INSTALL_DATA} ${WRKSRC}/FreeCol.jar ${STAGEDIR}${DATADIR}/
+ @${INSTALL_DATA} ${WRKSRC}/freecol.xpm ${STAGEDIR}${DATADIR}/
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${STAGEDIR}${DATADIR}/)
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} jars ${STAGEDIR}${DATADIR}/)
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/FreeCol.pdf ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>