The thing to do the trick to tcl.
This commit is contained in:
parent
88cf7394be
commit
94e8ea7dda
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27681
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user