Source
/usr/bin/find . -name Makefile -print0 | xargs -0 perl -pi -e "s,\\$\\(INSTALL_ROOT\\)$FixifiedSW,\\$\\(INSTALL_ROOT\\)%p,g"
#fink
# CURRENTVERSION=`dpkg -p qt3 | grep '^Version:' | cut -d' ' -f2-`
# DOREMOVE=0
# for BADUPGRADE in 3.2.1-1 3.2.1-11 3.2.1-12; do
# if [ "$CURRENTVERSION" = "$BADUPGRADE" ]; then
# DOREMOVE=1
# fi
# done
#macports
#
#fink
# for file in `ls -1 /lib/ 2>/dev/null | grep -E '(qt-mt|qt3)' | grep -v '.bad$'`; do
# echo "WARNING: found suspicious file or directory \"$file\" -- moving to \"${file}.bad\""
# /bin/mv "/lib/${file}" "/lib/${file}.bad"
# done
#macports
for file in `ls -1 /lib/ 2>/dev/null | grep -E '(qt-mt|qt3)' | grep -v '.bad$'`; do
echo "WARNING: found suspicious file or directory \"$file\" -- please remove it first.\""
exit 1
done
#fink
# if [ "$DOREMOVE" = "1" ]; then
# echo "You have a version of qt3 installed that contains a bug that makes it impossible"
# echo "to build this package. I am going to remove qt3 not to allow the upgrade to"
# echo "happen. It should get re-installed as needed when the upgrade completes."
# echo ""
# echo -e "removing qt3... \c"
# if dpkg -r --force-depends qt3 >/tmp/dpkg.output 2>&1; then
# echo "done"
# else
# echo "failed!"
# echo ""
# echo "I was unable to remove the old qt3, this will probably cause problems building"
# echo "this package. Please remove qt3 and then retry this build."
# echo ""
# echo "---( dpkg output )---"
# cat /tmp/dpkg.output
# fi
# fi
#macports
#
#fink
# unset QMAKESPEC
# export QTDIR=`pwd`
# export DYLD_LIBRARY_PATH="$QTDIR/lib:$QTDIR/plugins/designer:$QTDIR/plugins/imageformats"
# export PATH="$QTDIR/bin:%p/lib/freetype219/bin:$PATH"
# export INSTALL_ROOT=""
#macports
unset QMAKESPEC
export QTDIR=`pwd`
export DYLD_LIBRARY_PATH="$QTDIR/lib:$QTDIR/plugins/designer:$QTDIR/plugins/imageformats"
export PATH="$QTDIR/bin:$PATH"
export INSTALL_ROOT=""
# ~/.qt/ is created during the build process.
export HOME="$QTDIR"
if [ -f /usr/lib/libresolv.dylib ]; then