summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2015-08-29 19:35:55 +0000
committerjperkin <jperkin@pkgsrc.org>2015-08-29 19:35:55 +0000
commit1171837f1f388abb0fc87128b7173e9a3a03a7b9 (patch)
tree3a1756216e1553c186f4c62fe1c5ce80b60476f4 /lang
parenta23f24e0ca9fb1a5da2d48364cd8d4b69153cb49 (diff)
downloadpkgsrc-1171837f1f388abb0fc87128b7173e9a3a03a7b9.tar.gz
Take advantage of tcl using the -headerpad_max_install_names option to fix
up dylib install names in post-build using install_name_tool(1) on Darwin. Bump PKGREVISION as package built before the Mach-O shlibs checks were introduced, but the generated PROVIDES were incorrect.
Diffstat (limited to 'lang')
-rw-r--r--lang/tcl/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/tcl/Makefile b/lang/tcl/Makefile
index 5aecfd54ed1..c7cee3764c6 100644
--- a/lang/tcl/Makefile
+++ b/lang/tcl/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.82 2015/07/29 15:23:11 jperkin Exp $
+# $NetBSD: Makefile,v 1.83 2015/08/29 19:35:55 jperkin Exp $
DISTNAME= tcl${TCL_VERSION}-src
PKGNAME= tcl-${TCL_VERSION}
-PKGREVISION= 3
+PKGREVISION= 4
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcl/}
@@ -55,6 +55,14 @@ SUBST_STAGE.sqllink= pre-configure
SUBST_FILES.sqllink= pkgs/sqlite3.8.8.3/configure
SUBST_SED.sqllink= -e "/LIBS=/s,-lsqlite3,-L${BUILDLINK_PREFIX.sqlite3}/lib -lsqlite3,g"
+.if ${OPSYS} == "Darwin"
+post-build:
+. for lib in tdbcmysql1.0.3/libtdbcmysql1.0.3.dylib \
+ tdbcpostgres1.0.3/libtdbcpostgres1.0.3.dylib
+ install_name_tool -id ${PREFIX}/lib/${lib} ${WRKSRC}/unix/pkgs/${lib}
+. endfor
+.endif
+
BUILDLINK_API_DEPENDS.sqlite3+= sqlite3>=3.8.3
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"