default_pre_build    &&
cd $SOURCE_DIRECTORY &&

apply_patch_dir patches &&

# remove most of the embedded libraries. use the system ones instead
rm -rf freetype jpeg libpng tiff lcms2 ijs openjpeg zlib leptonica tesseract &&

# remove non-existing openjpeg header inclusion
sed -i "/opj_malloc.h/d" base/sjpx_openjpeg.c
