Resurrected Darwin patch for ocaml

This commit is contained in:
Jaap Boender 2020-04-17 15:49:10 +02:00
parent 4f25702966
commit 59d4cf5d3a
1 changed files with 10 additions and 0 deletions

View File

@ -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 \