diff options
author | agc <agc> | 1999-01-26 21:36:06 +0000 |
---|---|---|
committer | agc <agc> | 1999-01-26 21:36:06 +0000 |
commit | 1cd7543e8afcd017fee9ab1ca7ad78d448b91170 (patch) | |
tree | d975e90d75ec5fc9b710c93d865926230771240d /x11/tk80 | |
parent | 8839d905426577a00d6ec633ceb84e0390adfcec (diff) | |
download | pkgsrc-1cd7543e8afcd017fee9ab1ca7ad78d448b91170.tar.gz |
If the build platform supports shared objects, set TK_SHARED_BUILD and
TK_LIB_FILE in tkConfig.sh accordingly.
Diffstat (limited to 'x11/tk80')
-rw-r--r-- | x11/tk80/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
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 |