diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 85b6ec36f75..4067de0118d 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -219,7 +219,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`SDL2_mixer`](SDL2_mixer/) | SDL2\_mixer (Audio mixer add-on for SDL2) | 2.6.2 | https://github.com/libsdl-org/SDL_mixer | | [`SDL2_net`](SDL2_net/) | SDL2\_net (Network add-on for SDL2) | 2.2.0 | https://github.com/libsdl-org/SDL_net | | [`SDL2_sound`](SDL2_sound/) | SDL2\_sound (Abstract soundfile decoder add-on for SDL2) | | https://github.com/icculus/SDL_sound | -| [`SDL2_ttf`](SDL2_ttf/) | SDL2\_ttf (TrueType Font add-on for SDL2) | 2.0.18 | https://www.libsdl.org/projects/SDL_ttf/ | +| [`SDL2_ttf`](SDL2_ttf/) | SDL2\_ttf (TrueType Font add-on for SDL2) | 2.20.1 | https://github.com/libsdl-org/SDL_ttf | | [`SDL_mixer`](SDL_mixer/) | SDL\_mixer (Audio mixer add-on for SDL 1.2) | 1.2.12 | https://www.libsdl.org/projects/SDL_mixer/release-1.2.html | | [`SDL_sound`](SDL_sound/) | SDL\_sound (Abstract soundfile decoder add-on for SDL 1.2) | 1.0.3 | https://www.icculus.org/SDL_sound/ | | [`SDLPoP`](SDLPoP/) | Prince of Persia game | | https://github.com/NagyD/SDLPoP | diff --git a/Ports/SDL2_ttf/package.sh b/Ports/SDL2_ttf/package.sh index 9b7d73287fb..ecab0711f5b 100755 --- a/Ports/SDL2_ttf/package.sh +++ b/Ports/SDL2_ttf/package.sh @@ -1,10 +1,9 @@ #!/usr/bin/env -S bash ../.port_include.sh -port=SDL2_ttf -version=2.0.18 -useconfigure=true -use_fresh_config_sub=true -files="https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-${version}.tar.gz SDL2_ttf-${version}.tar.gz 7234eb8883514e019e7747c703e4a774575b18d435c22a4a29d068cb768a2251" -auth_type=sha256 +port='SDL2_ttf' +version='2.20.1' +useconfigure='true' +files="https://github.com/libsdl-org/SDL_ttf/releases/download/release-${version}/SDL2_ttf-${version}.tar.gz SDL2_ttf-${version}.tar.gz 78cdad51f3cc3ada6932b1bb6e914b33798ab970a1e817763f22ddbfd97d0c57" +auth_type='sha256' depends=("SDL2" "freetype") configure() { diff --git a/Ports/SDL2_ttf/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch b/Ports/SDL2_ttf/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch index d50976d51a3..c62b0c15e94 100644 --- a/Ports/SDL2_ttf/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch +++ b/Ports/SDL2_ttf/patches/0001-libtool-Enable-shared-library-support-for-SerenityOS.patch @@ -17,10 +17,10 @@ static library into a shared library. 1 file changed, 34 insertions(+) diff --git a/configure b/configure -index 02724d0..fec4760 100755 +index 9afa3e1..2ed54b6 100755 --- a/configure +++ b/configure -@@ -4841,6 +4841,10 @@ tpf*) +@@ -5729,6 +5729,10 @@ tpf*) os2*) lt_cv_deplibs_check_method=pass_all ;; @@ -31,7 +31,7 @@ index 02724d0..fec4760 100755 esac fi -@@ -7634,6 +7638,10 @@ $as_echo_n "checking for $compiler option to produce PIC... " >&6; } +@@ -8402,6 +8406,10 @@ printf %s "checking for $compiler option to produce PIC... " >&6; } lt_prog_compiler_static='-Bstatic' ;; @@ -42,7 +42,7 @@ index 02724d0..fec4760 100755 *) lt_prog_compiler_can_build_shared=no ;; -@@ -8919,6 +8927,10 @@ rm -f core conftest.err conftest.$ac_objext \ +@@ -9690,6 +9698,10 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ hardcode_shlibpath_var=no ;; @@ -53,7 +53,7 @@ index 02724d0..fec4760 100755 *) ld_shlibs=no ;; -@@ -9846,6 +9858,17 @@ uts4*) +@@ -10615,6 +10627,17 @@ uts4*) shlibpath_var=LD_LIBRARY_PATH ;; @@ -71,7 +71,7 @@ index 02724d0..fec4760 100755 *) dynamic_linker=no ;; -@@ -15654,6 +15677,17 @@ uts4*) +@@ -16924,6 +16947,17 @@ uts4*) shlibpath_var=LD_LIBRARY_PATH ;;