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
|
if [ ! -d '../buildsrc' ]; then
gzip -dc "../${SRC}" | tar -xf -
else
cp -rp ../buildsrc/* './'
fi
cd "${BUILDDIR}" || exit 1
for dir in unix win macosx __fail__; do
if [ "${dir}" = "__fail__" ]; then
exit 1
fi
# Remove previous directory's "tkConfig.sh" if found
rm -f 'tkConfig.sh'
cd "${BUILDDIR}/${dir}" || exit 1
if [ "${dir}" = "win" ]; then
# Statically link Tk to Tclkit if we are compiling for
# Windows
STATICTK="1"
fi
if [ "${STATICTK}" = "1" ]; then
echo "Running: ./configure --disable-shared --disable-symbols --prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
./configure --disable-shared --disable-symbols --prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
else
echo "Running: ./configure --enable-shared --disable-symbols --prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
82
83
84
85
86
87
88
89
90
91
|
if [ ! -d '../buildsrc' ]; then
gzip -dc "../${SRC}" | tar -xf -
else
cp -rp ../buildsrc/* './'
fi
cd "${BUILDDIR}" || exit 1
for dir in unix win macosx win64 __fail__; do
if [ "${dir}" = "__fail__" ]; then
exit 1
fi
# Windows/amd64 workarounds
win64="0"
if [ "${dir}" = "win64" ]; then
win64="1"
dir="win"
fi
# Remove previous directory's "tkConfig.sh" if found
rm -f 'tkConfig.sh'
cd "${BUILDDIR}/${dir}" || exit 1
if [ "${dir}" = "win" ]; then
# Statically link Tk to Tclkit if we are compiling for
# Windows
STATICTK="1"
if [ "${win64}" = "1" ]; then
# Mingw32 for AMD64 requires this, apparently
CPPFLAGS="${CPPFLAGS} -D_WIN32_IE=0x0501"
CFLAGS="${CFLAGS} -D_WIN32_IE=0x0501"
export CPPFLAGS CFLAGS
fi
fi
if [ "${STATICTK}" = "1" ]; then
echo "Running: ./configure --disable-shared --disable-symbols --prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
./configure --disable-shared --disable-symbols --prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
else
echo "Running: ./configure --enable-shared --disable-symbols --prefix=\"${INSTDIR}\" --with-tcl=\"${TCLCONFIGDIR}\" ${CONFIGUREEXTRA}"
|