summaryrefslogtreecommitdiff
path: root/lang/ocaml/Makefile
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-04-02 22:40:09 +0000
committertnn <tnn@pkgsrc.org>2015-04-02 22:40:09 +0000
commitcfc13d144cd9d50644be3d36cc92d550c85dc342 (patch)
tree9402cb55e78e61bce617782cdee453e2e37ff1c0 /lang/ocaml/Makefile
parent4225f5bf8bc1a057d0da626b8e1a3bbebbe7cb73 (diff)
downloadpkgsrc-cfc13d144cd9d50644be3d36cc92d550c85dc342.tar.gz
Avoid using the "3o" man page section, since plist-man.awk can't handle it.
Instead treat ocaml like we do with lang/perl5 and install the man pages in the "3" section in /usr/pkg/lib/ocaml/man/man3.
Diffstat (limited to 'lang/ocaml/Makefile')
-rw-r--r--lang/ocaml/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile
index 8c73886161e..c876ef2961d 100644
--- a/lang/ocaml/Makefile
+++ b/lang/ocaml/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.94 2015/03/11 22:37:18 tnn Exp $
+# $NetBSD: Makefile,v 1.95 2015/04/02 22:40:09 tnn Exp $
.include "Makefile.common"
+PKGREVISION= 1
#CONFIGURE_ARGS+= -no-tk
CONFIGURE_ARGS+= -cc ${CC}
@@ -84,6 +85,14 @@ SUBST_STAGE.extra-rt-libs= pre-configure
do-test:
cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all
+post-install:
+ ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ set -e ; cd ${DESTDIR}${PREFIX}/lib/ocaml/${PKGMANDIR}/man1; \
+ for m in *; do \
+ ln -s ${PREFIX}/lib/ocaml/${PKGMANDIR}/man1/$$m \
+ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$$m; \
+ done
+
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"