From 0490540e21b6e6f114f28a8eeffa69d7b656f6a7 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 4 Apr 2021 19:28:41 +0200 Subject: [PATCH] Ports: Add SDL2_gfx --- Ports/AvailablePorts.md | 1 + Ports/SDL2_gfx/package.sh | 8 ++++++++ Ports/SDL2_gfx/patches/fix-autoconf.patch | 11 +++++++++++ 3 files changed, 20 insertions(+) create mode 100755 Ports/SDL2_gfx/package.sh create mode 100644 Ports/SDL2_gfx/patches/fix-autoconf.patch diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 9129cf0aa3c..df83b0497fb 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -74,6 +74,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^ | [`rsync`](rsync/) | rsync | 3.1.3 | https://rsync.samba.org/ | | [`scummvm`](scummvm/) | ScummVM | 2.2.0 | https://www.scummvm.org/ | | [`SDL2`](SDL2/) | Simple DirectMedia Layer (SDL2) | | https://github.com/SerenityOS/SDL | +| [`SDL2_gfx`](SDL2_gfx/) | SDL2\_gfx (Graphics primitives add-on for SDL2) | 1.0.4 | https://sourceforge.net/projects/sdl2gfx/ | | [`SDL2_image`](SDL2_image/) | SDL2\_image (Image loading add-on for SDL2) | 2.0.5 | https://www.libsdl.org/projects/SDL_image/ | | [`SDL2_mixer`](SDL2_mixer/) | SDL2\_mixer (audio mixer add-on for SDL2) | 2.0.4 | https://www.libsdl.org/projects/SDL_mixer/ | | [`SDL2_ttf`](SDL2_ttf/) | SDL2\_ttf (TrueType Font add-on for SDL2) | 2.0.15 | https://www.libsdl.org/projects/SDL_ttf/ | diff --git a/Ports/SDL2_gfx/package.sh b/Ports/SDL2_gfx/package.sh new file mode 100755 index 00000000000..982050a2aef --- /dev/null +++ b/Ports/SDL2_gfx/package.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env -S bash ../.port_include.sh + +port=SDL2_gfx +version=1.0.4 +files="https://downloads.sourceforge.net/project/sdl2gfx/SDL2_gfx-${version}.tar.gz SDL2_gfx-${version}.tar.gz" +depends="SDL2" +useconfigure=true +configopts="--with-sdl-prefix=${SERENITY_BUILD_DIR}/Root/usr" diff --git a/Ports/SDL2_gfx/patches/fix-autoconf.patch b/Ports/SDL2_gfx/patches/fix-autoconf.patch new file mode 100644 index 00000000000..95c6ca2d7ff --- /dev/null +++ b/Ports/SDL2_gfx/patches/fix-autoconf.patch @@ -0,0 +1,11 @@ +--- SDL2_gfx-1.0.4/config.sub 2021-04-04 18:40:50.418255684 +0200 ++++ SDL2_gfx-1.0.4/config.sub 2021-04-04 18:42:32.801888295 +0200 +@@ -1355,7 +1355,7 @@ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ +- | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) ++ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -serenity*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*)