diff options
author | wiz <wiz@pkgsrc.org> | 2022-02-14 11:37:48 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2022-02-14 11:37:48 +0000 |
commit | ef9e6c52d4fd04ec8a72b1339bc1250a227364de (patch) | |
tree | 156f631e6dacbc6f0ad247d6b67e9018a70b5dd1 | |
parent | df528d83fae7b242ce6f7bc54219c67848542461 (diff) | |
download | pkgsrc-ef9e6c52d4fd04ec8a72b1339bc1250a227364de.tar.gz |
mk/ocaml.mk: add some automation for prefixing ${PLIST.ocaml-opt}
-rw-r--r-- | mk/ocaml.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/ocaml.mk b/mk/ocaml.mk index 0235e7dd911..ed6c76958c5 100644 --- a/mk/ocaml.mk +++ b/mk/ocaml.mk @@ -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; } |