From 13aa88ff1dbf72c288a06b2728b18ace76f515a7 Mon Sep 17 00:00:00 2001 From: Marcus Date: Fri, 23 Aug 2024 13:37:26 +0200 Subject: [PATCH] add support for webkitgtk-4.1, if folder exists --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index edf58beb..19a695c2 100644 --- a/Makefile +++ b/Makefile @@ -187,6 +187,10 @@ CPPFLAGS += -fPIC ifndef MAC_OS ifndef ANY_MSYS WEBKITGTK ?= webkit2gtk-4.0 +WEBKITGTK41:= $(firstword $(wildcard /usr/include/webkitgtk-4.1)) +ifneq (,$(WEBKITGTK41)) + WEBKITGTK=webkit2gtk-4.1 +endif CPPFLAGS += $(shell pkg-config --cflags --libs gtk+-3.0 $(WEBKITGTK)) -lstdc++ endif endif