default_pre_build &&
cd "$SOURCE_DIRECTORY" &&

patch -p0 < "$SPELL_DIRECTORY/mime.patch" &&
patch -p1 < "$SPELL_DIRECTORY/ardour-2.8.16-lilv16.patch" &&

sed -i "s:soundtouch-1.0:soundtouch-1.4:" SConstruct &&
# Brute force lib64 killing.
sed -i "s:lib64:lib:" SConstruct &&
# Just setting pkgconfig path may work, too.
# Nope, configuration stage fings aubio, but fails to use the flags to find
# the header. So, enforcing is back in.
# Force old aubio lib into the build.
# I hate scons. -- ThOr
perl -pi -e "s:CPPPATH = \[ '\.' \]:CPPPATH = [ '.', '$INSTALL_ROOT/opt/aubio03/include' ], LIBPATH = [ '$INSTALL_ROOT/opt/aubio03/lib']:" SConstruct
