From 1171837f1f388abb0fc87128b7173e9a3a03a7b9 Mon Sep 17 00:00:00 2001 From: jperkin Date: Sat, 29 Aug 2015 19:35:55 +0000 Subject: 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. --- lang/tcl/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lang/tcl') 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" -- cgit v1.2.3