pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk mk/ocaml.mk: add some automation for prefixing ${PL...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50cc36049ebe
branches:  trunk
changeset: 373863:50cc36049ebe
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Feb 14 11:37:48 2022 +0000

description:
mk/ocaml.mk: add some automation for prefixing ${PLIST.ocaml-opt}

diffstat:

 mk/ocaml.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 2aaa11911884 -r 50cc36049ebe mk/ocaml.mk
--- a/mk/ocaml.mk       Mon Feb 14 11:25:56 2022 +0000
+++ b/mk/ocaml.mk       Mon Feb 14 11:37:48 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ocaml.mk,v 1.30 2022/02/14 11:24:57 wiz Exp $
+# $NetBSD: ocaml.mk,v 1.31 2022/02/14 11:37:48 wiz Exp $
 #
 # This Makefile fragment handles the common variables used by OCaml packages.
 #
@@ -172,6 +172,8 @@
 MAKE_ENV+=     OCAML_SITELIBDIR="${OCAML_SITELIBDIR}"
 PLIST_SUBST+=  OCAML_SITELIB="${OCAML_SITELIBDIR}"
 
+PRINT_PLIST_AWK+=      { gsub(/^.+\.cmx/, "$${PLIST.ocaml-opt}&") }
+PRINT_PLIST_AWK+=      { gsub(/^.+\.a$$/, "$${PLIST.ocaml-opt}&") }
 PRINT_PLIST_AWK+=      { gsub(/${OCAML_SITELIBDIR:S|/|\\/|g}/, \
                        "$${OCAML_SITELIB}"); \
                        print; next; }



Home | Main Index | Thread Index | Old Index