git: b991d37c58ed - main - graphics/wayland: Remove libm from pkgconfig Libs

From: Emmanuel Vadot <manu_at_FreeBSD.org>
Date: Wed, 06 Aug 2025 08:22:06 UTC
The branch main has been updated by manu:

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

commit b991d37c58ed06123020cbc8bc244840d99a1b59
Author:     Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2025-08-06 08:19:51 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2025-08-06 08:21:55 +0000

    graphics/wayland: Remove libm from pkgconfig Libs
    
    This changes seems to confuse CMake for some unknown reason so for now
    remove libm from the Libs section, it's in the Libs.private so it's picked up
    just fine.
    
    Fixes:  9e3878cf8428 ("graphics/wayland: Update to 1.24.0")
    Sponsored by:   Beckhoff Automation GmbH & Co. KG
---
 graphics/wayland/Makefile                    |  1 +
 graphics/wayland/files/patch-src_meson.build | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+)

diff --git a/graphics/wayland/Makefile b/graphics/wayland/Makefile
index 30d88fc0daa3..894b4a237482 100644
--- a/graphics/wayland/Makefile
+++ b/graphics/wayland/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	wayland
 DISTVERSION=	1.24.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	https://gitlab.freedesktop.org/${PORTNAME}/${PORTNAME}/-/releases/${DISTVERSION}/downloads/
 
diff --git a/graphics/wayland/files/patch-src_meson.build b/graphics/wayland/files/patch-src_meson.build
new file mode 100644
index 000000000000..40955be2d068
--- /dev/null
+++ b/graphics/wayland/files/patch-src_meson.build
@@ -0,0 +1,18 @@
+--- src/meson.build.orig	2025-08-06 08:17:13 UTC
++++ src/meson.build
+@@ -212,7 +212,6 @@ if get_option('libraries')
+ 		description: 'Server side implementation of the Wayland protocol',
+ 		version: meson.project_version(),
+ 		filebase: 'wayland-server',
+-		libraries: mathlib_dep,
+ 		variables: [
+ 			'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
+ 			'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name())
+@@ -252,7 +251,6 @@ if get_option('libraries')
+ 		description: 'Wayland client side library',
+ 		version: meson.project_version(),
+ 		filebase: 'wayland-client',
+-		libraries: mathlib_dep,
+ 		variables: [
+ 			'datarootdir=' + join_paths('${prefix}', get_option('datadir')),
+ 			'pkgdatadir=' + join_paths('${pc_sysrootdir}${datarootdir}', meson.project_name())