pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ocaml



Module Name:    pkgsrc
Committed By:   dbj
Date:           Thu Jan 23 07:17:13 UTC 2020

Modified Files:
        pkgsrc/lang/ocaml: Makefile

Log Message:
ocaml: fix Darwin install names

ressurects a change that got dropped in package upgrade


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 pkgsrc/lang/ocaml/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/ocaml/Makefile
diff -u pkgsrc/lang/ocaml/Makefile:1.132 pkgsrc/lang/ocaml/Makefile:1.133
--- pkgsrc/lang/ocaml/Makefile:1.132    Tue Jan 14 19:53:35 2020
+++ pkgsrc/lang/ocaml/Makefile  Thu Jan 23 07:17:13 2020
@@ -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                                                  \



Home | Main Index | Thread Index | Old Index