git: 3356ffb72433 - main - x11-toolkits/scenefx: add new port

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 29 Apr 2024 07:07:32 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3356ffb72433f3b99cf3f52b9b2a3ee39fe1ba39

commit 3356ffb72433f3b99cf3f52b9b2a3ee39fe1ba39
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2024-04-19 21:18:47 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-04-29 07:06:24 +0000

    x11-toolkits/scenefx: add new port
    
    A drop-in replacement for the wlroots scene API that allows Wayland
    compositors to render surfaces with eye-candy effects.
    
    https://github.com/wlrfx/scenefx
---
 x11-toolkits/Makefile          |  1 +
 x11-toolkits/scenefx/Makefile  | 32 ++++++++++++++++++++++++++++++++
 x11-toolkits/scenefx/distinfo  |  3 +++
 x11-toolkits/scenefx/pkg-descr |  2 ++
 x11-toolkits/scenefx/pkg-plist |  9 +++++++++
 5 files changed, 47 insertions(+)

diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index c39f6d872864..70d84b0528d3 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -218,6 +218,7 @@
     SUBDIR += rubygem-uh
     SUBDIR += rubygem-vte3
     SUBDIR += rubygem-vte4
+    SUBDIR += scenefx
     SUBDIR += scintilla
     SUBDIR += sdl_pango
     SUBDIR += shared-desktop-ontologies
diff --git a/x11-toolkits/scenefx/Makefile b/x11-toolkits/scenefx/Makefile
new file mode 100644
index 000000000000..8486bf5816fa
--- /dev/null
+++ b/x11-toolkits/scenefx/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	scenefx
+DISTVERSION=	0.1
+CATEGORIES=	x11-toolkits
+
+MAINTAINER=	jbeich@FreeBSD.org
+COMMENT=	wlroots scene API, but with eye candy!
+WWW=		https://github.com/wlrfx/scenefx
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	wayland-protocols>=1.27:graphics/wayland-protocols
+LIB_DEPENDS=	libdrm.so:graphics/libdrm \
+		libwayland-server.so:graphics/wayland \
+		libwlroots.so:x11-toolkits/wlroots
+
+USES=		compiler:c11 meson pkgconfig xorg
+USE_GITHUB=	yes
+USE_LDCONFIG=	yes
+USE_XORG=	pixman
+GH_ACCOUNT=	wlrfx
+MESON_ARGS=	-Dexamples=false -Drenderers=${RENDERERS:ts,}
+
+OPTIONS_DEFINE=	OPENGL
+OPTIONS_DEFAULT=OPENGL
+OPTIONS_SLAVE=	OPENGL # XXX Remove after adding VULKAN
+
+OPENGL_USES=		gl
+OPENGL_USE=		GL=egl,gbm,glesv2
+OPENGL_VARS=		RENDERERS+=gles2
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/scenefx/distinfo b/x11-toolkits/scenefx/distinfo
new file mode 100644
index 000000000000..532a29bcdb99
--- /dev/null
+++ b/x11-toolkits/scenefx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1713561527
+SHA256 (wlrfx-scenefx-0.1_GH0.tar.gz) = f5c889f4c826a4216628bf1e7e48071fc33e7774b5e3d51e6fee6e571e420827
+SIZE (wlrfx-scenefx-0.1_GH0.tar.gz) = 107137
diff --git a/x11-toolkits/scenefx/pkg-descr b/x11-toolkits/scenefx/pkg-descr
new file mode 100644
index 000000000000..8c32554aa904
--- /dev/null
+++ b/x11-toolkits/scenefx/pkg-descr
@@ -0,0 +1,2 @@
+A drop-in replacement for the wlroots scene API that allows Wayland
+compositors to render surfaces with eye-candy effects.
diff --git a/x11-toolkits/scenefx/pkg-plist b/x11-toolkits/scenefx/pkg-plist
new file mode 100644
index 000000000000..c556a77fe8a3
--- /dev/null
+++ b/x11-toolkits/scenefx/pkg-plist
@@ -0,0 +1,9 @@
+include/scenefx/render/fx_renderer/fx_effect_framebuffers.h
+include/scenefx/render/fx_renderer/fx_renderer.h
+include/scenefx/render/pass.h
+include/scenefx/types/fx/blur_data.h
+include/scenefx/types/fx/shadow_data.h
+include/scenefx/types/wlr_scene.h
+lib/libscenefx.so
+lib/libscenefx.so.1
+libdata/pkgconfig/scenefx.pc