@@ -11,27 +11,43 @@ source ../common.sh # Do not build if the "tcl" platform has been requested not_platforms 'tcl' +# Only build for the following platforms +only_platforms_regexp '-ix86$' '-x86_64$' + # Download source download_src -# Build package +# Extract package ( rm -rf build - mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null mkdir build cd build/ || exit 1 mkdir "${BUILDDIR}" cd "${BUILDDIR}" || exit 1 unzip -q "../../${SRC}" +) + +# Apply patches +apply_patches + +# Build package +( + mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null + + cd "build" || exit 1 + cd "${BUILDDIR}" || exit 1 # TCC ships with object files in the way ${MAKE:-make} distclean >/dev/null 2>/dev/null + + # This file needs to be executable, but it is not by default in 0.4 + chmod +x tclconfig/install-sh bash ./configure --enable-shared --enable-threads --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA} ${MAKE:-make} || exit 1