diff options
author | schmonz <schmonz@pkgsrc.org> | 2019-08-02 03:13:06 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2019-08-02 03:13:06 +0000 |
commit | 1de9ddf3a0caee876c0c2d49a2a224050852ccca (patch) | |
tree | 241d915af4898ecd9d74f02e73f8ed5629685052 /lang/ocaml | |
parent | 33b0d35f79e06294d514fd57ab8ca1530706c48f (diff) | |
download | pkgsrc-1de9ddf3a0caee876c0c2d49a2a224050852ccca.tar.gz |
Fix rpaths in installed shlibs on Darwin. Bump PKGREVISION.
Diffstat (limited to 'lang/ocaml')
-rw-r--r-- | lang/ocaml/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile index ea7c1dd96e6..be156088f06 100644 --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.125 2019/07/10 17:53:38 sevan Exp $ +# $NetBSD: Makefile,v 1.126 2019/08/02 03:13:06 schmonz Exp $ .include "Makefile.common" -PKGREVISION= 3 +PKGREVISION= 4 CONFIGURE_ENV+= disable_x11=yes @@ -106,6 +106,12 @@ post-install: ln -sf ${PREFIX}/lib/ocaml/${PKGMANDIR}/man1/$$m \ ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$$m; \ done +.if ${OPSYS} == Darwin + set -e; cd ${DESTDIR}${PREFIX}/lib/ocaml; \ + for l in *.so */*.so; do \ + install_name_tool -id ${PREFIX}/lib/ocaml/$${l} $${l}; \ + done +.endif .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/termcap.buildlink3.mk" |