pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ocaml ocaml: fix Darwin install names



details:   https://anonhg.NetBSD.org/pkgsrc/rev/019ac0068a62
branches:  trunk
changeset: 410470:019ac0068a62
user:      dbj <dbj%pkgsrc.org@localhost>
date:      Thu Jan 23 07:17:13 2020 +0000

description:
ocaml: fix Darwin install names

ressurects a change that got dropped in package upgrade

diffstat:

 lang/ocaml/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r d998efb4d1f2 -r 019ac0068a62 lang/ocaml/Makefile
--- a/lang/ocaml/Makefile       Thu Jan 23 04:28:49 2020 +0000
+++ b/lang/ocaml/Makefile       Thu Jan 23 07:17:13 2020 +0000
@@ -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 @@
 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                                                  \



Home | Main Index | Thread Index | Old Index