1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:37:34 +00:00

Ports: Update build flags for ScummVM

These were no longer being picked up after some recent changes. Since
port builds happen in subshells nowadays, we can get rid of the export /
unset combo anyway.

This fixes ScummVM crashing on startup, caused by `-fvisibility` not
being set.
This commit is contained in:
Jelle Raaijmakers 2022-11-01 21:42:41 +01:00 committed by Linus Groh
parent 216f68c566
commit aa05f9120c

View file

@ -15,19 +15,10 @@ launcher_category=Games
launcher_command=/usr/local/bin/scummvm launcher_command=/usr/local/bin/scummvm
icon_file=icons/scummvm.ico icon_file=icons/scummvm.ico
function pre_configure() { export CPPFLAGS="-fvisibility=hidden"
export CPPFLAGS="-fvisibility=hidden" export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2" export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL" export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
}
function post_configure() {
unset CPPFLAGS
unset FREETYPE2_CFLAGS
unset OPENGL_CFLAGS
unset SDL_CFLAGS
}
function post_install() { function post_install() {
icons_build_dir="${PORT_BUILD_DIR}/scummvm-icons" icons_build_dir="${PORT_BUILD_DIR}/scummvm-icons"