package/netsurf: add GTK+ 3 frontend
authorFrancois Perrad <fperrad@gmail.com>
Wed, 12 Dec 2018 07:14:54 +0000 (08:14 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 16 Dec 2018 20:46:37 +0000 (21:46 +0100)
Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/netsurf/Config.in
package/netsurf/netsurf.mk

index 21a3a992a7084d17d63d4203aaccac0574068945..ca28a1668835eda36083b509c39e8d40d27fcb04 100644 (file)
@@ -9,7 +9,7 @@ config BR2_PACKAGE_NETSURF
        help
          NetSurf is a compact graphical web browser which aims for
          HTML5, CSS and JavaScript support.
-         Frontends: GTK+ 2 (X11), SDL 1.2 (framebuffer)
+         Frontends: GTK (X11), SDL 1.2 (framebuffer)
 
          http://www.netsurf-browser.org/
 
@@ -26,10 +26,16 @@ config BR2_PACKAGE_NETSURF_SDL
          Select SDL 1.2 frontend.
 
 config BR2_PACKAGE_NETSURF_GTK
-       bool "gtk frontend"
+       bool "gtk2 frontend"
        depends on BR2_PACKAGE_LIBGTK2
        help
-         Select GTK frontend.
+         Select GTK+ 2 frontend.
+
+config BR2_PACKAGE_NETSURF_GTK3
+       bool "gtk3 frontend"
+       depends on BR2_PACKAGE_LIBGTK3
+       help
+         Select GTK+ 3 frontend.
 
 endchoice
 
index 004d582562f54e8f949073f1f15bac5d2a5d1d71..8d29c5acc80132a6f0c8e5622132102f3e78bc3c 100644 (file)
@@ -15,6 +15,14 @@ NETSURF_DEPENDENCIES = expat jpeg libcurl libpng openssl \
 ifeq ($(BR2_PACKAGE_NETSURF_GTK),y)
 NETSURF_DEPENDENCIES += libgtk2
 NETSURF_FRONTEND = gtk
+endif
+
+ifeq ($(BR2_PACKAGE_NETSURF_GTK3),y)
+NETSURF_DEPENDENCIES += libgtk3
+NETSURF_FRONTEND = gtk3
+endif
+
+ifeq ($(BR2_PACKAGE_NETSURF_GTK)$(BR2_PACKAGE_NETSURF_GTK3),y)
 ifeq ($(BR2_PACKAGE_LIBRSVG),y)
 NETSURF_DEPENDENCIES += librsvg
 define NETSURF_SVG_CONFIGURE_CMDS