summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhiramatsu <hiramatsu@pkgsrc.org>2015-04-20 02:36:05 +0000
committerhiramatsu <hiramatsu@pkgsrc.org>2015-04-20 02:36:05 +0000
commit10bde29b82e2b710a957bab250a61223c875e9be (patch)
tree09b396159820b30d3a5e9034a31b528ca1c4d4b3
parent824b2b6cefab0410069ebe7a781415f8bfe76cec (diff)
downloadpkgsrc-10bde29b82e2b710a957bab250a61223c875e9be.tar.gz
Add PRINT_PLIST_AWK code to put ${OCAML_SITELIB} into generated PLIST.
OK'ed by jaapb@ in private mail.
-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}