Skip to content

Commit 3ce1118

Browse files
gmtalinusg
authored andcommitted
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.
1 parent 57b1dcb commit 3ce1118

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

Ports/scummvm/package.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ configopts=(
99
"--enable-c++11"
1010
"--enable-release-mode"
1111
"--enable-optimizations"
12-
"--opengl-mode=none"
1312
"--with-sdl-prefix=${SERENITY_INSTALL_ROOT}/usr/local"
1413
)
1514
launcher_name=ScummVM
@@ -20,11 +19,13 @@ icon_file=icons/scummvm.ico
2019
function pre_configure() {
2120
export CPPFLAGS="-fvisibility=hidden"
2221
export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2"
22+
export OPENGL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/include/LibGL"
2323
export SDL_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/SDL2"
2424
}
2525

2626
function post_configure() {
2727
unset CPPFLAGS
2828
unset FREETYPE2_CFLAGS
29+
unset OPENGL_CFLAGS
2930
unset SDL_CFLAGS
3031
}
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- scummvm-2.5.1/configure 2021-10-01 13:52:42.000000000 +0200
2-
+++ scummvm-2.5.1-patched/configure 2021-10-17 16:31:01.554772573 +0200
3-
@@ -3979,7 +3980,7 @@
1+
--- scummvm-2.5.1/configure 2021-12-24 22:19:28.000000000 +0000
2+
+++ scummvm-2.5.1-patched/configure 2022-01-09 21:55:40.753734211 +0000
3+
@@ -3998,7 +3998,7 @@
44
amigaos* | cygwin* | dreamcast | ds | gamecube | mingw* | morphos | n64 | ps3 | psp2 | psp | riscos | wii)
55
_posix=no
66
;;
@@ -9,3 +9,13 @@
99
_posix=yes
1010
;;
1111
os2-emx*)
12+
@@ -5538,6 +5538,9 @@
13+
mingw*)
14+
OPENGL_LIBS="-lopengl32"
15+
;;
16+
+ serenity*)
17+
+ OPENGL_LIBS="-lgl"
18+
+ ;;
19+
*)
20+
OPENGL_LIBS="-lGL"
21+
;;

0 commit comments

Comments
 (0)