aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-10-31 22:44:40 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-10-31 22:44:40 +0800
commit62e70a97b54952a0cbf0d377e03e38b7f47f304b (patch)
tree7996c8a7b9f2ef996a980cecc48b30877749c7be /games
parent3c1dd674c94696dacd3eb611c2d4f03a21f4a01f (diff)
downloadfreebsd-ports-gnome-62e70a97b54952a0cbf0d377e03e38b7f47f304b.tar.gz
freebsd-ports-gnome-62e70a97b54952a0cbf0d377e03e38b7f47f304b.tar.zst
freebsd-ports-gnome-62e70a97b54952a0cbf0d377e03e38b7f47f304b.zip
- Simplify installation
- Drop @dirrm* from plist
Diffstat (limited to 'games')
-rw-r--r--games/fargoal/Makefile11
-rw-r--r--games/fargoal/pkg-plist4
2 files changed, 1 insertions, 14 deletions
diff --git a/games/fargoal/Makefile b/games/fargoal/Makefile
index dc7d3a84718b..77b1a24ab7b6 100644
--- a/games/fargoal/Makefile
+++ b/games/fargoal/Makefile
@@ -22,15 +22,6 @@ SUB_FILES= ${PORTNAME}-sh
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}-sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/../sword ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
-.for f in agreement.txt data gfx sfx
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${CP} -R ${WRKSRC}/../${f} ${STAGEDIR}${DATADIR}
-.endfor
-
-post-install:
- @${FIND} ${STAGEDIR}${DATADIR} -type f -print0 | \
- ${XARGS} -0 ${CHMOD} ${SHAREMODE}
- @${FIND} ${STAGEDIR}${DATADIR} -type d -print0 | \
- ${XARGS} -0 ${CHMOD} ${BINMODE}
+ cd ${WRKSRC}/.. && ${COPYTREE_SHARE} "agreement.txt data gfx sfx" ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
diff --git a/games/fargoal/pkg-plist b/games/fargoal/pkg-plist
index 494f9d121740..3ad1ea35c740 100644
--- a/games/fargoal/pkg-plist
+++ b/games/fargoal/pkg-plist
@@ -48,7 +48,3 @@ libexec/fargoal
%%DATADIR%%/sfx/ugh.wav
%%DATADIR%%/sfx/up.wav
%%DATADIR%%/sfx/victory.wav
-@dirrm %%DATADIR%%/sfx
-@dirrm %%DATADIR%%/gfx
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%