193.11. libepoxy-1.5.10
Library for handling OpenGL function pointer management
1.5.10-1 · MIT · 0.9 SBU · 3.2 MiB, 12 files · 42_graphics, 108 of 189 · ports/core/gpu/libepoxy
Homepage: https://github.com/anholt/libepoxy
libepoxy manages OpenGL function pointers for the programs that use it: a program calls glFoo as if it were linked, and libepoxy resolves the right entry point on first use, through EGL or GLX, for whichever context is current. It links no GL library itself and opens them with dlopen at run time: libEGL.so.1, libGL.so.1 or libGLX.so.1, libOpenGL.so.0, libGLESv2.so.2, all from libglvnd. GTK 3 and 4, WebKitGTK, Xwayland’s glamor renderer, QEMU’s display and SPICE client, Blender and Inkscape are among its users.
Depends on: mesa, meson, libX11.
Required by (17): blender, celestia, celluloid, gtk3, gtk4, horizon-eda, inkscape, kpipewire, kwin, libreoffice, mgba, movit, qemu, spice-gtk, webkitgtk, webkitgtk6, xwayland.
Sources: libepoxy-1.5.10.tar.gz (324.3 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install libepoxy'
build.sh:
meson setup build --buildtype=release --prefix=/usr --sysconfdir=/etc --libdir=lib \
-Degl=yes \
-Dglx=yes \
-Dx11=true \
-Ddocs=false \
-Dtests=false
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
-Degl=yes— Builds the EGL path, through which every Wayland client resolves GL.-Dglx=yes— Builds the GLX path, which resolvesglX*throughlibGLX.so.1orlibGL.so.1; GTK’s X11 backend draws through it under Xwayland. On Linuxautoalready builds both paths; the recipe names them.-Dx11=true— Builds the X11 support GLX and EGL-on-X11 need, against libX11. This is upstream’s default, named here.-Ddocs=false— Builds no Doxygen API reference, upstream’s default.-Dtests=false— Builds no test suite. Upstream’s default is on.
Libraries: libepoxy.so.
Directories: /usr/include/epoxy, /usr/share/licenses/libepoxy.