Index: .fossil-settings/ignore-glob ================================================================== --- .fossil-settings/ignore-glob +++ .fossil-settings/ignore-glob @@ -4,10 +4,16 @@ server/buildpkgs/Tclx/build/* server/buildpkgs/Tclx/out server/buildpkgs/Tclx/out/* server/buildpkgs/Tclx/src server/buildpkgs/Tclx/src/* +server/buildpkgs/dict/build +server/buildpkgs/dict/build/* +server/buildpkgs/dict/out +server/buildpkgs/dict/out/* +server/buildpkgs/dict/src +server/buildpkgs/dict/src/* server/buildpkgs/tcl server/buildpkgs/tcl/* server/buildpkgs/tclpkgs-*.tar.* server/buildpkgs/tclpkgs-*.tar.*/* server/buildpkgs/tls/build ADDED server/buildpkgs/dict/build.sh Index: server/buildpkgs/dict/build.sh ================================================================== --- server/buildpkgs/dict/build.sh +++ server/buildpkgs/dict/build.sh @@ -0,0 +1,52 @@ +#! /bin/bash + +if [ ! -x "../platform" ]; then + echo "No platform script found, aborting." >&2 + + exit 1 +fi + +VERS=8.5.2 +SRC="src/tclDict-${VERS}.tar.gz" +SRCURL="http://pascal.scheffers.net/software/tclDict-${VERS}.tar.gz" +BUILDDIR="tclDict-${VERS}" +WORKDIR="${TMPDIR:-/tmp}/dict-$$${RANDOM}${RANDOM}${RANDOM}" +PLATFORM="$(../platform)" +PLATDIR="$(pwd)/out/${PLATFORM}" + +export VERS SRC SRCURL BUILDDIR WORKDIR PLATFORM PLATDIR + +if [ ! -f "${SRC}" ]; then + mkdir src >/dev/null 2>/dev/null + + wget -O "${SRC}" "${SRCURL}" || exit 1 +fi + +( + rm -rf build out + mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null + mkdir build + + cd build/ || exit 1 + + gzip -dc "../${SRC}" | tar -xf - + cd "${BUILDDIR}" || exit 1 + + # This fixes a well-known, long-standing failure in many Tcl + # configure scripts + sed "s@ /etc/\\.relid'@ '/etc/.relid'@" configure > configure.new + cat configure.new > configure + rm -f configure.new + + ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" + + ${MAKE:-make} || exit 1 + + ${MAKE:-make} install-binaries PKG_DIR='' || exit 1 + + rm -f "${PLATDIR}"/*.a +) || exit 1 + +../create_teapot "${PLATDIR}/teapot.txt" "dict" "${VERS}" "${SRCURL}" "${PLATFORM}" "Tcl 8.4" "Dict Backports for Tcl 8.4" + +exit 0 Index: server/buildpkgs/tls/build.sh ================================================================== --- server/buildpkgs/tls/build.sh +++ server/buildpkgs/tls/build.sh @@ -10,11 +10,11 @@ SRC="src/tls${VERS}-src.tar.gz" SRCURL="http://sourceforge.net/projects/tls/files/tls/${VERS}/tls${VERS}-src.tar.gz/download" BUILDDIR="tls${VERS}" WORKDIR="${TMPDIR:-/tmp}/tls-$$${RANDOM}${RANDOM}${RANDOM}" PLATFORM="$(../platform)" -PLATDIR="out/${PLATFORM}" +PLATDIR="$(pwd)/out/${PLATFORM}" export VERS SRC SRCURL BUILDDIR WORKDIR PLATFORM PLATDIR if [ ! -f "${SRC}" ]; then mkdir src >/dev/null 2>/dev/null