diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile index 1f35fc80c20e..507259c0f716 100644 --- a/x11-toolkits/Makefile +++ b/x11-toolkits/Makefile @@ -236,6 +236,7 @@ SUBDIR += rubygem-vte3 SUBDIR += rubygem-vte4 SUBDIR += scenefx + SUBDIR += scenefx02 SUBDIR += scintilla SUBDIR += sdl2_pango SUBDIR += sdl_pango diff --git a/x11-toolkits/scenefx/Makefile b/x11-toolkits/scenefx/Makefile index d54aeba596ac..f958b55450bc 100644 --- a/x11-toolkits/scenefx/Makefile +++ b/x11-toolkits/scenefx/Makefile @@ -4,7 +4,7 @@ PORTREVISION= 2 CATEGORIES= x11-toolkits MAINTAINER= jbeich@FreeBSD.org -COMMENT= wlroots scene API, but with eye candy! +COMMENT= wlroots scene API, but with eye candy! (deprecated version) WWW= https://github.com/wlrfx/scenefx LICENSE= MIT @@ -22,6 +22,8 @@ USE_XORG= pixman GH_ACCOUNT= wlrfx MESON_ARGS= -Dexamples=false -Drenderers=${RENDERERS:ts,} +PORTSCOUT= limit:^0\.1\. + OPTIONS_DEFINE= OPENGL OPTIONS_DEFAULT=OPENGL OPTIONS_SLAVE= OPENGL # XXX Remove after adding VULKAN diff --git a/x11-toolkits/scenefx02/Makefile b/x11-toolkits/scenefx02/Makefile new file mode 100644 index 000000000000..d545ebf66616 --- /dev/null +++ b/x11-toolkits/scenefx02/Makefile @@ -0,0 +1,36 @@ +PORTNAME= scenefx +DISTVERSION= 0.2.1 +CATEGORIES= x11-toolkits +PKGNAMESUFFIX= 02 + +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.35:graphics/wayland-protocols +LIB_DEPENDS= libdrm.so:graphics/libdrm \ + libwayland-server.so:graphics/wayland \ + libwlroots-0.18.so:x11-toolkits/wlroots018 \ + +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,} +PLIST_SUB= SUFFIX=-${DISTVERSION:R} + +PORTSCOUT= limit:^0\.2\. + +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 diff --git a/x11-toolkits/scenefx02/distinfo b/x11-toolkits/scenefx02/distinfo new file mode 100644 index 000000000000..d49de1493618 --- /dev/null +++ b/x11-toolkits/scenefx02/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1739733667 +SHA256 (wlrfx-scenefx-0.2.1_GH0.tar.gz) = e50cd8cbeb6564233dced39f21e78d755701fa7fe67f5b354f033f397b69a2b8 +SIZE (wlrfx-scenefx-0.2.1_GH0.tar.gz) = 85884 diff --git a/x11-toolkits/scenefx02/pkg-descr b/x11-toolkits/scenefx02/pkg-descr new file mode 100644 index 000000000000..bde5f7ad3ee0 --- /dev/null +++ b/x11-toolkits/scenefx02/pkg-descr @@ -0,0 +1,9 @@ +wlroots is the de-facto library for building wayland compositors, and +its scene api is a great stride in simplifying wayland compositor +development. The problem with the scene api (for compositors looking +for eye candy), however, is that it forces you to use the wlr +renderer, which is powerful yet simple. SceneFX is a project that +takes the scene api and replaces the wlr renderer with our own fx +renderer, capable of rendering surfaces with eye-candy effects +including blur, shadows, and rounded corners, while maintaining the +benefits of simplicity gained from using the scene api. diff --git a/x11-toolkits/scenefx02/pkg-plist b/x11-toolkits/scenefx02/pkg-plist new file mode 100644 index 000000000000..fcb5fd838ee5 --- /dev/null +++ b/x11-toolkits/scenefx02/pkg-plist @@ -0,0 +1,9 @@ +include/scenefx%%SUFFIX%%/scenefx/render/fx_renderer/fx_effect_framebuffers.h +include/scenefx%%SUFFIX%%/scenefx/render/fx_renderer/fx_renderer.h +include/scenefx%%SUFFIX%%/scenefx/render/pass.h +include/scenefx%%SUFFIX%%/scenefx/types/fx/blur_data.h +include/scenefx%%SUFFIX%%/scenefx/types/fx/clipped_region.h +include/scenefx%%SUFFIX%%/scenefx/types/fx/corner_location.h +include/scenefx%%SUFFIX%%/scenefx/types/wlr_scene.h +lib/libscenefx%%SUFFIX%%.so +libdata/pkgconfig/scenefx%%SUFFIX%%.pc