svn commit: r526006 - in head: graphics graphics/egl-wayland graphics/egl-wayland/files graphics/eglexternalplatform x11-servers/xwayland-devel

Jan Beich jbeich at FreeBSD.org
Thu Feb 13 04:12:35 UTC 2020


Author: jbeich
Date: Thu Feb 13 04:12:32 2020
New Revision: 526006
URL: https://svnweb.freebsd.org/changeset/ports/526006

Log:
  x11-servers/xwayland-devel: expose x11/nvidia-driver support
  
  Disabled for now as runtime wasn't tested. EGLStreams is supported by
  x11-wm/mutter and x11-wm/plasma5-kwin.

Added:
  head/graphics/egl-wayland/
  head/graphics/egl-wayland/Makefile   (contents, props changed)
  head/graphics/egl-wayland/distinfo   (contents, props changed)
  head/graphics/egl-wayland/files/
  head/graphics/egl-wayland/files/10_nvidia_wayland.json   (contents, props changed)
  head/graphics/egl-wayland/pkg-descr   (contents, props changed)
  head/graphics/egl-wayland/pkg-plist   (contents, props changed)
  head/graphics/eglexternalplatform/
  head/graphics/eglexternalplatform/Makefile   (contents, props changed)
  head/graphics/eglexternalplatform/distinfo   (contents, props changed)
  head/graphics/eglexternalplatform/pkg-descr   (contents, props changed)
Modified:
  head/graphics/Makefile   (contents, props changed)
  head/x11-servers/xwayland-devel/Makefile   (contents, props changed)

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Thu Feb 13 03:32:42 2020	(r526005)
+++ head/graphics/Makefile	Thu Feb 13 04:12:32 2020	(r526006)
@@ -146,6 +146,8 @@
     SUBDIR += dynamechs
     SUBDIR += ebsynth
     SUBDIR += edje_viewer
+    SUBDIR += egl-wayland
+    SUBDIR += eglexternalplatform
     SUBDIR += electricsheep
     SUBDIR += embree
     SUBDIR += enblend

Added: head/graphics/egl-wayland/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/egl-wayland/Makefile	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME=	egl-wayland
+DISTVERSION=	1.1.4
+CATEGORIES=	graphics
+
+MAINTAINER=	jbeich at FreeBSD.org
+COMMENT=	EGLStream-based Wayland external platform
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	eglexternalplatform>=1.1:graphics/eglexternalplatform
+LIB_DEPENDS=	libwayland-server.so:graphics/wayland
+
+USES=		gl meson pkgconfig
+USE_GITHUB=	yes
+USE_GL=		egl
+GH_ACCOUNT=	NVIDIA
+
+post-patch:
+	@${REINPLACE_CMD} -e "/install/s/datadir')/prefix'), 'libdata'/" \
+		${WRKSRC}/meson.build
+
+post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/egl/egl_external_platform.d
+	${INSTALL_DATA} ${FILESDIR}/10_nvidia_wayland.json \
+		${STAGEDIR}${PREFIX}/share/egl/egl_external_platform.d
+
+.include <bsd.port.mk>

Added: head/graphics/egl-wayland/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/egl-wayland/distinfo	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1570655351
+SHA256 (NVIDIA-egl-wayland-1.1.4_GH0.tar.gz) = b3cfb99803a0324478f0824e35521a42ade118e7c11aa9a6829a2dc82ca2453c
+SIZE (NVIDIA-egl-wayland-1.1.4_GH0.tar.gz) = 48479

Added: head/graphics/egl-wayland/files/10_nvidia_wayland.json
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/egl-wayland/files/10_nvidia_wayland.json	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,6 @@
+{
+    "file_format_version" : "1.0.0",
+    "ICD" : {
+        "library_path" : "libnvidia-egl-wayland.so.1"
+    }
+}

Added: head/graphics/egl-wayland/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/egl-wayland/pkg-descr	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,8 @@
+This is a work-in-progress implementation of a EGL External Platform
+library to add client-side Wayland support to EGL on top of EGLDevice
+and EGLStream families of extensions.
+
+This library implements an EGL External Platform interface to work
+along with EGL drivers that support the external platform mechanism.
+
+WWW: https://github.com/NVIDIA/egl-wayland

Added: head/graphics/egl-wayland/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/egl-wayland/pkg-plist	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,8 @@
+lib/libnvidia-egl-wayland.so
+lib/libnvidia-egl-wayland.so.1
+lib/libnvidia-egl-wayland.so.1.1.4
+libdata/pkgconfig/wayland-eglstream-protocols.pc
+libdata/pkgconfig/wayland-eglstream.pc
+share/egl/egl_external_platform.d/10_nvidia_wayland.json
+share/wayland-eglstream/wayland-eglstream-controller.xml
+share/wayland-eglstream/wayland-eglstream.xml

Added: head/graphics/eglexternalplatform/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/eglexternalplatform/Makefile	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+PORTNAME=	eglexternalplatform
+DISTVERSION=	1.1
+CATEGORIES=	graphics
+
+MAINTAINER=	jbeich at FreeBSD.org
+COMMENT=	EGL External Platform interface
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	NVIDIA
+NO_BUILD=	yes
+PLIST_FILES=	include/EGL/${PORTNAME}.h \
+		include/EGL/${PORTNAME}version.h \
+		libdata/pkgconfig/${PORTNAME}.pc
+
+post-patch:
+	@${REINPLACE_CMD} 's,/usr,${PREFIX},' ${WRKSRC}/eglexternalplatform.pc
+
+do-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/include/EGL
+	${INSTALL_DATA} ${WRKSRC}/interface/* ${STAGEDIR}${PREFIX}/include/EGL
+	${INSTALL_DATA} ${WRKSRC}/*.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
+
+.include <bsd.port.mk>

Added: head/graphics/eglexternalplatform/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/eglexternalplatform/distinfo	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1534447175
+SHA256 (NVIDIA-eglexternalplatform-1.1_GH0.tar.gz) = 72725c4c9dd06b4d44bceb8794e1e78f75ed8702be23201282f8f937252a6b32
+SIZE (NVIDIA-eglexternalplatform-1.1_GH0.tar.gz) = 10372

Added: head/graphics/eglexternalplatform/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/eglexternalplatform/pkg-descr	Thu Feb 13 04:12:32 2020	(r526006)
@@ -0,0 +1,10 @@
+This is a work-in-progress specification of the EGL External Platform
+interface for writing EGL platforms and their interactions with modern
+window systems on top of existing low-level EGL platform
+implementations. This keeps window system implementation specifics out
+of EGL drivers by using application-facing EGL functions.
+
+Examples of low-level EGL platforms are EGL_EXT_platform_device or
+EGL_KHR_platform_gbm.
+
+WWW: https://github.com/NVIDIA/eglexternalplatform

Modified: head/x11-servers/xwayland-devel/Makefile
==============================================================================
--- head/x11-servers/xwayland-devel/Makefile	Thu Feb 13 03:32:42 2020	(r526005)
+++ head/x11-servers/xwayland-devel/Makefile	Thu Feb 13 04:12:32 2020	(r526006)
@@ -46,6 +46,12 @@ MESON_ARGS=	-Dxwayland=true \
 		-Ddefault_font_path=${NONEXISTENT}
 PLIST_FILES=	bin/Xwayland
 
+OPTIONS_DEFINE=	NVIDIA
+
+NVIDIA_DESC=		EGLStream support for glamor on Xwayland
+NVIDIA_BUILD_DEPENDS=	egl-wayland>0:graphics/egl-wayland
+NVIDIA_MESON_TRUE=	xwayland_eglstream
+
 do-install:
 # Wayland compositors only use the binary
 	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/hw/xwayland/Xwayland \


More information about the svn-ports-all mailing list