Skip to content

Commit aa05f91

Browse files
gmtalinusg
authored andcommitted
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.
1 parent 216f68c commit aa05f91

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

Ports/scummvm/package.sh

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,10 @@ launcher_category=Games
1515
launcher_command=/usr/local/bin/scummvm
1616
icon_file=icons/scummvm.ico
1717

18-
function pre_configure() {
19-
export CPPFLAGS="-fvisibility=hidden"
20-
export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
21-
export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
22-
export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
23-
}
24-
25-
function post_configure() {
26-
unset CPPFLAGS
27-
unset FREETYPE2_CFLAGS
28-
unset OPENGL_CFLAGS
29-
unset SDL_CFLAGS
30-
}
18+
export CPPFLAGS="-fvisibility=hidden"
19+
export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
20+
export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
21+
export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
3122

3223
function post_install() {
3324
icons_build_dir="${PORT_BUILD_DIR}/scummvm-icons"

0 commit comments

Comments
 (0)