Diff

Differences From Artifact [9e4a5ea3ad]:

To Artifact [dc0eed1286]:


23
24
25
26
27
28
29
30

31
32





33



34
35

36
37
38
39
40
41
42
43
44
45
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







-
+


+
+
+
+
+
-
+
+
+

-
+

-
-







fi

(
	rm -rf build
	mkdir build
	cd build/ || exit 1

	tar -zxf "../${SRC}"
	gzip -dc "../${SRC}" | tar -xf -
	cd "${BUILDDIR}" || exit 1

	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
	mkdir "${WORKDIR}"
	if [ -z "${SSLDIR}" ]; then
		SSLDIR="/usr"
	fi

	./configure --enable-shared --prefix="${WORKDIR}"
	./configure --enable-shared --with-tcl="${TCLCONFIGDIR}" --with-ssl-dir="${SSLDIR}"
	gmake || exit 1

	rm -rf "${WORKDIR}"
) || exit 1

(
	rm -rf "${PLATDIR}"
	mkdir -p "${PLATDIR}"

	cp "build/${BUILDDIR}/libtls1.6.so" "${PLATDIR}/"