default_pre_build         &&

cd "$SOURCE_DIRECTORY"    &&

bzcat ${SCRIPT_DIRECTORY}/xaralx-wxGTK-2.8.patch.bz2 | patch -p1  &&

if [[ $(installed_version libpng | cut -c 1-3) == "1.4" ]]; then
  sed -i "/info_ptr->trans/s:trans:trans_alpha:" wxOil/outptpng.cpp
fi  &&

if [ "$XARALX_SVN" = "y" ]; then
  ./autogen.sh
fi
