From nobody Wed Mar 11 00:19:18 2026 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fVrw65XhJz6VNtr for ; Wed, 11 Mar 2026 00:19:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fVrw64k2pz3srd for ; Wed, 11 Mar 2026 00:19:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773188358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WtI/X8x2ssAVZJcJWh45/294Saq7nzDOtxpw16MZXVk=; b=KzQ0UCF7olGxNYRYT1TkDTXSzVcVu23vbtIcVEkNUu3KlMBzziRiOzPWQLFvrgBn/enk2y 5ohaSvBSfpg6ib5RlijdFjwQ0Qst4UkJu5FFPjg5tB0Zo2PNzZoxpaIbhqfMvJ0UC0Q0lT A0+Bo1Nx2FYQLjv2BcGyPHGfpkuCEflUFv2XPwgJxcIQnQ5jcWN/adgCcFuM6pxANFHM9O daP49foe1Y7uTBlXIfgPG34yvBzq2WDiIWirLxrkOc4HuEKouaOz2iBCzZu+5k1AQGKGhA LnXFNbOom2grbQDyNyrQGlK0nQ5dHZOppBKyjZB9IsdyXbGBJA+K8vbhB2OAvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773188358; a=rsa-sha256; cv=none; b=xgbxs6zRYZRNYojnUCK13AbBBHD1IvHHopSp6O7FbQCNQO2Kdir0WLJSKLo/sof9kBERww uBaeVn2TQ/yfi8LHy0rd0PTAD30iSSoYbv40bda5Fq7DN8T/6YinQNVgKP4JazmVvruiBn K5BHIeBt+nwYdgI96mPdPmykrD6yhYGOA2/djmNSvEOHWjzcHVFjyx2MlsKTf2X2w2LdHb LbyRDhY4JgVyRO2e01dtuUzsGIGjbyoh6k2OdKsUkWq3Ijo224/hajw4+dL8REyEt4ogah q+M8+BZusWWyU+4KL53enCWNoso2VAMlzkt63g+uyxtKfYmg0xfw6wgNbSsY3Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773188358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WtI/X8x2ssAVZJcJWh45/294Saq7nzDOtxpw16MZXVk=; b=W6LZWUZJYYdzhvmogaYSAlskEcjf6IQbK1Xr4SC8P0xiH2bcw4t+m5Zzk/L21yLKR7qJeM D4/dnIRBDvUsC4rxPgv9M92ZTfeNHYrS4nZC3SkjXFz+wHc54a8sGKhldSjqW8lxQAogAb 0Z4wuMfRjZIvuYf+Jyu1zzRO297wH1Kanq7iypSC3eI7fWfvZnx6h7L6umMLsucBLl0PL2 jPZuyiBXJt4OaHLp2bJMrPBVch48nOKiTjlniYEXsVuIH+Yb3eYjcWjbBal9WYCKALQ6v0 E0+O2C5AVIEAE8NFcGGWGPeTEaSUj9kjYNVLCARvUtiQE1nhjaPbMcciUwNz3w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fVrw63y96zbkM for ; Wed, 11 Mar 2026 00:19:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c116 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 11 Mar 2026 00:19:18 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Cc: Tomoaki AOKI From: Kevin Bowling Subject: git: b23b14c3bfc0 - main - graphics/egl-wayland2: New port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b23b14c3bfc0d930f7757226b06a88008e95909c Auto-Submitted: auto-generated Date: Wed, 11 Mar 2026 00:19:18 +0000 Message-Id: <69b0b506.1c116.645c413f@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/ports/commit/?id=b23b14c3bfc0d930f7757226b06a88008e95909c commit b23b14c3bfc0d930f7757226b06a88008e95909c Author: Tomoaki AOKI AuthorDate: 2026-03-11 00:16:49 +0000 Commit: Kevin Bowling 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 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.json