From af98249b6886defcd9d456bd5a23082f9ec7f75f Mon Sep 17 00:00:00 2001 From: Sam Whitehead Date: Fri, 24 Sep 2021 05:20:55 -0600 Subject: Add animated webp support (#20) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: NRK Co-authored-by: Stein Gunnar Bakkeby Co-authored-by: Berke Kocaoğlu --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3b4ba0a..1bae33b 100644 --- a/Makefile +++ b/Makefile @@ -30,9 +30,15 @@ ifeq ($(HAVE_LIBGIF), 1) else HAVE_LIBGIF = 0 endif +ifeq ($(HAVE_LIBWEBP), 1) + OPTIONAL_LIBS += -lwebpdemux -lwebp +else + HAVE_LIBWEBP = 0 +endif CPPFLAGS = -D_XOPEN_SOURCE=700 \ -DHAVE_LIBGIF=$(HAVE_LIBGIF) -DHAVE_LIBEXIF=$(HAVE_LIBEXIF) \ + -DHAVE_LIBWEBP=$(HAVE_LIBWEBP) \ -I/usr/include/freetype2 -I$(PREFIX)/include/freetype2 LDLIBS = -lImlib2 -lX11 -lXft -lfontconfig $(OPTIONAL_LIBS) @@ -61,7 +67,7 @@ window.o: icon/data.h config.mk: @echo "GEN $@" @echo "# 0 = disable, 1 = enable" > config.mk - @for lib in exif gif; do \ + @for lib in exif gif webp; do \ if echo "int main(){}" | $(CC) "-l$$lib" -o /dev/null -x c - 2>/dev/null ; then \ echo "HAVE_LIB$$lib=1" | tr '[:lower:]' '[:upper:]' >> config.mk ; \ fi \ -- cgit v1.2.3-54-g00ecf