diff options
author | agc <agc@pkgsrc.org> | 1999-01-26 06:56:54 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-01-26 06:56:54 +0000 |
commit | d8e7a7e88da17d5bbb14b1d35484f0356efdfd5b (patch) | |
tree | 9b433f65ffadfaed59fb4379e4925d04c8239dce /lang | |
parent | 726fda2aee141b0db56c5861b7be0ac49976444b (diff) | |
download | pkgsrc-d8e7a7e88da17d5bbb14b1d35484f0356efdfd5b.tar.gz |
Set TCL_SHARED_BUILD and TCL_LIB_FILE accordingly in tclConfig.sh if
the build system supports shared objects.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/tcl80/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lang/tcl80/Makefile b/lang/tcl80/Makefile index a3f686d5ad9..1b94c73adbd 100644 --- a/lang/tcl80/Makefile +++ b/lang/tcl80/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.17 1998/09/10 14:28:35 agc Exp $ +# $NetBSD: Makefile,v 1.18 1999/01/26 06:56:54 agc Exp $ # FreeBSD Id: Makefile,v 1.1.1.1 1997/08/20 10:33:35 jkh Exp # @@ -17,6 +17,18 @@ GNU_CONFIGURE= yes USE_LIBTOOL= yes CONFIGURE_ARGS+= --disable-shared +# If the build system supports shared objects, enable them in tcl. +# 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} tclConfig.sh tclConfig.sh.orig; \ + ${SED} -e 's/TCL_SHARED_BUILD=.*/TCL_SHARED_BUILD=1/' \ + -e 's/TCL_LIB_FILE=.*/TCL_LIB_FILE=libtcl80.so.1.0/' \ + tclConfig.sh.orig > tclConfig.sh +.endif + test: cd ${WRKSRC} && ${SETENV} LIBTOOL=${LIBTOOL} PREFIX=${PREFIX} ${MAKE} test |