summaryrefslogtreecommitdiff
path: root/Ports/scummvm/package.sh
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-09 23:01:32 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-09 23:23:01 +0100
commit3ce1118af1203c45f5e19563f55ca280a50c2892 (patch)
tree539372854a7209b5830aa54102511426bba13638 /Ports/scummvm/package.sh
parent57b1dcbec9d18344dc0f2f12a939ed4d24b6ca0b (diff)
downloadserenity-3ce1118af1203c45f5e19563f55ca280a50c2892.zip
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.
Diffstat (limited to 'Ports/scummvm/package.sh')
-rwxr-xr-xPorts/scummvm/package.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh
index 2a6b2f242e..77c1824073 100755
--- a/Ports/scummvm/package.sh
+++ b/Ports/scummvm/package.sh
@@ -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
}