default_pre_build && cd $SOURCE_DIRECTORY && # # Make libpng and FreeType optional # if [ "$SPLASHUTILS_PNG" == "n" ]; then # # Disable PNG # sedit 's:.*CONFIG_PNG::g' config.h fi && if [ "$SPLASHUTILS_TTF" == "n" ]; then # # Disable FreeType # sedit 's:.*CONFIG_TTF.*::g' config.h fi && # # End optionalization of FreeType and PNG # # # install_rootify # sedit "s:/etc:$TRACK_ROOT/etc:" config.h && sedit "s:/lib:$TRACK_ROOT/lib:" config.h && # # Make sure it builds against our system libs # Currently doesn't work. :( # #rm -rf libs/{freetype*,jpeg*,libpng*,zlib*} && # # Needs the linux source to build against. # Uses get_kernel_version from $GRIMOIRE/FUNCTIONS # ln -s $TRACK_ROOT/lib/modules/$(get_kernel_version)/build linux