aboutsummaryrefslogtreecommitdiff
path: root/games/gru
diff options
context:
space:
mode:
authorDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-02 03:17:03 +0000
committerDanilo Egea Gondolfo <danilo@FreeBSD.org>2013-11-02 03:17:03 +0000
commit50553c9df7ab0f0052a930ac906067eefc0271d4 (patch)
tree3b5813987ee69c85fe4e41e58f7e7d80d0e82130 /games/gru
parent837ef9d81eb7bba475b7784cd169c442c67f5101 (diff)
downloadports-50553c9df7ab0f0052a930ac906067eefc0271d4.tar.gz
ports-50553c9df7ab0f0052a930ac906067eefc0271d4.zip
- Add stage support
- Add DOCS option
Notes
Notes: svn path=/head/; revision=332443
Diffstat (limited to 'games/gru')
-rw-r--r--games/gru/Makefile12
-rw-r--r--games/gru/pkg-plist5
2 files changed, 7 insertions, 10 deletions
diff --git a/games/gru/Makefile b/games/gru/Makefile
index 21ae0d80e996..6a9274a3b286 100644
--- a/games/gru/Makefile
+++ b/games/gru/Makefile
@@ -13,16 +13,12 @@ COMMENT= Gru makes your eyes happy
USES= imake
USE_XORG= x11 xext xmu xpm xaw xt sm ice
-MAN1= gru.1
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
DOCSDIR= ${PREFIX}/share/doc/ja/gru
+
post-install:
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.jp ${DOCSDIR}
-.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.jp ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/gru/pkg-plist b/games/gru/pkg-plist
index e25526421f2e..d1de988b3e1f 100644
--- a/games/gru/pkg-plist
+++ b/games/gru/pkg-plist
@@ -1,3 +1,4 @@
bin/gru
-%%PORTDOCS%%share/doc/ja/gru/README.jp
-%%PORTDOCS%%@dirrm share/doc/ja/gru
+man/man1/gru.1.gz
+%%PORTDOCS%%%%DOCSDIR%%/README.jp
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%