diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-11-01 21:42:41 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-11-01 21:03:38 +0000 |
commit | aa05f9120c747c8efc2f53bbe77a8b10ba7f0443 (patch) | |
tree | 29bc180b28c9d1c8aba841ac39625b43b8484188 /Ports/scummvm/package.sh | |
parent | 216f68c5665e243ea592a8ff9135844854ffa5b6 (diff) | |
download | serenity-aa05f9120c747c8efc2f53bbe77a8b10ba7f0443.zip |
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.
Diffstat (limited to 'Ports/scummvm/package.sh')
-rwxr-xr-x | Ports/scummvm/package.sh | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh index 10ab632737..4d212deab2 100755 --- a/Ports/scummvm/package.sh +++ b/Ports/scummvm/package.sh @@ -15,19 +15,10 @@ launcher_category=Games launcher_command=/usr/local/bin/scummvm icon_file=icons/scummvm.ico -function pre_configure() { - export CPPFLAGS="-fvisibility=hidden" - export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2" - export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL" - 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 -} +export CPPFLAGS="-fvisibility=hidden" +export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2" +export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL" +export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2" function post_install() { icons_build_dir="${PORT_BUILD_DIR}/scummvm-icons" |