From 1c87dda306bcb0b9acf27f3ccbd37a54516c431b Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 21 Jan 2022 21:39:59 +0100 Subject: [PATCH] use github api to get SDL ttf latest version --- 3rdparty/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty/Makefile b/3rdparty/Makefile index 12ba1f5b..c159cd07 100644 --- a/3rdparty/Makefile +++ b/3rdparty/Makefile @@ -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