diff options
author | dbj <dbj@pkgsrc.org> | 2020-01-23 07:17:13 +0000 |
---|---|---|
committer | dbj <dbj@pkgsrc.org> | 2020-01-23 07:17:13 +0000 |
commit | 1c0312ada4d84510310b1f6b2f5900bb17406632 (patch) | |
tree | 4d38bbb3357e66698650c1056e8658d1a67c434e /lang/ocaml | |
parent | 246a93660b17b6edb24ea43f545ba42284fbe992 (diff) | |
download | pkgsrc-1c0312ada4d84510310b1f6b2f5900bb17406632.tar.gz |
ocaml: fix Darwin install names
ressurects a change that got dropped in package upgrade
Diffstat (limited to 'lang/ocaml')
-rw-r--r-- | lang/ocaml/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile index 253001bee20..87231c2708b 100644 --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.132 2020/01/14 19:53:35 jaapb Exp $ +# $NetBSD: Makefile,v 1.133 2020/01/23 07:17:13 dbj Exp $ .include "Makefile.common" @@ -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 \ |