package/netsurf: add GTK+ 3 frontend

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Francois Perrad 2018-12-12 08:14:54 +01:00 committed by Thomas Petazzoni
parent 4d8407091d
commit 436ed9d547
2 changed files with 17 additions and 3 deletions

View 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

View 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