pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add PRINT_PLIST_AWK code to put ${OCAML_SITELIB} in...
details: https://anonhg.NetBSD.org/pkgsrc/rev/97b9e3616717
branches: trunk
changeset: 650271:97b9e3616717
user: hiramatsu <hiramatsu%pkgsrc.org@localhost>
date: Mon Apr 20 02:36:05 2015 +0000
description:
Add PRINT_PLIST_AWK code to put ${OCAML_SITELIB} into generated PLIST.
OK'ed by jaapb@ in private mail.
diffstat:
mk/ocaml.mk | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r 9195b976ecf2 -r 97b9e3616717 mk/ocaml.mk
--- a/mk/ocaml.mk Sun Apr 19 23:46:04 2015 +0000
+++ b/mk/ocaml.mk Mon Apr 20 02:36:05 2015 +0000
@@ -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 @@
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}
Home |
Main Index |
Thread Index |
Old Index