Ports: Add SDL2_gfx

This commit is contained in:
Linus Groh 2021-04-04 19:28:41 +02:00 committed by Andreas Kling
parent 1b2123af80
commit 0490540e21
3 changed files with 20 additions and 0 deletions

View file

@ -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/ |

8
Ports/SDL2_gfx/package.sh Executable file
View file

@ -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"

View file

@ -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*)