tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: webkit-gtk and gtk4



>> webkit-gtk failed with
...
>> fatal error: EGL/egl.h: No such file or directory
>>   76 | #include <EGL/egl.h>
>>      |          ^~~~~~~~~~~
>> compilation terminated.
>
> Same on UltraSPARC and Alpha:

I made it build on macppc with /etc/mk.conf:

PKG_OPTIONS.webkit-gtk+= -opengl

and quite a bit of patience.

I was considering as a stopgap doing

diff -u -p -r1.23 options.mk
--- options.mk  7 Jun 2022 20:28:43 -0000       1.23
+++ options.mk  23 Jan 2023 19:37:00 -0000
@@ -3,7 +3,14 @@
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.webkit-gtk
 PKG_SUPPORTED_OPTIONS= debug enchant opengl webkit-jit wayland
-PKG_SUGGESTED_OPTIONS= enchant opengl
+PKG_SUGGESTED_OPTIONS= enchant
+
+# "powerpc" appears to not do OpenGL -- no <EGL/egl.h>
+# This may affect others as well.
+.if ${MACHINE_ARCH} != "powerpc"
+PKG_SUGGESTED_OPTIONS+=        opengl
+.endif
+
 .include "../../devel/wayland/platform.mk"
 .if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
 PKG_SUGGESTED_OPTIONS+=        wayland

but Martin mentioned that the proper conditional is probably in
our <bsd.own.mk>, namely HAVE_XORG_GLAMOR.

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index