From 88f035dc601efa5a7efe8b5252a0c1e85eae7c0d Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Mon, 8 Jul 2024 21:00:16 -0700 Subject: [PATCH] SDL2_gfx Makefile patch https://github.com/flathub/org.tuxpaint.Tuxpaint/blob/beta/Makefile-sdl2_gfx-pkgconfig.patch h/t wjt --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 116afb982..1b129a651 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ # Various contributors (see AUTHORS.txt) # https://tuxpaint.org/ -# June 14, 2002 - July 6, 2024 +# June 14, 2002 - July 8, 2024 # The version number, for release: @@ -310,7 +310,7 @@ CURSOR_SHAPES:=LARGE SDL_LIBS:=$(shell $(PKG_CONFIG) $(SDL_PCNAME) --libs) SDL_LIBS+=$(call linktest,SDL2_image,-lSDL2_image,$(SDL_LIBS)) SDL_LIBS+=$(call linktest,SDL2_ttf,-lSDL2_ttf,$(SDL_LIBS)) -SDL_LIBS+=$(call linktest,SDL2_gfx,-lSDL2_gfx,$(SDL_LIBS)) +SDL_LIBS+=$(shell $(PKG_CONFIG) SDL2_gfx --libs) SDL_LIBS+=$(call linktest,zlib,-lz,) SDL_LIBS+=$(call linktest,libpng,$(PNG),) @@ -330,7 +330,7 @@ PANGO_CFLAGS:=$(shell $(PKG_CONFIG) --cflags pango) SDL_LIBS+=$(SDL_MIXER_LIB) $(SDL2_PANGO_LIB) $(PANGO_LIB) SDL_CFLAGS:=$(shell $(PKG_CONFIG) $(SDL_PCNAME) --cflags) - +SDL_CFLAGS+=$(shell $(PKG_CONFIG) SDL2_gfx --cflags) # New one: -lrsvg-2 -lcairo # Old one: -lcairo -lsvg -lsvg-cairo