pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Resurrected Darwin patch for ocaml
Module Name: pkgsrc-wip
Committed By: Jaap Boender <jaapb%NetBSD.org@localhost>
Pushed By: jaapb
Date: Fri Apr 17 15:49:10 2020 +0200
Changeset: 59d4cf5d3ac57fb1d59589992a8ce109214af207
Modified Files:
ocaml/Makefile
Log Message:
Resurrected Darwin patch for ocaml
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=59d4cf5d3ac57fb1d59589992a8ce109214af207
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
ocaml/Makefile | 10 ++++++++++
1 file changed, 10 insertions(+)
diffs:
diff --git a/ocaml/Makefile b/ocaml/Makefile
index 16af7e4a2f..010aebafc9 100644
--- a/ocaml/Makefile
+++ b/ocaml/Makefile
@@ -99,6 +99,16 @@ REPLACE_AWK+= tools/ocaml-instr-report
do-test:
cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all
+.if ${OPSYS} == "Darwin"
+.PHONY: fix-darwin-install-name
+post-install: fix-darwin-install-name
+fix-darwin-install-name:
+ for f in ${DESTDIR}${PREFIX}/lib/ocaml/*.so \
+ ${DESTDIR}${PREFIX}/lib/ocaml/stublibs/*.so; do \
+ install_name_tool -id `${ECHO} $$f | ${SED} -e 's,${DESTDIR},,g'` $$f; \
+ done
+.endif
+
#post-install:
# set -e ; cd ${DESTDIR}${PREFIX}/lib/ocaml/${PKGMANDIR}/man1; \
# for m in *; do \
Home |
Main Index |
Thread Index |
Old Index