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
commita87eefeb7f28644fd1a4463235746d681c99c28e (patch)
tree07305bc83474b69f89b866baf1e6c5942e24a10f /lang
parent99ebce4c4ceb9efde54c0f8fcddd147f7c4126ac (diff)
downloadpkgsrc-a87eefeb7f28644fd1a4463235746d681c99c28e.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"