git: 8c324eecd6aa - main - clutter: add support for wayland backend

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 06 Mar 2025 10:39:23 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8c324eecd6aa95c9b35490079747853fe476189f

commit 8c324eecd6aa95c9b35490079747853fe476189f
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2025-03-04 14:06:41 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2025-03-06 10:37:38 +0000

    clutter: add support for wayland backend
    
    Enable wayland, gdk and evdev while here backends for clutter and cogl
    to allow all clutter-gtk consumers to works properly on wayland.
    
    Now that clutter supports wayland, clutter-gtk3 needs to be rebuild
    to enable the backend so bump portrevision
    
    After rebuild, all the applications using clutter now works fine on
    wayland
---
 graphics/clutter-gtk3/Makefile |  2 +-
 graphics/clutter/Makefile      |  7 ++++---
 graphics/clutter/pkg-plist     |  7 +++++++
 graphics/cogl/Makefile         |  6 ++++--
 graphics/cogl/pkg-plist        | 20 ++++++++++++--------
 5 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/graphics/clutter-gtk3/Makefile b/graphics/clutter-gtk3/Makefile
index 11a136f80d9f..c1b68cf454e2 100644
--- a/graphics/clutter-gtk3/Makefile
+++ b/graphics/clutter-gtk3/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	clutter-gtk
 PORTVERSION=	1.8.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	graphics
 MASTER_SITES=	GNOME
 PKGNAMESUFFIX=	3
diff --git a/graphics/clutter/Makefile b/graphics/clutter/Makefile
index 179a10b9f6e3..bfaba2167846 100644
--- a/graphics/clutter/Makefile
+++ b/graphics/clutter/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	clutter
 DISTVERSION=	1.26.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	GNOME
 
@@ -27,10 +27,11 @@ USE_XORG=	x11 xcomposite xdamage xext xfixes xi xrandr
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--with-x --enable-conformance=no \
-		--disable-evdev-input \
+		--enable-evdev-input \
 		--enable-egl-backend=yes \
 		--enable-x11-backend=yes \
-		--enable-gdk-backend=no \
+		--enable-gdk-backend=yes \
+		--enable-wayland-backend=yes \
 		--enable-wayland-compositor=no
 INSTALL_TARGET=	install-strip
 CPE_VENDOR=	clutter_project
diff --git a/graphics/clutter/pkg-plist b/graphics/clutter/pkg-plist
index 62bb1705a653..d180af659922 100644
--- a/graphics/clutter/pkg-plist
+++ b/graphics/clutter/pkg-plist
@@ -133,12 +133,16 @@ include/clutter-1.0/clutter/deprecated/clutter-timeout-pool.h
 include/clutter-1.0/clutter/deprecated/clutter-util.h
 include/clutter-1.0/clutter/egl/clutter-egl-headers.h
 include/clutter-1.0/clutter/egl/clutter-egl.h
+include/clutter-1.0/clutter/evdev/clutter-evdev.h
+include/clutter-1.0/clutter/gdk/clutter-gdk.h
 include/clutter-1.0/clutter/glx/clutter-glx-texture-pixmap.h
 include/clutter-1.0/clutter/glx/clutter-glx.h
+include/clutter-1.0/clutter/wayland/clutter-wayland.h
 include/clutter-1.0/clutter/x11/clutter-x11-texture-pixmap.h
 include/clutter-1.0/clutter/x11/clutter-x11.h
 lib/girepository-1.0/Cally-1.0.typelib
 lib/girepository-1.0/Clutter-1.0.typelib
+lib/girepository-1.0/ClutterGdk-1.0.typelib
 lib/girepository-1.0/ClutterX11-1.0.typelib
 lib/libclutter-1.0.so
 lib/libclutter-1.0.so.0
@@ -149,11 +153,14 @@ libdata/pkgconfig/cally-1.0.pc
 libdata/pkgconfig/clutter-1.0.pc
 libdata/pkgconfig/clutter-cogl-1.0.pc
 libdata/pkgconfig/clutter-egl-1.0.pc
+libdata/pkgconfig/clutter-gdk-1.0.pc
 libdata/pkgconfig/clutter-glx-1.0.pc
+libdata/pkgconfig/clutter-wayland-1.0.pc
 libdata/pkgconfig/clutter-x11-1.0.pc
 share/clutter-1.0/valgrind/clutter.supp
 share/gir-1.0/Cally-1.0.gir
 share/gir-1.0/Clutter-1.0.gir
+share/gir-1.0/ClutterGdk-1.0.gir
 share/gir-1.0/ClutterX11-1.0.gir
 share/gtk-doc/html/clutter/CallyActor.html
 share/gtk-doc/html/clutter/CallyClone.html
diff --git a/graphics/cogl/Makefile b/graphics/cogl/Makefile
index a3da8880a75b..ab6c24a3d48e 100644
--- a/graphics/cogl/Makefile
+++ b/graphics/cogl/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	cogl
 PORTVERSION=	1.22.8
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	graphics
 MASTER_SITES=	GNOME
 
@@ -21,7 +21,9 @@ USE_GL=		egl gbm
 USE_XORG=	x11 xcomposite xext xdamage xfixes xrandr
 USE_LDCONFIG=	yes
 CONFIGURE_ARGS=	--with-x \
-		 --enable-xlib-egl-platform=yes
+		--enable-kms-egl-platform=yes \
+		--enable-wayland-egl-platform=yes \
+		--enable-xlib-egl-platform=yes
 INSTALL_TARGET=	install-strip
 
 PLIST_SUB=	LIBVER=20 LIBVERSION=20.4.3
diff --git a/graphics/cogl/pkg-plist b/graphics/cogl/pkg-plist
index 04be80cd0f6c..bb20fa9c7e76 100644
--- a/graphics/cogl/pkg-plist
+++ b/graphics/cogl/pkg-plist
@@ -1,3 +1,9 @@
+include/cogl/cogl-pango/cogl-pango.h
+include/cogl/cogl-path/cogl-path-enum-types.h
+include/cogl/cogl-path/cogl-path-types.h
+include/cogl/cogl-path/cogl-path.h
+include/cogl/cogl-path/cogl1-path-functions.h
+include/cogl/cogl-path/cogl2-path-functions.h
 include/cogl/cogl/cogl-atlas-texture.h
 include/cogl/cogl/cogl-attribute-buffer.h
 include/cogl/cogl/cogl-attribute.h
@@ -29,6 +35,8 @@ include/cogl/cogl/cogl-glib-source.h
 include/cogl/cogl/cogl-glx.h
 include/cogl/cogl/cogl-index-buffer.h
 include/cogl/cogl/cogl-indices.h
+include/cogl/cogl/cogl-kms-display.h
+include/cogl/cogl/cogl-kms-renderer.h
 include/cogl/cogl/cogl-macros.h
 include/cogl/cogl/cogl-material-compat.h
 include/cogl/cogl/cogl-matrix-stack.h
@@ -67,6 +75,8 @@ include/cogl/cogl/cogl-types.h
 include/cogl/cogl/cogl-vector.h
 include/cogl/cogl/cogl-version.h
 include/cogl/cogl/cogl-vertex-buffer.h
+include/cogl/cogl/cogl-wayland-client.h
+include/cogl/cogl/cogl-wayland-renderer.h
 include/cogl/cogl/cogl-xlib-renderer.h
 include/cogl/cogl/cogl-xlib.h
 include/cogl/cogl/cogl.h
@@ -88,12 +98,6 @@ include/cogl/cogl/gl-prototypes/cogl-gles2-functions.h
 include/cogl/cogl/gl-prototypes/cogl-glsl-functions.h
 include/cogl/cogl/gl-prototypes/cogl-in-gles-core-functions.h
 include/cogl/cogl/gl-prototypes/cogl-in-gles2-core-functions.h
-include/cogl/cogl-pango/cogl-pango.h
-include/cogl/cogl-path/cogl-path-enum-types.h
-include/cogl/cogl-path/cogl-path-types.h
-include/cogl/cogl-path/cogl-path.h
-include/cogl/cogl-path/cogl1-path-functions.h
-include/cogl/cogl-path/cogl2-path-functions.h
 lib/girepository-1.0/Cogl-1.0.typelib
 lib/girepository-1.0/Cogl-2.0.typelib
 lib/girepository-1.0/CoglPango-1.0.typelib
@@ -108,12 +112,12 @@ lib/libcogl.so
 lib/libcogl.so.%%LIBVER%%
 lib/libcogl.so.%%LIBVERSION%%
 libdata/pkgconfig/cogl-1.0.pc
-libdata/pkgconfig/cogl-path-1.0.pc
 libdata/pkgconfig/cogl-2.0-experimental.pc
-libdata/pkgconfig/cogl-path-2.0-experimental.pc
 libdata/pkgconfig/cogl-gl-1.0.pc
 libdata/pkgconfig/cogl-pango-1.0.pc
 libdata/pkgconfig/cogl-pango-2.0-experimental.pc
+libdata/pkgconfig/cogl-path-1.0.pc
+libdata/pkgconfig/cogl-path-2.0-experimental.pc
 share/cogl/examples-data/crate.jpg
 share/gir-1.0/Cogl-1.0.gir
 share/gir-1.0/Cogl-2.0.gir