11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
+
+
+
+
+
+
-
-
-
-
-
-
-
+
-
-
-
|
source ../common.sh
# Do not build if the "tcl" platform has been requested
not_platforms 'tcl'
# Download source
download_src
# Extract source
extract_src
# Apply appropriate patches
apply_patches
# Build package
(
rm -rf build
mkdir -p "${PLATDIR}" >/dev/null 2>/dev/null
mkdir build
cd build/ || exit 1
gzip -dc "../${SRC}" | tar -xf -
cd "${BUILDDIR}" || exit 1
cd "build/${BUILDDIR}" || exit 1
# The configure script that comes with TclReadLine is out-of-date
autoreconf -fvi
# TclReadLine doesn't know it should use stubs, force it.
CFLAGS="${CFLAGS} -DUSE_TCL_STUBS=1"
CPPFLAGS="${CPPFLAGS} -DUSE_TCL_STUBS=1"
LDFLAGS="${LDFLAGS} $(source "${TCLCONFIGDIR}/tclConfig.sh" 2>/dev/null; eval echo "${TCL_STUB_LIB_SPEC}")"
export CFLAGS CPPFLAGS LDFLAGS
|