From 1cd7543e8afcd017fee9ab1ca7ad78d448b91170 Mon Sep 17 00:00:00 2001 From: agc Date: Tue, 26 Jan 1999 21:36:06 +0000 Subject: If the build platform supports shared objects, set TK_SHARED_BUILD and TK_LIB_FILE in tkConfig.sh accordingly. --- x11/tk80/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'x11/tk80') diff --git a/x11/tk80/Makefile b/x11/tk80/Makefile index 0c76173a13a..68508fe534c 100644 --- a/x11/tk80/Makefile +++ b/x11/tk80/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 1998/09/10 14:22:32 agc Exp $ +# $NetBSD: Makefile,v 1.21 1999/01/26 21:36:06 agc Exp $ # FreeBSD Id: Makefile,v 1.4 1997/10/01 09:20:31 tg Exp # @@ -19,6 +19,18 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes CONFIGURE_ARGS+= --disable-shared +# If the build system supports shared objects, enable them in tk. +# libtermcap was chosen as it doesn't change version numbers frequently. +.if exists(/usr/lib/libtermcap.so.0.0) +post-configure: + @${ECHO} "Enabling shared object support in ${PKGNAME}" + cd ${WRKSRC}; \ + ${MV} tkConfig.sh tkConfig.sh.orig; \ + ${SED} -e 's/TK_SHARED_BUILD=.*/TK_SHARED_BUILD=1/' \ + -e 's/TK_LIB_FILE=.*/TK_LIB_FILE=libtk80.so.1.0/' \ + tkConfig.sh.orig > tkConfig.sh +.endif + test: cd ${WRKSRC}; ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test -- cgit v1.2.3