pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk



Module Name:    pkgsrc
Committed By:   wiz
Date:           Mon Feb 14 11:37:48 UTC 2022

Modified Files:
        pkgsrc/mk: ocaml.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/mk/ocaml.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/ocaml.mk
diff -u pkgsrc/mk/ocaml.mk:1.30 pkgsrc/mk/ocaml.mk:1.31
--- pkgsrc/mk/ocaml.mk:1.30     Mon Feb 14 11:24:57 2022
+++ pkgsrc/mk/ocaml.mk  Mon Feb 14 11:37:48 2022
@@ -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 @@ OCAML_SITELIBDIR=   lib/ocaml/site-lib
 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