Diff

Differences From Artifact [11bc7d10bb]:

To Artifact [49725eb0a2]:


     9      9   
    10     10   # Load common functions
    11     11   source ../common.sh
    12     12   
    13     13   # Do not build if the "tcl" platform has been requested
    14     14   not_platforms 'tcl'
    15     15   
           16  +# Only build for the following platforms
           17  +only_platforms_regexp '-ix86$' '-x86_64$'
           18  +
    16     19   # Download source
    17     20   download_src
    18     21   
    19         -# Build package
           22  +# Extract package
    20     23   (
    21     24   	rm -rf build
    22         -	mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
    23     25   	mkdir build
    24     26   
    25     27   	cd build/ || exit 1
    26     28   	mkdir "${BUILDDIR}"
    27     29   	cd "${BUILDDIR}" || exit 1
    28     30   
    29     31   	unzip -q "../../${SRC}"
           32  +)
           33  +
           34  +# Apply patches
           35  +apply_patches
           36  +
           37  +# Build package
           38  +(
           39  +	mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
           40  +
           41  +	cd "build" || exit 1
           42  +	cd "${BUILDDIR}" || exit 1
    30     43   
    31     44   	# TCC ships with object files in the way
    32     45   	${MAKE:-make} distclean >/dev/null 2>/dev/null
           46  +
           47  +	# This file needs to be executable, but it is not by default in 0.4
           48  +	chmod +x tclconfig/install-sh
    33     49   
    34     50   	bash ./configure --enable-shared --enable-threads --with-tcl="${TCLCONFIGDIR}" --prefix="${PLATDIR}" --libdir="${PLATDIR}" --bindir="${PLATDIR}" ${CONFIGUREEXTRA}
    35     51   
    36     52   	${MAKE:-make} || exit 1
    37     53   
    38     54   	${MAKE:-make} install-binaries PKG_DIR='' || exit 1
    39     55