aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-06-10 17:03:54 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-06-10 17:03:54 +0800
commit7229ab4b88ff9375ae4a73a219c19411252cc99a (patch)
treeca2f4094727cf56d0c3bbd9a6a32c577d6679756 /games
parent74c3120cc7434fac27518b0e2681f1e8152e7e8a (diff)
downloadfreebsd-ports-gnome-7229ab4b88ff9375ae4a73a219c19411252cc99a.tar.gz
freebsd-ports-gnome-7229ab4b88ff9375ae4a73a219c19411252cc99a.tar.zst
freebsd-ports-gnome-7229ab4b88ff9375ae4a73a219c19411252cc99a.zip
- Switch to options helpers
Diffstat (limited to 'games')
-rw-r--r--games/capicity/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/games/capicity/Makefile b/games/capicity/Makefile
index a4be851f0463..4f68da62716d 100644
--- a/games/capicity/Makefile
+++ b/games/capicity/Makefile
@@ -42,20 +42,12 @@ OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
-.include <bsd.port.options.mk>
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/CapiCity \
${STAGEDIR}${PREFIX}/bin/${PORTNAME}
-
.for d in games images
@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
.endfor
-
-.if ${PORT_OPTIONS:MNLS}
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} ts ${STAGEDIR}${DATADIR})
-.endif
-
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKSRC}/icons/${s}.png \
@@ -64,6 +56,10 @@ do-install:
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
+do-install-NLS-on:
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} ts ${STAGEDIR}${DATADIR})
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}