35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
cd "${BUILDDIR}" || exit 1
for dir in unix win macosx; do
# Remove previous directory's "tkConfig.sh" if found
rm -f 'tkConfig.sh'
cd "${BUILDDIR}/${dir}" || exit 1
./configure --disable-shared --prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
"${MAKE:-make}" || continue
"${MAKE:-make}" install
mkdir "${OUTDIR}/lib" || exit 1
cp -r "${INSTDIR}/lib"/tk*/ "${OUTDIR}/lib/"
break
done
) || exit 1
exit 0
|
|
>
>
>
>
>
>
>
>
|
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
|
cd "${BUILDDIR}" || exit 1
for dir in unix win macosx; do
# Remove previous directory's "tkConfig.sh" if found
rm -f 'tkConfig.sh'
cd "${BUILDDIR}/${dir}" || exit 1
./configure --enable-shared --prefix="${INSTDIR}" --with-tcl="${TCLCONFIGDIR}" ${CONFIGUREEXTRA}
"${MAKE:-make}" || continue
"${MAKE:-make}" install
# Update pkgIndex to load libtk from the local directory rather
# than the parent directory
for pkgIndex in "${INSTDIR}"/lib/tk*/pkgIndex.tcl; do
sed 's@ \.\. @ @g' "${pkgIndex}" > "${pkgIndex}.new"
mv "${pkgIndex}.new" "${pkgIndex}"
done
mkdir "${OUTDIR}/lib" || exit 1
cp -r "${INSTDIR}/lib"/tk*/ "${OUTDIR}/lib/"
cp -r "${INSTDIR}/lib"/libtk* "${OUTDIR}/lib"/tk*/
break
done
) || exit 1
exit 0
|