pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/mustach devel/mustach: set install_name to fix m...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7fb7cae3ec86
branches:  trunk
changeset: 346194:7fb7cae3ec86
user:      sjmulder <sjmulder%pkgsrc.org@localhost>
date:      Sun Dec 29 21:46:59 2019 +0000

description:
devel/mustach: set install_name to fix macOS build

diffstat:

 devel/mustach/Makefile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r aeb4a7156d01 -r 7fb7cae3ec86 devel/mustach/Makefile
--- a/devel/mustach/Makefile    Sun Dec 29 21:36:22 2019 +0000
+++ b/devel/mustach/Makefile    Sun Dec 29 21:46:59 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2019/12/25 17:34:31 sjmulder Exp $
+# $NetBSD: Makefile,v 1.3 2019/12/29 21:46:59 sjmulder Exp $
 
 DISTNAME=      mustach-0.99
 PKGREVISION=   1
@@ -15,5 +15,15 @@
 # Workaround is portable, might as well use it everywhere.
 CFLAGS+=       -DNO_OPEN_MEMSTREAM
 
+# install_name must be set on macOS. Upstream PR:
+# https://gitlab.com/jobol/mustach/merge_requests/16
+.if ${OPSYS} == "Darwin"
+.PHONY: fix-darwin-install-name
+post-install: fix-darwin-install-name
+fix-darwin-install-name:
+       install_name_tool -id ${PREFIX}/lib/libmustach.so \
+           ${DESTDIR}${PREFIX}/lib/libmustach.so
+.endif
+
 .include "../../textproc/json-c/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index