mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 03:05:07 +00:00

Both LibGUI and ScummVM have a GUI::Widget class. This interferes with normal operation of LibGUI, since the wrong GUI::Widget::~Widget() is invoked when SerenitySDLWidget (from the SDL2 port) is destructed. By adding `-fvisibility=hidden` to the compiler flags, we set the symbol visibility to hidden by default and the correct destructor is invoked again.
30 lines
977 B
Bash
Executable file
30 lines
977 B
Bash
Executable file
#!/usr/bin/env -S bash ../.port_include.sh
|
|
port=scummvm
|
|
useconfigure="true"
|
|
version="2.5.0"
|
|
files="https://downloads.scummvm.org/frs/scummvm/${version}/scummvm-${version}.tar.xz scummvm-${version}.tar.xz b47ee4b195828d2c358e38a4088eda49886dc37a04f1cc17b981345a59e0d623"
|
|
auth_type=sha256
|
|
depends=("freetype" "libiconv" "libjpeg" "libpng" "libtheora" "SDL2")
|
|
configopts=(
|
|
"--enable-c++11"
|
|
"--enable-release-mode"
|
|
"--enable-optimizations"
|
|
"--opengl-mode=none"
|
|
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
|
|
)
|
|
launcher_name=ScummVM
|
|
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 SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
|
|
}
|
|
|
|
function post_configure() {
|
|
unset CPPFLAGS
|
|
unset FREETYPE2_CFLAGS
|
|
unset SDL_CFLAGS
|
|
}
|