Fri Aug 2 03:13:06 2019 UTC ()
Fix rpaths in installed shlibs on Darwin. Bump PKGREVISION.


(schmonz)
diff -r1.125 -r1.126 pkgsrc/lang/ocaml/Makefile

cvs diff -r1.125 -r1.126 pkgsrc/lang/ocaml/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/ocaml/Makefile 2019/07/10 17:53:38 1.125
+++ pkgsrc/lang/ocaml/Makefile 2019/08/02 03:13:06 1.126
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.125 2019/07/10 17:53:38 sevan Exp $ 1# $NetBSD: Makefile,v 1.126 2019/08/02 03:13:06 schmonz Exp $
2 2
3.include "Makefile.common" 3.include "Makefile.common"
4 4
5PKGREVISION= 3 5PKGREVISION= 4
6 6
7CONFIGURE_ENV+= disable_x11=yes 7CONFIGURE_ENV+= disable_x11=yes
8 8
9BUILD_TARGET= world 9BUILD_TARGET= world
10MAKE_JOBS_SAFE= no 10MAKE_JOBS_SAFE= no
11UNLIMIT_RESOURCES= stacksize 11UNLIMIT_RESOURCES= stacksize
12 12
13USE_TOOLS+= bash 13USE_TOOLS+= bash
14USE_FEATURES+= strnlen 14USE_FEATURES+= strnlen
15 15
16USE_GCC_RUNTIME= yes 16USE_GCC_RUNTIME= yes
17 17
18PLIST_VARS+= ocaml-stub ocaml-prof ocaml-opt ocaml-nat ocaml-spacetime \ 18PLIST_VARS+= ocaml-stub ocaml-prof ocaml-opt ocaml-nat ocaml-spacetime \
@@ -96,17 +96,23 @@ PRINT_PLIST_AWK+= { gsub(/lib\/ocaml\/${ @@ -96,17 +96,23 @@ PRINT_PLIST_AWK+= { gsub(/lib\/ocaml\/${
96REPLACE_BASH+= tools/ocaml-instr-graph 96REPLACE_BASH+= tools/ocaml-instr-graph
97REPLACE_AWK+= tools/ocaml-instr-report 97REPLACE_AWK+= tools/ocaml-instr-report
98.endif 98.endif
99 99
100do-test: 100do-test:
101 cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all 101 cd ${WRKSRC}/testsuite && ${MAKE_PROGRAM} all
102 102
103post-install: 103post-install:
104 set -e ; cd ${DESTDIR}${PREFIX}/lib/ocaml/${PKGMANDIR}/man1; \ 104 set -e ; cd ${DESTDIR}${PREFIX}/lib/ocaml/${PKGMANDIR}/man1; \
105 for m in *; do \ 105 for m in *; do \
106 ln -sf ${PREFIX}/lib/ocaml/${PKGMANDIR}/man1/$$m \ 106 ln -sf ${PREFIX}/lib/ocaml/${PKGMANDIR}/man1/$$m \
107 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$$m; \ 107 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/$$m; \
108 done 108 done
 109.if ${OPSYS} == Darwin
 110 set -e; cd ${DESTDIR}${PREFIX}/lib/ocaml; \
 111 for l in *.so */*.so; do \
 112 install_name_tool -id ${PREFIX}/lib/ocaml/$${l} $${l}; \
 113 done
 114.endif
109 115
110.include "../../mk/dlopen.buildlink3.mk" 116.include "../../mk/dlopen.buildlink3.mk"
111.include "../../mk/termcap.buildlink3.mk" 117.include "../../mk/termcap.buildlink3.mk"
112.include "../../mk/bsd.pkg.mk" 118.include "../../mk/bsd.pkg.mk"