diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-04-06 02:25:34 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-06 08:05:57 +0100 |
commit | b884c5746d09efc333bb1848cdd46c597f857138 (patch) | |
tree | 1d4a311ac29f999282fa52e924496026032bd914 /Ports/angband | |
parent | 654075ab489fc9d105ea78f57f4cd6bc27f9d155 (diff) | |
download | serenity-b884c5746d09efc333bb1848cdd46c597f857138.zip |
Ports: Update angband to 4.2.4
Diffstat (limited to 'Ports/angband')
-rwxr-xr-x | Ports/angband/package.sh | 4 | ||||
-rw-r--r-- | Ports/angband/patches/ReadMe.md | 8 | ||||
-rw-r--r-- | Ports/angband/patches/fix-sdl-prefix-handling.patch | 59 | ||||
-rw-r--r-- | Ports/angband/patches/use-sdl2-config.patch | 79 |
4 files changed, 65 insertions, 85 deletions
diff --git a/Ports/angband/package.sh b/Ports/angband/package.sh index 8bc54e1959..6cc901da9a 100755 --- a/Ports/angband/package.sh +++ b/Ports/angband/package.sh @@ -1,10 +1,10 @@ #!/usr/bin/env -S bash ../.port_include.sh port=angband -version=4.2.3 +version=4.2.4 workdir="Angband-${version}" useconfigure=true use_fresh_config_sub=true -files="https://github.com/angband/angband/releases/download/${version}/Angband-${version}.tar.gz Angband-${version}.tar.gz 833c4f8cff2aee61ad015f9346fceaa4a8c739fe2dbe5bd1acd580c91818e6bb" +files="https://github.com/angband/angband/releases/download/${version}/Angband-${version}.tar.gz Angband-${version}.tar.gz a07c78c1dd05e48ddbe4d8ef5d1880fcdeab55fd05f1336d9cba5dd110b15ff3" auth_type=sha256 depends=("ncurses" "SDL2" "SDL2_image" "SDL2_ttf" "SDL2_mixer") configopts=( diff --git a/Ports/angband/patches/ReadMe.md b/Ports/angband/patches/ReadMe.md index a55e0eceab..2715af365e 100644 --- a/Ports/angband/patches/ReadMe.md +++ b/Ports/angband/patches/ReadMe.md @@ -1,10 +1,10 @@ # Patches for angband -## `use-sdl2-config.patch` - -Replaces uses of the system `sdl2-config` with the one from serenity. - ## `disable-accelerated-rendering.patch` Disable SDL2 hardware acceleration as we do not support that. +## `fix-sdl-prefix-handling.patch` + +Fix up some copy-paste and logic mistakes in the configure script that +prevent us from setting a prefix for the SDL installation. diff --git a/Ports/angband/patches/fix-sdl-prefix-handling.patch b/Ports/angband/patches/fix-sdl-prefix-handling.patch new file mode 100644 index 0000000000..216b776d11 --- /dev/null +++ b/Ports/angband/patches/fix-sdl-prefix-handling.patch @@ -0,0 +1,59 @@ +diff -ur a/configure b/configure +--- a/configure 2022-02-21 23:23:13.000000000 +0100 ++++ b/configure 2022-04-06 02:12:48.027633543 +0200 +@@ -5863,14 +5863,14 @@ + if test "$SDL2_CONFIG" = "no" ; then + no_sdl2=yes + else +- SDL2_CFLAGS=`$SDL2_CONFIG $sdl2conf_args --cflags` +- SDL2_LIBS=`$SDL2_CONFIG $sdl2conf_args --libs` ++ SDL2_CFLAGS=`$SDL2_CONFIG $sdl2_args --cflags` ++ SDL2_LIBS=`$SDL2_CONFIG $sdl2_args --libs` + + sdl2_major_version=`$SDL2_CONFIG $sdl2_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + sdl2_minor_version=`$SDL2_CONFIG $sdl2_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` +- sdl2_micro_version=`$SDL2_CONFIG $sdl2_config_args --version | \ ++ sdl2_micro_version=`$SDL2_CONFIG $sdl2_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_sdl2test" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" +@@ -6024,9 +6024,7 @@ + if test "$SDL2_CONFIG" != "no"; then + hold_CPPFLAGS="${CPPFLAGS}" + hold_LIBS="${LIBS}" +- SDL2_CFLAGS=`${SDL2_CONFIG} --cflags` + CPPFLAGS="${CPPFLAGS} ${SDL2_CFLAGS}" +- SDL2_LIBS=`${SDL2_CONFIG} --libs` + LIBS="${LIBS} ${SDL2_LIBS}" + if test "$enable_sdl2" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL2_image" >&5 +@@ -6278,14 +6276,14 @@ + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else +- SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` +- SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` ++ SDL_CFLAGS=`$SDL_CONFIG $sdl_args --cflags` ++ SDL_LIBS=`$SDL_CONFIG $sdl_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` +- sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ ++ sdl_micro_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_sdltest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" +@@ -6439,9 +6437,7 @@ + if test "$SDL_CONFIG" != "no"; then + hold_CPPFLAGS="${CPPFLAGS}" + hold_LIBS="${LIBS}" +- SDL_CFLAGS=`${SDL_CONFIG} --cflags` + CPPFLAGS="${CPPFLAGS} ${SDL_CFLAGS}" +- SDL_LIBS=`${SDL_CONFIG} --libs` + LIBS="${LIBS} ${SDL_LIBS}" + if test "$enable_sdl" = "yes"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL_image" >&5 diff --git a/Ports/angband/patches/use-sdl2-config.patch b/Ports/angband/patches/use-sdl2-config.patch deleted file mode 100644 index a43962429d..0000000000 --- a/Ports/angband/patches/use-sdl2-config.patch +++ /dev/null @@ -1,79 +0,0 @@ -diff -ur a/configure b/configure ---- a/configure 2021-08-01 01:29:22.000000000 +0200 -+++ b/configure 2021-10-31 20:28:51.932716113 +0100 -@@ -6046,7 +6046,7 @@ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` - sdl2_minor_version=`$SDL2_CONFIG $sdl2_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` -- sdl2_micro_version=`$SDL2_CONFIG $sdl2_config_args --version | \ -+ sdl2_micro_version=`$SDL2_CONFIG $sdl2_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` - if test "x$enable_sdl2test" = "xyes" ; then - ac_save_CFLAGS="$CFLAGS" -@@ -6200,9 +6200,9 @@ - else - hold_CPPFLAGS="${CPPFLAGS}" - hold_LIBS="${LIBS}" -- SDL2_CFLAGS=`sdl2-config --cflags` -+ SDL2_CFLAGS=`${SDL2_CONFIG} ${sdl2_args} --cflags` - CPPFLAGS="${CPPFLAGS} ${SDL2_CFLAGS}" -- SDL2_LIBS=`sdl2-config --libs` -+ SDL2_LIBS=`${SDL2_CONFIG} ${sdl2_args} --libs` - LIBS="${LIBS} ${SDL2_LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL2_image" >&5 - $as_echo_n "checking for IMG_LoadPNG_RW in -lSDL2_image... " >&6; } -@@ -6389,14 +6389,14 @@ - if test "$SDL_CONFIG" = "no" ; then - no_sdl=yes - else -- SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` -- SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` -+ SDL_CFLAGS=`$SDL_CONFIG ${sdl_args} --cflags` -+ SDL_LIBS=`$SDL_CONFIG ${sdl_args} --libs` - -- sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ -+ sdl_major_version=`$SDL_CONFIG ${sdl_args} --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` -- sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ -+ sdl_minor_version=`$SDL_CONFIG ${sdl_args} --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` -- sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ -+ sdl_micro_version=`$SDL_CONFIG ${sdl_args} --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` - if test "x$enable_sdltest" = "xyes" ; then - ac_save_CFLAGS="$CFLAGS" -@@ -6550,9 +6550,9 @@ - else - hold_CPPFLAGS="${CPPFLAGS}" - hold_LIBS="${LIBS}" -- SDL_CFLAGS=`sdl-config --cflags` -+ SDL_CFLAGS=`${SDL_CONFIG} ${sdl_args} --cflags` - CPPFLAGS="${CPPFLAGS} ${SDL_CFLAGS}" -- SDL_LIBS=`sdl-config --libs` -+ SDL_LIBS=`${SDL_CONFIG} ${sdl_args} --libs` - LIBS="${LIBS} ${SDL_LIBS}" - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_LoadPNG_RW in -lSDL_image" >&5 - $as_echo_n "checking for IMG_LoadPNG_RW in -lSDL_image... " >&6; } -@@ -6674,8 +6674,8 @@ - hold_CPPFLAGS="${CPPFLAGS}" - hold_LIBS="${LIBS}" - if test "$with_sdl2" != "yes"; then -- SDL2_CFLAGS=`sdl2-config --cflags` -- SDL2_LIBS=`sdl2-config --libs` -+ SDL2_CFLAGS=`${SDL2_CONFIG} ${sdl2_args} --cflags` -+ SDL2_LIBS=`${SDL2_CONFIG} ${sdl2_args} --libs` - CPPFLAGS="${CPPFLAGS} ${SDL2_CFLAGS}" - LIBS="${LIBS} ${SDL2_LIBS}" - fi -@@ -6741,9 +6741,9 @@ - hold_CPPFLAGS="${CPPFLAGS}" - hold_LIBS="${LIBS}" - if test "$with_sdl" != "yes"; then -- SDL_CFLAGS=`sdl-config --cflags` -+ SDL_CFLAGS=`${SDL_CONFIG} ${sdl_args} --cflags` - CPPFLAGS="${CPPFLAGS} ${SDL_CFLAGS}" -- SDL_LIBS=`sdl-config --libs` -+ SDL_LIBS=`${SDL_CONFIG} ${sdl_args} --libs` - LIBS="${LIBS} ${SDL_LIBS}" - fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mix_OpenAudio in -lSDL_mixer" >&5 |