Diff

Differences From Artifact [6e15606227]:

To Artifact [656d097351]:


    13     13   
    14     14   # Do not build if the "tcl" platform has been requested
    15     15   not_platforms 'tcl'
    16     16   
    17     17   # Download source
    18     18   download_src
    19     19   
    20         -(
    21         -	rm -rf build
    22         -	mkdir build
    23         -	cd build/ || exit 1
           20  +# Extract source
           21  +extract_src
    24     22   
    25         -	gzip -dc "../${SRC}" | tar -xf -
    26         -	cd "${BUILDDIR}" || exit 1
           23  +# Apply appropriate patches
           24  +apply_patches
    27     25   
    28         -	# Apply patches
    29         -	for patchfile in "${PATCHDIR}"/all/*.diff "${PATCHDIR}/${VERS}"/*.diff; do
    30         -		if [ ! -f "${patchfile}" ]; then
    31         -			continue
    32         -		fi
    33         -
    34         -		"${PATCH:-patch}" -p1 < "${patchfile}"
    35         -	done
           26  +(
           27  +	cd "build/${BUILDDIR}" || exit 1
    36     28   
    37     29   	if [ -z "${SSLDIR}" ]; then
    38     30   		for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do
    39     31   			if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then
    40     32   				SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@')
    41     33   			fi
    42     34   		done