Diff

Differences From Artifact [656d097351]:

To Artifact [547cf2503d]:


21
22
23
24
25
26
27






































28
29
30
31
32
33
34
35

36
37
38
39
40
41
42
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81







+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+








+







extract_src

# Apply appropriate patches
apply_patches

(
	cd "build/${BUILDDIR}" || exit 1

	if [ -z "${SSLDIR}" ]; then
		(
			case "${PLATFORM}" in
				solaris*-ix86)
					opensslplatform='solaris-x86-gcc'
					;;
				solaris*-x86_64)
					opensslplatform='solaris64-x86_64-gcc'
					;;
				solaris*-sparc)
					opensslplatform='solaris-sparcv9-gcc'
					;;
				solaris*-sparc64)
					opensslplatform='solaris64-sparcv9-gcc'
					;;
			esac

			if [ -z "${opensslplatform}" ]; then
				exit 0
			fi

			wget 'http://www.openssl.org/source/openssl-1.0.0e.tar.gz'
			gzip -dc openssl-1.0.0e.tar.gz | tar -xf -
			cd openssl-1.0.0e

			./Configure no-shared --prefix=$(pwd)/INST "${opensslplatform}"

			${MAKE:-make} || exit 1
			${MAKE:-make} install || exit 1
		)

		for chkssldir in "$(pwd)/openssl-1.0.0e/INST"; do
			if [ -d "${chkssldir}/lib" ]; then
				SSLDIR="${chkssldir}"
			fi
		done
	fi

	if [ -z "${SSLDIR}" ]; then
		for chkssldir in $(pkg-config openssl --cflags | sed 's@ *-I *@|@g' | tr '|' "\n" | grep '^/'); do
			if [ -f "${chkssldir}/openssl/opensslv.h" -o -f "${chkssldir}/opensslv.h" ]; then
				SSLDIR=$(echo "${chkssldir}" | sed 's@/[^/]*/*$@@')
			fi
		done
	fi

	if [ -z "${SSLDIR}" ]; then
		SSLDIR="/usr"
	fi

	bash ./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-ssl-dir="${SSLDIR}" ${CONFIGUREEXTRA}
	${MAKE:-make} || exit 1
) || exit 1