--- Makefile 2021-08-17 17:28:54.461484000 -0300 +++ Makefile-gles 2021-08-17 18:27:54.189261000 -0300 @@ -53,7 +53,6 @@ CXXFLAGS_powerpc64= -DENABLE_YARR_JIT=0 CMAKE_ARGS= -DPORT=GTK CMAKE_OFF= USE_LD_GOLD ${CMAKE_OFF_${ARCH}:U} \ - ENABLE_GLES2 \ USE_SYSTEMD CMAKE_ON= ENABLE_MINIBROWSER \ USE_SYSTEM_MALLOC @@ -66,9 +65,11 @@ BROWSER_PLUGINS_DIR?= ${LOCALBASE}/lib/browser_plugins/symlinks/webkit-gtk3 -OPTIONS_DEFINE= DEBUG GEOIP GSTREAMER WAYLAND -OPTIONS_DEFAULT= GEOIP GSTREAMER WAYLAND -OPTIONS_SUB= yes +OPTIONS_RADIO= GL +OPTIONS_RADIO_GL= OPENGL GLESV2 +OPTIONS_DEFINE= DEBUG GEOIP GSTREAMER WAYLAND +OPTIONS_DEFAULT= GEOIP GSTREAMER OPENGL WAYLAND +OPTIONS_SUB= yes # Building WebKit with debugging symbols requires ar and ld with # support for thin archives. Also see @@ -91,6 +92,16 @@ GSTREAMER_USE= GSTREAMER1=bad,gl GSTREAMER_CMAKE_BOOL= ENABLE_VIDEO ENABLE_WEB_AUDIO +OPENGL_USES= gl +OPENGL_USE= gl=egl +OPENGL_CONFIGURE_ENABLE= gl egl + +GLESV2_USES= gl +GLESV2_USE= gl=glesv2 +GLESV2_DESC= Enable GLESv2 rendering +GLESV2_CMAKE_BOOL= ENABLE_GLES2 +GLESV2_CONFIGURE_ENABLE= glesv + WAYLAND_CMAKE_BOOL= ENABLE_WAYLAND_TARGET WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland \ libwpe-1.0.so:www/libwpe \ @@ -99,13 +110,6 @@ post-patch: @${REINPLACE_CMD} -e 's|/usr/lib/browser/plugins|${BROWSER_PLUGINS_DIR}|' \ ${WRKSRC}/Source/WebKit/Shared/Plugins/unix/PluginSearchPath.cpp - -pre-configure: -# .if !exists() evaluates too early before cairo has a chance to be installed - @if ! pkg-config --exists cairo-egl; then \ - ${ECHO_MSG} "${PKGNAME}: Needs cairo with OPENGL support enabled."; \ - ${FALSE}; \ - fi post-install: @${RLN} ${STAGEDIR}${PREFIX}/libexec/webkit2gtk-4.0/jsc \