diff options
-rw-r--r-- | Ports/AvailablePorts.md | 1 | ||||
-rwxr-xr-x | Ports/SDL2_gfx/package.sh | 8 | ||||
-rw-r--r-- | Ports/SDL2_gfx/patches/fix-autoconf.patch | 11 |
3 files changed, 20 insertions, 0 deletions
diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 9129cf0aa3..df83b0497f 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 0000000000..982050a2ae --- /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 0000000000..95c6ca2d7f --- /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*) |