aboutsummaryrefslogtreecommitdiffstats
path: root/games/moria
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2003-08-12 23:19:53 +0800
committerglewis <glewis@FreeBSD.org>2003-08-12 23:19:53 +0800
commit58dbd1d605a3210d0925e806e13af2dc56833fd8 (patch)
treeb322529bf632ff6bc7798c0e9fcc5ba64c6e8a4d /games/moria
parent77418a51fed7b93194d11fc8e8a4212aab1e6d8b (diff)
downloadfreebsd-ports-gnome-58dbd1d605a3210d0925e806e13af2dc56833fd8.tar.gz
freebsd-ports-gnome-58dbd1d605a3210d0925e806e13af2dc56833fd8.tar.zst
freebsd-ports-gnome-58dbd1d605a3210d0925e806e13af2dc56833fd8.zip
. Install extra docs.
. Don't install man pages if NO_INSTALL_MANPAGES is set.
Diffstat (limited to 'games/moria')
-rw-r--r--games/moria/Makefile7
-rw-r--r--games/moria/files/patch-doc::Makefile17
-rw-r--r--games/moria/pkg-plist12
3 files changed, 36 insertions, 0 deletions
diff --git a/games/moria/Makefile b/games/moria/Makefile
index d295484d998c..f59b42fd19c6 100644
--- a/games/moria/Makefile
+++ b/games/moria/Makefile
@@ -21,6 +21,7 @@ USE_REINPLACE= yes
MAN6= moria.6
WRKSRC= ${WRKDIR}/umoria
ALL_TARGET= moria
+MAKE_ENV+= DOCSDIR="${DOCSDIR}" MKDIR="${MKDIR}"
do-configure:
for i in ${WRKSRC}/source/config.h ${WRKSRC}/unix/Makefile; do \
@@ -29,8 +30,14 @@ do-configure:
cd ${WRKSRC} && ${LN} -sf source/* unix/* .
post-install:
+.if !defined(NO_INSTALL_MANPAGES)
for i in ${MAN6}; do \
${INSTALL_MAN} ${WRKSRC}/doc/$$i ${PREFIX}/man/man6; \
done
+.endif
+.if !defined(NOPORTDOCS)
+# cd ${WRKSRC}/doc && $(MAKE) MKDIR="${MKDIR}" DOCSDIR="${DOCSDIR}" INSTALL_DATA="${INSTALL_DATA}" install
+ cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} install
+.endif
.include <bsd.port.mk>
diff --git a/games/moria/files/patch-doc::Makefile b/games/moria/files/patch-doc::Makefile
new file mode 100644
index 000000000000..c0cba5b24b4e
--- /dev/null
+++ b/games/moria/files/patch-doc::Makefile
@@ -0,0 +1,17 @@
+$FreeBSD$
+
+--- doc/Makefile Sat Aug 10 17:45:46 2002
++++ doc/Makefile Sat Aug 10 17:48:23 2002
+@@ -0,0 +1,12 @@
++FILES= ERRORS FEATURES.NEW dragon.inf exp.doc faq history moria.ms moria.txt \
++ pronounc spells.doc where.inf
++
++moria.ms: moria1.ms moria2.ms
++ cat moria1.ms moria2.ms > moria.ms
++
++moria.txt: moria1.txt moria2.txt
++ cat moria1.txt moria2.txt > moria.txt
++
++install: moria.ms moria.txt
++ ${MKDIR} ${DOCSDIR}
++ ${BSD_INSTALL_DATA} ${FILES} ${DOCSDIR}
diff --git a/games/moria/pkg-plist b/games/moria/pkg-plist
index e7e539c2d00b..4317dbe6f8d9 100644
--- a/games/moria/pkg-plist
+++ b/games/moria/pkg-plist
@@ -1,4 +1,15 @@
bin/moria
+share/doc/moria/ERRORS
+share/doc/moria/FEATURES.NEW
+share/doc/moria/dragon.inf
+share/doc/moria/exp.doc
+share/doc/moria/faq
+share/doc/moria/history
+share/doc/moria/moria.ms
+share/doc/moria/moria.txt
+share/doc/moria/pronounc
+share/doc/moria/spells.doc
+share/doc/moria/where.inf
share/moria/hours
share/moria/news
share/moria/origcmds.hlp
@@ -8,4 +19,5 @@ share/moria/rwizcmds.hlp
share/moria/scores
share/moria/version.hlp
share/moria/welcome.hlp
+@dirrm share/doc/moria
@dirrm share/moria