aboutsummaryrefslogtreecommitdiffstats
path: root/games/tanglet
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-08-25 14:42:58 +0800
committerjgh <jgh@FreeBSD.org>2012-08-25 14:42:58 +0800
commit8818afe2c789ddecfc2a78d31a1d295bb51dd480 (patch)
treec591a1da8bca94580ce6a299ce7d0388a4a28610 /games/tanglet
parentc061ee63d6b294fd4104de71fb35dd43d4e7b78c (diff)
downloadfreebsd-ports-gnome-8818afe2c789ddecfc2a78d31a1d295bb51dd480.tar.gz
freebsd-ports-gnome-8818afe2c789ddecfc2a78d31a1d295bb51dd480.tar.zst
freebsd-ports-gnome-8818afe2c789ddecfc2a78d31a1d295bb51dd480.zip
- port requires data
- remove INSTALL file from PORTDOCS - adopt optionsNG for DOCS PR: 170745 Submitted by: maintainer, nemysis@gmx.ch
Diffstat (limited to 'games/tanglet')
-rw-r--r--games/tanglet/Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/games/tanglet/Makefile b/games/tanglet/Makefile
index 7fcc0fe499fb..a5cdbb50a423 100644
--- a/games/tanglet/Makefile
+++ b/games/tanglet/Makefile
@@ -7,6 +7,7 @@
PORTNAME= tanglet
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://gottcode.org/${PORTNAME}/
EXTRACT_SUFX= -src.tar.bz2
@@ -23,7 +24,9 @@ INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
PORTDATA= *
-PORTDOCS= CREDITS ChangeLog INSTALL
+PORTDOCS= CREDITS ChangeLog
+
+.include <bsd.port.options.mk>
do-configure:
@cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
@@ -33,6 +36,9 @@ do-install:
# Executable
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+# Data
+ @(cd ${WRKSRC} && ${COPYTREE_SHARE} "data translations" ${DATADIR})
+
# Icons
cd ${WRKSRC}/icons && ${FIND} hicolor -type d -name apps -exec \
${MKDIR} ${PREFIX}/share/icons/{} \;
@@ -44,13 +50,8 @@ do-install:
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}.desktop ${PREFIX}/share/applications/
-# Data
-.if !defined(NOPORTDATA)
- @(cd ${WRKSRC} && ${COPYTREE_SHARE} "data translations" ${DATADIR})
-.endif
-
# Documentation
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}