Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -103,10 +103,19 @@ tls/inst/* tls/out tls/out/* tls/src tls/src/* +tcllib/build +tcllib/build/* +tcllib/build.log +tcllib/inst +tcllib/inst/* +tcllib/out +tcllib/out/* +tcllib/src +tcllib/src/* kitdll/buildsrc/kitdll-0.0/starpack.vfs kitdll/buildsrc/kitdll-0.0/starpack.vfs/* kitdll/buildsrc/kitdll-0.0/test kitdll/buildsrc/kitdll-0.0/configure kitdll/buildsrc/kitdll-0.0/libtcl*.so Index: kitcreator ================================================================== --- kitcreator +++ kitcreator @@ -28,11 +28,11 @@ echo "Please remember to run 'build/pre.sh' if you expect this build to work." >&2 fi fi # Define the list of all packages, for cleaning purposes -KITCREATOR_ALLPKGS="kitsh tcl tclvfs zlib tk itcl mk4tcl thread dbus tls tclx tcc4tcl" +KITCREATOR_ALLPKGS="kitsh tcl tclvfs zlib tk itcl mk4tcl thread dbus tls tclx tcc4tcl tcllib" # Always rebuild kitsh rm -f "kitsh/.success" for pkg in ${KITCREATOR_ALLPKGS} ${KITCREATOR_PKGS}; do if [ "${mode}" != "retry" -o ! -f "${pkg}/.success" ]; then ADDED tcllib/build.sh Index: tcllib/build.sh ================================================================== --- /dev/null +++ tcllib/build.sh @@ -0,0 +1,44 @@ +#! /usr/bin/env bash + +TCLLIB_VERS='1.16' +SRC="src/tcllib-${TCLLIB_VERS}.tar.bz2" +SRCURL="http://sourceforge.net/projects/tcllib/files/tcllib/${TCLLIB_VERS}/Tcllib-${TCLLIB_VERS}.tar.bz2" +BUILDDIR="$(pwd)/build/Tcllib-${TCLLIB_VERS}" +OUTDIR="$(pwd)/out" +INSTDIR="$(pwd)/inst" +PATCHDIR="$(pwd)/patches" +export TCLLIB_VERS SRC SRCURL BUILDDIR OUTDIR INSTDIR PATCHDIR + +rm -rf 'build' 'out' 'inst' +mkdir 'build' 'out' 'inst' || exit 1 + +if [ ! -f "${SRC}" ]; then + mkdir 'src' >/dev/null 2>/dev/null + + if [ ! -d 'buildsrc' ]; then + rm -f "${SRC}.tmp" + wget -O "${SRC}.tmp" "${SRCURL}" || exit 1 + mv "${SRC}.tmp" "${SRC}" + fi +fi + +( + cd 'build' || exit 1 + + if [ ! -d '../buildsrc' ]; then + bzip2 -dc "../${SRC}" | tar -xf - + else + cp -rp ../buildsrc/* './' + fi + + cd "${BUILDDIR}" || exit 1 + + ./configure --prefix="${INSTDIR}" || exit 1 + + make || exit 1 + + make install || exit 1 + + cp -rp "${INSTDIR}/lib" "${OUTDIR}" +) || exit 1 +