1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:37:35 +00:00

Ports: Compile ScummVM with OpenGL support

By default, ScummVM will still run in software rendering mode, but the
options to enable OpenGL will become available.
This commit is contained in:
Jelle Raaijmakers 2022-01-09 23:01:32 +01:00 committed by Linus Groh
parent 57b1dcbec9
commit 3ce1118af1
2 changed files with 15 additions and 4 deletions

View file

@ -9,7 +9,6 @@ configopts=(
"--enable-c++11"
"--enable-release-mode"
"--enable-optimizations"
"--opengl-mode=none"
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
)
launcher_name=ScummVM
@ -20,11 +19,13 @@ 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
}