diff options
author | phk <phk@FreeBSD.org> | 1997-07-25 19:50:23 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-07-25 19:50:23 +0000 |
commit | 3c371370f396b00874d82a8a8a4a1fe66876a64e (patch) | |
tree | 3fbedd3f60256e2605670c24becd5afef71ac75d /tools | |
parent | 2dc6791f72a12d7fea3d6813130029169d87cc16 (diff) | |
download | FreeBSD-src-3c371370f396b00874d82a8a8a4a1fe66876a64e.zip FreeBSD-src-3c371370f396b00874d82a8a8a4a1fe66876a64e.tar.gz |
The thing to do the trick to tcl.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tools/tcl_bmake/mkMakefile.sh | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/tools/tools/tcl_bmake/mkMakefile.sh b/tools/tools/tcl_bmake/mkMakefile.sh index de43250..ed841f8 100644 --- a/tools/tools/tcl_bmake/mkMakefile.sh +++ b/tools/tools/tcl_bmake/mkMakefile.sh @@ -1,14 +1,14 @@ #! /bin/sh -# $Id$ +# $Id: mkMakefile.sh,v 1.20 1997/02/22 14:08:38 peter Exp $ # # This script generates a bmake Makefile for src/lib/libtcl # -set -ex +set -e # SETME: what versions the shared library should have. -SHLIB_MAJOR=75 -SHLIB_MINOR=1 +SHLIB_MAJOR=80 +SHLIB_MINOR=2 # SETME: where is the tcl stuff relative to this script SRCDIR=../../../contrib/tcl @@ -18,7 +18,12 @@ LIBTCL=../../../lib/libtcl/ mkdir -p ${LIBTCL} -(cd ${SRCDIR}/unix ; sh configure --enable-shared --prefix=/usr) || true +( +cd ${SRCDIR}/unix ; +sed 's;TCL_PACKAGE_PATH="${prefix}/lib";TCL_PACKAGE_PATH="/usr/local/lib/tclpkg";' configure > __configure +sh __configure --enable-shared --prefix=/usr +rm -f __configure +) || true echo "include ${SRCDIR}/unix/Makefile" > m.x echo ' @@ -45,7 +50,7 @@ echo '# # Please change src/tools/tools/tcl_bmake/mkMakefile.sh instead # # Generated by src/tools/tools/tcl_bmake/mkMakefile.sh version: -# $Id$ +# $Id: mkMakefile.sh,v 1.20 1997/02/22 14:08:38 peter Exp $ # ' | tr -d '$' >> ${LIBTCL}Makefile @@ -87,6 +92,7 @@ echo "CFLAGS+=" `make -f m.x bar` >> ${LIBTCL}Makefile # some more needed CFLAGS echo "CFLAGS+= -DTCL_LIBRARY=\\\"\${TCL_LIBRARY}\\\"" >> ${LIBTCL}Makefile +echo "CFLAGS+= -DTCL_PACKAGE_PATH=\\\"/usr/lib/tclpkg\\ /usr/local/lib/tclpkg\\\"" >> ${LIBTCL}Makefile echo ' LDADD+= -lm @@ -110,7 +116,12 @@ beforeinstall: ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 \ ${TCLDIST}/generic/tcl.h ${DESTDIR}/usr/include ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${TCLDIST}/library/[a-z]* ${DESTDIR}${TCL_LIBRARY} + ${TCLDIST}/library/tclIndex ${DESTDIR}${TCL_LIBRARY} + ( cd ${TCLDIST}/library && \ + for e in . http1.0 ; do \ + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + $$e/*.tcl ${DESTDIR}${TCL_LIBRARY}/$$e ; \ + done ) ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ${TCLDIST}/unix/tclAppInit.c ${DESTDIR}${TCL_LIBRARY} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ |