Resurrected Darwin patch for ocaml
This commit is contained in:
parent
4f25702966
commit
59d4cf5d3a
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue