summaryrefslogtreecommitdiff
path: root/Ports/scummvm/package.sh
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-11-01 21:42:41 +0100
committerLinus Groh <mail@linusgroh.de>2022-11-01 21:03:38 +0000
commitaa05f9120c747c8efc2f53bbe77a8b10ba7f0443 (patch)
tree29bc180b28c9d1c8aba841ac39625b43b8484188 /Ports/scummvm/package.sh
parent216f68c5665e243ea592a8ff9135844854ffa5b6 (diff)
downloadserenity-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-xPorts/scummvm/package.sh17
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"