for l in X `find $ldir -name "*.la"`; do
if [ "$l" != "X" ] ; then
- pydir="" ; tcldir=""
+ pydir="" ; tcldir="" ; freetypedir="" ;
if [ -n "${PYTHONROOT}" ] ; then pydir=${PYTHONROOT} ; fi
if [ -n "${TCLHOME}" ] ; then tcldir=${TCLHOME} ; fi
+ if [ -n "${FREETYPEDIR}" ] ; then freetypedir=${FREETYPEDIR} ; fi
+
sed -e "s%[[:space:]]\(-L\)\?[^[:space:]]*${PRODUCT}% \1${PRODUCT_DIR}%g" \
-e "s%[[:space:]]\(-L\)\?[^[:space:]]*Python[^[:space:]]*/lib% \1${pydir}/lib%g" \
- -e "s%[[:space:]]\(-L\)\?[^[:space:]]*tcltk[^[:space:]]*/lib% \1${tcldir}/lib%g" $l > $l"_"
+ -e "s%[[:space:]]\(-L\)\?[^[:space:]]*tcltk[^[:space:]]*/lib% \1${tcldir}/lib%g" \
+ -e "s%[[:space:]]\(-L\)\?[^[:space:]]*freetype[^[:space:]]*/lib\(/libfreetype\.la\)% \1${freetypedir}/lib\2%g" $l > $l"_"
chmod -f --reference=$l $l"_"
mv -f $l"_" $l