@@ -9,23 +9,22 @@ 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 +export VERS SRC SRCURL BUILDDIR WORKDIR PLATDIR if [ ! -f "${SRC}" ]; then mkdir src >/dev/null 2>/dev/null wget -O "${SRC}" "${SRCURL}" || exit 1 fi ( - rm -rf build out + rm -rf build mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null mkdir build cd build/ || exit 1 @@ -36,11 +35,11 @@ # 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}" + bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} ${MAKE:-make} || exit 1 ${MAKE:-make} install-binaries PKG_DIR='' || exit 1