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
}

View file

@ -1,6 +1,6 @@
--- scummvm-2.5.1/configure 2021-10-01 13:52:42.000000000 +0200
+++ scummvm-2.5.1-patched/configure 2021-10-17 16:31:01.554772573 +0200
@@ -3979,7 +3980,7 @@
--- scummvm-2.5.1/configure 2021-12-24 22:19:28.000000000 +0000
+++ scummvm-2.5.1-patched/configure 2022-01-09 21:55:40.753734211 +0000
@@ -3998,7 +3998,7 @@
amigaos* | cygwin* | dreamcast | ds | gamecube | mingw* | morphos | n64 | ps3 | psp2 | psp | riscos | wii)
_posix=no
;;
@ -9,3 +9,13 @@
_posix=yes
;;
os2-emx*)
@@ -5538,6 +5538,9 @@
mingw*)
OPENGL_LIBS="-lopengl32"
;;
+ serenity*)
+ OPENGL_LIBS="-lgl"
+ ;;
*)
OPENGL_LIBS="-lGL"
;;