use github api to get SDL ttf latest version

This commit is contained in:
Thomas Bernard 2022-01-21 21:39:59 +01:00
parent 147324a9a4
commit 1c87dda306
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF

2
3rdparty/Makefile vendored
View File

@ -79,7 +79,7 @@ SDL2TTFARCH = $(SDL2TTF).tar.gz
SDL2TTFSIG = $(SDL2TTFARCH).sig
SDL2TTFURL = https://www.libsdl.org/projects/SDL_ttf/release/$(SDL2TTFARCH)
SDL2TTFSIGURL = $(SDL2TTFURL).sig
LATESTSDL2TTFVER = $(shell curl -s -S https://www.libsdl.org/projects/SDL_ttf/|grep release/|grep .tar.gz |head -n1|sed 's/.*SDL2_ttf-\([0-9.]*\).tar.gz.*/\1/')
LATESTSDL2TTFVER = $(shell curl -s -S https://api.github.com/repos/libsdl-org/SDL_ttf/tags | jq -r .[0].name|sed 's/.*-\([0-9.]*\)/\1/')
LIBPNGVER = 1.6.37
LIBPNG = libpng-$(LIBPNGVER)
LIBPNGARCH = $(LIBPNG).tar.gz