summaryrefslogtreecommitdiff
path: root/frontends/gtk/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2023-12-02 13:01:25 +0000
committerVincent Sanders <vince@kyllikki.org>2023-12-02 13:01:25 +0000
commit6550da2bc452d71790dd7a439ad651ed7bcc19eb (patch)
treeb227df46c3491e197bbc05ea468ce86c5547c5aa /frontends/gtk/Makefile
parentf68aca93b7e9f5dd05f1e49ba8ae70ada3ef3d1f (diff)
downloadnetsurf-vince/gtk4.tar.gz
netsurf-vince/gtk4.tar.bz2
GTK4 investigation - read teh comments in compat.h - and forget itvince/gtk4
Diffstat (limited to 'frontends/gtk/Makefile')
-rw-r--r--frontends/gtk/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/frontends/gtk/Makefile b/frontends/gtk/Makefile
index 79f03b370..f50c3d392 100644
--- a/frontends/gtk/Makefile
+++ b/frontends/gtk/Makefile
@@ -45,7 +45,12 @@ GTKCFLAGS := -std=c99 -Dgtk -Dnsgtk -g \
-DGTK_RESPATH=\"$(NETSURF_GTK_RES_PATH)\"
# non optional pkg-configed libs
-$(eval $(call pkg_config_find_and_add,gtk+-$(NETSURF_GTK_MAJOR).0,GTK-$(NETSURF_GTK_MAJOR)))
+ifeq ($(NETSURF_GTK_MAJOR),4)
+NETSURF_GTK_PKGCONF=gtk4
+else
+NETSURF_GTK_PKGCONF=gtk+-$(NETSURF_GTK_MAJOR).0
+endif
+$(eval $(call pkg_config_find_and_add,$(NETSURF_GTK_PKGCONF),GTK-$(NETSURF_GTK_MAJOR)))
$(eval $(call pkg_config_find_and_add,gthread-2.0,GThread2))
$(eval $(call pkg_config_find_and_add,gmodule-2.0,GModule2))