summaryrefslogtreecommitdiff
path: root/mk/ocaml.mk
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu>2015-04-20 02:36:05 +0000
committerhiramatsu <hiramatsu>2015-04-20 02:36:05 +0000
commitd640e007059d9660722e5cebac4184ddd56a40b3 (patch)
tree09b396159820b30d3a5e9034a31b528ca1c4d4b3 /mk/ocaml.mk
parent1b8a739f74781cd5b344aaecb3f97c0e6658a38a (diff)
downloadpkgsrc-d640e007059d9660722e5cebac4184ddd56a40b3.tar.gz
Add PRINT_PLIST_AWK code to put ${OCAML_SITELIB} into generated PLIST.
OK'ed by jaapb@ in private mail.
Diffstat (limited to 'mk/ocaml.mk')
-rw-r--r--mk/ocaml.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/ocaml.mk b/mk/ocaml.mk
index c9c7f2e8ed1..3a649b771c8 100644
--- a/mk/ocaml.mk
+++ b/mk/ocaml.mk
@@ -1,4 +1,4 @@
-# $NetBSD: ocaml.mk,v 1.3 2014/10/27 11:58:36 jaapb Exp $
+# $NetBSD: ocaml.mk,v 1.4 2015/04/20 02:36:05 hiramatsu Exp $
#
# This Makefile fragment handles the common variables used by OCaml packages.
#
@@ -85,6 +85,10 @@ OCAML_SITELIBDIR= lib/ocaml/site-lib
MAKE_ENV+= OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
PLIST_SUBST+= OCAML_SITELIB="${OCAML_SITELIBDIR}"
+PRINT_PLIST_AWK+= { gsub(/${OCAML_SITELIBDIR:S|/|\\/|g}/, \
+ "$${OCAML_SITELIB}"); \
+ print; next; }
+
.if ${OCAML_USE_FINDLIB} == "yes"
.include "../../devel/ocaml-findlib/buildlink3.mk"
INSTALLATION_DIRS+= ${OCAML_SITELIBDIR}