if BR2_PACKAGE_WPEWEBKIT
+config BR2_PACKAGE_WPEWEBKIT_SANDBOX
+ bool "sandboxing support"
+ depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS # libseccomp
+ depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 # libseccomp
+ select BR2_PACKAGE_BUBBLEWRAP # runtime
+ select BR2_PACKAGE_XDG_DBUS_PROXY # runtime
+ select BR2_PACKAGE_LIBSECCOMP
+ help
+ Enable sandboxing of the processes used for network operation,
+ disk asccess, and Web content rendering.
+
+comment "sandboxing supports needs a toolchain w/ headers >= 3.12"
+ depends on BR2_PACKAGE_LIBSECCOMP_ARCH_SUPPORTS
+ depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
+
config BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA
bool "multimedia support"
select BR2_PACKAGE_GSTREAMER1
-DPORT=WPE \
-DENABLE_ACCESSIBILITY=OFF \
-DENABLE_API_TESTS=OFF \
- -DENABLE_BUBBLEWRAP_SANDBOX=OFF \
- -DENABLE_MINIBROWSER=OFF
+ -DENABLE_MINIBROWSER=OFF \
+ -DSILENCE_CROSS_COMPILATION_NOTICES=ON
+
+ifeq ($(BR2_PACKAGE_WPEWEBKIT_SANDBOX),y)
+WPEWEBKIT_CONF_OPTS += \
+ -DENABLE_BUBBLEWRAP_SANDBOX=ON \
+ -DBWRAP_EXECUTABLE=/usr/bin/bwrap \
+ -DDBUS_PROXY_EXECUTABLE=/usr/bin/xdg-dbus-proxy
+WPEWEBKIT_DEPENDENCIES += libseccomp
+else
+WPEWEBKIT_CONF_OPTS += -DENABLE_BUBBLEWRAP_SANDBOX=OFF
+endif
ifeq ($(BR2_PACKAGE_WPEWEBKIT_MULTIMEDIA),y)
WPEWEBKIT_CONF_OPTS += \