1# netsurf mixes up host and target CFLAGS, so it isn't compatible with
2# architectures where we pass ABI specific compiler flags (TARGET_ABI)
3config BR2_PACKAGE_NETSURF_ARCH_SUPPORTS
4	bool
5	default y if !((BR2_arc && BR2_ARC_ATOMIC_EXT) || \
6		BR2_powerpc_8540 || BR2_powerpc_8548 || BR2_powerpc_e500mc || \
7		BR2_xtensa)
8
9comment "netsurf needs a toolchain w/ dynamic library"
10	depends on BR2_STATIC_LIBS
11	depends on BR2_PACKAGE_NETSURF_ARCH_SUPPORTS
12
13config BR2_PACKAGE_NETSURF
14	bool "netsurf"
15	# static linking support is broken beyond repair
16	depends on !BR2_STATIC_LIBS
17	depends on BR2_PACKAGE_NETSURF_ARCH_SUPPORTS
18	select BR2_PACKAGE_EXPAT
19	select BR2_PACKAGE_JPEG
20	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
21	select BR2_PACKAGE_LIBPNG
22	select BR2_PACKAGE_OPENSSL if BR2_PACKAGE_LIBCURL
23	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL if BR2_PACKAGE_LIBCURL
24	help
25	  NetSurf is a compact graphical web browser which aims for
26	  HTML5, CSS and JavaScript support.
27	  Frontends: GTK (X11), SDL 1.2 (framebuffer)
28
29	  http://www.netsurf-browser.org/
30
31if BR2_PACKAGE_NETSURF
32
33choice
34	prompt "Netsurf frontend"
35	default BR2_PACKAGE_NETSURF_SDL
36
37config BR2_PACKAGE_NETSURF_SDL
38	bool "sdl frontend"
39	select BR2_PACKAGE_SDL
40	help
41	  Select SDL 1.2 frontend.
42
43config BR2_PACKAGE_NETSURF_GTK
44	bool "gtk2 frontend"
45	depends on BR2_PACKAGE_LIBGTK2
46	help
47	  Select GTK+ 2 frontend.
48
49config BR2_PACKAGE_NETSURF_GTK3
50	bool "gtk3 frontend"
51	depends on BR2_PACKAGE_LIBGTK3
52	help
53	  Select GTK+ 3 frontend.
54
55endchoice
56
57endif
58