@@ -13,24 +13,21 @@ # Do not build if the "tcl" platform has been requested not_platforms 'tcl' # Download source download_src + +# Extract source +extract_src + +# Apply appropriate patches +apply_patches # Build package ( - rm -rf build mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null - mkdir build - - cd build/ || exit 1 - - gzip -dc "../${SRC}" | tar -xf - - cd "${BUILDDIR}" || exit 1 - - # The configure script that comes with TclReadLine is out-of-date - autoreconf -fvi + cd "build/${BUILDDIR}" || exit 1 # TclReadLine doesn't know it should use stubs, force it. CFLAGS="${CFLAGS} -DUSE_TCL_STUBS=1" CPPFLAGS="${CPPFLAGS} -DUSE_TCL_STUBS=1" LDFLAGS="${LDFLAGS} $(source "${TCLCONFIGDIR}/tclConfig.sh" 2>/dev/null; eval echo "${TCL_STUB_LIB_SPEC}")"