Diff

Differences From Artifact [656d097351]:

To Artifact [547cf2503d]:


    21     21   extract_src
    22     22   
    23     23   # Apply appropriate patches
    24     24   apply_patches
    25     25   
    26     26   (
    27     27   	cd "build/${BUILDDIR}" || exit 1
           28  +
           29  +	if [ -z "${SSLDIR}" ]; then
           30  +		(
           31  +			case "${PLATFORM}" in
           32  +				solaris*-ix86)
           33  +					opensslplatform='solaris-x86-gcc'
           34  +					;;
           35  +				solaris*-x86_64)
           36  +					opensslplatform='solaris64-x86_64-gcc'
           37  +					;;
           38  +				solaris*-sparc)
           39  +					opensslplatform='solaris-sparcv9-gcc'
           40  +					;;
           41  +				solaris*-sparc64)
           42  +					opensslplatform='solaris64-sparcv9-gcc'
           43  +					;;
           44  +			esac
           45  +
           46  +			if [ -z "${opensslplatform}" ]; then
           47  +				exit 0
           48  +			fi
           49  +
           50  +			wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
           51  +			gzip -dc openssl-1.0.0e.tar.gz | tar -xf -
           52  +			cd openssl-1.0.0e
           53  +
           54  +			./Configure no-shared --prefix=$(pwd)/INST "${opensslplatform}"
           55  +
           56  +			${MAKE:-make} || exit 1
           57  +			${MAKE:-make} install || exit 1
           58  +		)
           59  +
           60  +		for chkssldir in "$(pwd)/openssl-1.0.0e/INST"; do
           61  +			if [ -d "${chkssldir}/lib" ]; then
           62  +				SSLDIR="${chkssldir}"
           63  +			fi
           64  +		done
           65  +	fi
    28     66   
    29     67   	if [ -z "${SSLDIR}" ]; then
    30     68   		for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do
    31     69   			if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then
    32     70   				SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@')
    33     71   			fi
    34     72   		done
    35     73   	fi
           74  +
    36     75   	if [ -z "${SSLDIR}" ]; then
    37     76   		SSLDIR="/usr"
    38     77   	fi
    39     78   
    40     79   	bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-ssl-dir="${SSLDIR}" ${CONFIGUREEXTRA}
    41     80   	${MAKE:-make} || exit 1
    42     81   ) || exit 1