diff --git a/Ports/scummvm/package.sh b/Ports/scummvm/package.sh index 15ff5bc534..9e4ecc0c9a 100755 --- a/Ports/scummvm/package.sh +++ b/Ports/scummvm/package.sh @@ -4,7 +4,7 @@ useconfigure="true" version="2.2.0" files="https://downloads.scummvm.org/frs/scummvm/${version}/scummvm-${version}.tar.gz scummvm-${version}.tar.gz 6ec5bd63b73861c10ca9869f27a74989a9ad6013bad30a1ef70de6ec146c2cb5" auth_type=sha256 -depends="libtheora SDL2" +depends="freetype libiconv libjpeg libpng libtheora SDL2" configopts=" --enable-c++11 --enable-release-mode @@ -16,6 +16,9 @@ launcher_name=ScummVM launcher_category=Games launcher_command=/usr/local/bin/scummvm +export FREETYPE2_CFLAGS="-I${SERENITY_INSTALL_ROOT}/usr/local/include/freetype2" +export FREETYPE2_LIBS="-lfreetype" + post_install() { if command -v convert >/dev/null; then run convert "icons/scummvm.ico[0]" app-32x32.png diff --git a/Ports/scummvm/patches/configure.patch b/Ports/scummvm/patches/configure.patch index b1426e8210..f8a5f37b88 100644 --- a/Ports/scummvm/patches/configure.patch +++ b/Ports/scummvm/patches/configure.patch @@ -1,5 +1,5 @@ --- scummvm-2.2.0/configure 2020-09-13 23:05:37.000000000 +0200 -+++ scummvm-2.2.0-patched/configure 2021-04-04 01:21:54.809774246 +0200 ++++ scummvm-2.2.0-patched/configure 2021-06-07 14:15:33.369406722 +0200 @@ -3917,7 +3917,7 @@ amigaos* | cygwin* | dreamcast | ds | gamecube | mingw* | morphos | n64 | ps3 | psp2 | psp | riscos | wii) _posix=no @@ -9,3 +9,12 @@ _posix=yes ;; os2-emx*) +@@ -5073,6 +5073,8 @@ + # Check for FreeType2 to be present + # + find_freetype() { ++ _freetype_found="true" ++ return + # Wrapper function which tries to find freetype + # either by calling freetype-config or by using + # pkg-config.