aboutsummaryrefslogtreecommitdiff
path: root/games/moria
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-08-12 15:19:53 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-08-12 15:19:53 +0000
commit0df1011bec301249b9226ec68aca772d77415aff (patch)
treecb97d460b5ea4287879a73365f5c0a135bfc14f2 /games/moria
parent7571feeecfba0631611de957d503e28aad51177a (diff)
downloadports-0df1011bec301249b9226ec68aca772d77415aff.tar.gz
ports-0df1011bec301249b9226ec68aca772d77415aff.zip
Notes
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