1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

graphics/libglvnd: add new port

Submitted by:	Greg V <greg@unrelenting.technology>

libglvnd is a vendor-neutral dispatch layer for arbitrating OpenGL API calls
between multiple vendors. It allows multiple drivers from different vendors to
coexist on the same filesystem, and determines which vendor to dispatch each
API call to at runtime.

Both GLX and EGL are supported, in any combination with OpenGL and OpenGL ES.

https://gitlab.freedesktop.org/glvnd/libglvnd
This commit is contained in:
Jan Beich 2020-05-27 07:41:40 +00:00
parent e35312bc7a
commit 854f7c090d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536673
6 changed files with 103 additions and 0 deletions

View File

@ -441,6 +441,7 @@
SUBDIR += libgfx
SUBDIR += libgltext
SUBDIR += libgltf
SUBDIR += libglvnd
SUBDIR += libgnomecanvas
SUBDIR += libgnomecanvas-reference
SUBDIR += libgnomecanvasmm26

View File

@ -0,0 +1,37 @@
# $FreeBSD$
PORTNAME= libglvnd
DISTVERSION= 1.3.1
CATEGORIES= graphics
MAINTAINER= greg@unrelenting.technology
COMMENT= GL Vendor-Neutral Dispatch library
LICENSE= APACHE20 MIT
LICENSE_COMB= multi
CONFLICTS_INSTALL= mesa-libs # include/GL/gl.h
USES= compiler:c++11-lib localbase meson pkgconfig
USE_LDCONFIG= yes
USE_GITLAB= yes
GL_SITE= https://gitlab.freedesktop.org
GL_ACCOUNT= glvnd
GL_COMMIT= 1c32de07074fee8edcb274899948b6551081ed54
OPTIONS_DEFINE= X11
OPTIONS_DEFAULT=X11
OPTIONS_SUB= yes
X11_USES= xorg
X11_USE= XORG=x11,xext,xorgproto
X11_MESON_ENABLED= x11 glx
# Lots of software expects gl.pc even when it can build with EGL only
post-install-X11-off:
${LN} -s opengl.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/gl.pc
${REINPLACE_CMD} -e '/Cflags:/s/$$/ -DEGL_NO_X11/' \
${STAGEDIR}${PREFIX}/libdata/pkgconfig/egl.pc
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1582320527
SHA256 (glvnd-libglvnd-1c32de07074fee8edcb274899948b6551081ed54_GL0.tar.gz) = 2a33254c697d1a74f9637ab0427281604b93a4fc1f9e6ff60ba8e1fd5ea5ff52
SIZE (glvnd-libglvnd-1c32de07074fee8edcb274899948b6551081ed54_GL0.tar.gz) = 1031605

View File

@ -0,0 +1,8 @@
libglvnd is a vendor-neutral dispatch layer for arbitrating OpenGL API calls
between multiple vendors. It allows multiple drivers from different vendors to
coexist on the same filesystem, and determines which vendor to dispatch each
API call to at runtime.
Both GLX and EGL are supported, in any combination with OpenGL and OpenGL ES.
WWW: https://gitlab.freedesktop.org/glvnd/libglvnd

View File

@ -0,0 +1,52 @@
include/EGL/egl.h
include/EGL/eglext.h
include/EGL/eglplatform.h
include/GL/gl.h
include/GL/glcorearb.h
include/GL/glext.h
%%X11%%include/GL/glx.h
%%X11%%include/GL/glxext.h
include/GLES/egl.h
include/GLES/gl.h
include/GLES/glext.h
include/GLES/glplatform.h
include/GLES2/gl2.h
include/GLES2/gl2ext.h
include/GLES2/gl2platform.h
include/GLES3/gl3.h
include/GLES3/gl31.h
include/GLES3/gl32.h
include/GLES3/gl3ext.h
include/GLES3/gl3platform.h
include/KHR/khrplatform.h
include/glvnd/GLdispatchABI.h
include/glvnd/libeglabi.h
include/glvnd/libglxabi.h
lib/libEGL.so
lib/libEGL.so.1
lib/libEGL.so.1.1.0
%%X11%%lib/libGL.so
%%X11%%lib/libGL.so.1
%%X11%%lib/libGL.so.1.7.0
lib/libGLESv1_CM.so
lib/libGLESv1_CM.so.1
lib/libGLESv1_CM.so.1.2.0
lib/libGLESv2.so
lib/libGLESv2.so.2
lib/libGLESv2.so.2.1.0
%%X11%%lib/libGLX.so
%%X11%%lib/libGLX.so.0
%%X11%%lib/libGLX.so.0.0.0
lib/libGLdispatch.so
lib/libGLdispatch.so.0
lib/libGLdispatch.so.0.0.0
lib/libOpenGL.so
lib/libOpenGL.so.0
lib/libOpenGL.so.0.0.0
libdata/pkgconfig/egl.pc
libdata/pkgconfig/gl.pc
libdata/pkgconfig/glesv1_cm.pc
libdata/pkgconfig/glesv2.pc
%%X11%%libdata/pkgconfig/glx.pc
libdata/pkgconfig/libglvnd.pc
libdata/pkgconfig/opengl.pc

View File

@ -7,6 +7,8 @@ CATEGORIES= graphics
COMMENT= OpenGL libraries that support GLX and EGL clients
CONFLICTS_INSTALL= libglvnd # include/GL/gl.h
USES= xorg
USE_XORG= xorgproto x11 xcb xdamage xext \
xfixes xshmfence xxf86vm