summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authoradam <adam>2016-03-06 14:13:36 +0000
committeradam <adam>2016-03-06 14:13:36 +0000
commit01b54ced77764ad5b47bc5244cbbb767a6e3487c (patch)
tree07305bc83474b69f89b866baf1e6c5942e24a10f /lang
parentea33330a35362f4cfae04bfc36ad7a8eb60ed353 (diff)
downloadpkgsrc-01b54ced77764ad5b47bc5244cbbb767a6e3487c.tar.gz
Fix shared library name on Darwin
Diffstat (limited to 'lang')
-rw-r--r--lang/tcl-expect/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/tcl-expect/Makefile b/lang/tcl-expect/Makefile
index 14ed629f224..cbc6c5209a2 100644
--- a/lang/tcl-expect/Makefile
+++ b/lang/tcl-expect/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2014/03/13 11:08:51 jperkin Exp $
+# $NetBSD: Makefile,v 1.32 2016/03/06 14:13:36 adam Exp $
.include "Makefile.common"
@@ -17,5 +17,14 @@ CONFIGURE_ARGS+= --without-x
INSTALL_MAKE_FLAGS+= INSTALL_ROOT=${DESTDIR:Q}
+.include "../../mk/bsd.prefs.mk"
+
+# XXX: libexpect should have .dylib suffix
+.if ${OPSYS} == "Darwin"
+post-build:
+ install_name_tool -id ${PREFIX}/lib/libexpect${EXPECT_SONUM}.so \
+ ${WRKSRC}/libexpect${EXPECT_SONUM}.so
+.endif
+
.include "../../lang/tcl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"