summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-06-07 14:18:37 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-08 17:29:57 +0200
commitefae7b7748029fa2d7013eedaef5c876567a09cf (patch)
tree83df04b47905737246761cd3f0c0b56025cf0146 /Ports
parent4bf9f334d5fa4d7db376e9c51753f587398165b6 (diff)
downloadserenity-efae7b7748029fa2d7013eedaef5c876567a09cf.zip
Ports/ScummVM: Add freetype, libiconv, libjpeg and libpng to build deps
Diffstat (limited to 'Ports')
-rwxr-xr-xPorts/scummvm/package.sh5
-rw-r--r--Ports/scummvm/patches/configure.patch11
2 files changed, 14 insertions, 2 deletions
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.