Date: Wed, 11 Mar 2026 00:19:18 +0000 From: Kevin Bowling <kbowling@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> Subject: git: b23b14c3bfc0 - main - graphics/egl-wayland2: New port Message-ID: <69b0b506.1c116.645c413f@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/ports/commit/?id=b23b14c3bfc0d930f7757226b06a88008e95909c commit b23b14c3bfc0d930f7757226b06a88008e95909c Author: Tomoaki AOKI <junchoon@dec.sakura.ne.jp> AuthorDate: 2026-03-11 00:16:49 +0000 Commit: Kevin Bowling <kbowling@FreeBSD.org> CommitDate: 2026-03-11 00:19:11 +0000 graphics/egl-wayland2: New port Introduce graphics/egl-wayland2, Wayland EGL External Platform library Version 2 that works with NVIDIA drivers 560 and later. This is a new implementation of the EGL External Platform Library for Wayland (EGL_KHR_platform_wayland), using the NVIDIA driver's new platform surface interface (Dma-buf-based), which simplifies a lot of the library and improves window resizing. This library can be installed alongside the previous egl-wayland implementation (graphics/egl-wayland). The new library has a higher selection priority by default, so if both are present, then a 560 or later driver will select the new library, and an older driver will fall back to the old library. PR: 293719 Reviewed by: ashafer (versioning) Differential Revision: https://reviews.freebsd.org/D55798 --- graphics/Makefile | 1 + graphics/egl-wayland2/Makefile | 32 ++++++++++++++++++++++++++++++++ graphics/egl-wayland2/distinfo | 3 +++ graphics/egl-wayland2/pkg-descr | 9 +++++++++ graphics/egl-wayland2/pkg-plist | 4 ++++ 5 files changed, 49 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index f40abbd7b02b..aaa5d76e21b4 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -170,6 +170,7 @@ SUBDIR += ebsynth SUBDIR += edje_viewer SUBDIR += egl-wayland + SUBDIR += egl-wayland2 SUBDIR += egl-x11 SUBDIR += eglexternalplatform SUBDIR += elastix diff --git a/graphics/egl-wayland2/Makefile b/graphics/egl-wayland2/Makefile new file mode 100644 index 000000000000..3930d6b48f22 --- /dev/null +++ b/graphics/egl-wayland2/Makefile @@ -0,0 +1,32 @@ +PORTNAME= egl-wayland2 +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.1 +CATEGORIES= graphics + +MAINTAINER= x11@FreeBSD.org +COMMENT= Dma-buf-based Wayland external platform library +WWW= https://github.com/NVIDIA/egl-wayland2 + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/libdrm/drm_fourcc.h:graphics/libdrm \ + eglexternalplatform>=1.2:graphics/eglexternalplatform \ + wayland-protocols>=1.8:graphics/wayland-protocols +LIB_DEPENDS= libdrm.so:graphics/libdrm \ + libwayland-server.so:graphics/wayland + +USES= gl meson pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= NVIDIA +USE_GL= egl gbm +USE_LDCONFIG= yes + +PLIST_SUB= DISTVERSION=${DISTVERSION} + +post-patch: + @${REINPLACE_CMD} -e "/install/s/datadir')/prefix'), 'libdata'/" \ + ${WRKSRC}/meson.build + +.include <bsd.port.mk> diff --git a/graphics/egl-wayland2/distinfo b/graphics/egl-wayland2/distinfo new file mode 100644 index 000000000000..4f4a615cd525 --- /dev/null +++ b/graphics/egl-wayland2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1772821408 +SHA256 (NVIDIA-egl-wayland2-v1.0.1_GH0.tar.gz) = 1d8f154e69b3055cb20f5eddda0fa438aea292e6ef835b129cd2efaae5eb95fc +SIZE (NVIDIA-egl-wayland2-v1.0.1_GH0.tar.gz) = 80780 diff --git a/graphics/egl-wayland2/pkg-descr b/graphics/egl-wayland2/pkg-descr new file mode 100644 index 000000000000..e1c04676b3ab --- /dev/null +++ b/graphics/egl-wayland2/pkg-descr @@ -0,0 +1,9 @@ +This is a new implementation of a EGL External Platform Library for Wayland +(EGL_KHR_platform_wayland), using the NVIDIA driver's new platform surface +interface, which simplifies a lot of the library and improves window resizing. + +This library implements an EGL External Platform interface to work +along with EGL drivers that support the external platform mechanism. + +Minimum required version of nvidia-driver for this is 560. +Any of legacy versions are not supported. diff --git a/graphics/egl-wayland2/pkg-plist b/graphics/egl-wayland2/pkg-plist new file mode 100644 index 000000000000..442641b3a1aa --- /dev/null +++ b/graphics/egl-wayland2/pkg-plist @@ -0,0 +1,4 @@ +lib/libnvidia-egl-wayland2.so +lib/libnvidia-egl-wayland2.so.1 +lib/libnvidia-egl-wayland2.so.%%DISTVERSION%% +share/egl/egl_external_platform.d/09_nvidia_wayland2.jsonhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69b0b506.1c116.645c413f>
