git: e26d0a171d48 - main - devel/dbus: Fix CMake config file

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Thu, 13 Mar 2025 15:06:48 UTC
The branch main has been updated by arrowd:

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

commit e26d0a171d4822ba33a92c90c0ef36f7c19b3264
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-03-13 15:05:20 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-03-13 15:06:44 +0000

    devel/dbus: Fix CMake config file
    
    PR:             285364
    Reported by:    Chad Jacob Milios <milios@ccsys.com>
---
 devel/dbus/Makefile                                   |  1 +
 devel/dbus/files/patch-cmake_DBus1Config.pkgconfig.in | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/devel/dbus/Makefile b/devel/dbus/Makefile
index 85560d8f6ccd..eaae62484f93 100644
--- a/devel/dbus/Makefile
+++ b/devel/dbus/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	dbus
 DISTVERSION=	1.16.2
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	devel gnome
 MASTER_SITES=	https://dbus.freedesktop.org/releases/dbus/
diff --git a/devel/dbus/files/patch-cmake_DBus1Config.pkgconfig.in b/devel/dbus/files/patch-cmake_DBus1Config.pkgconfig.in
new file mode 100644
index 000000000000..6d0815cc2984
--- /dev/null
+++ b/devel/dbus/files/patch-cmake_DBus1Config.pkgconfig.in
@@ -0,0 +1,11 @@
+--- cmake/DBus1Config.pkgconfig.in.orig	2025-02-27 16:29:06 UTC
++++ cmake/DBus1Config.pkgconfig.in
+@@ -8,7 +8,7 @@
+ # [1] This variable is not required if DBus1_LIBRARIES is added
+ #     to a target with target_link_libraries
+ 
+-get_filename_component(DBus1_PKGCONFIG_DIR "${CMAKE_CURRENT_LIST_DIR}/../../pkgconfig" ABSOLUTE)
++get_filename_component(DBus1_PKGCONFIG_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../libdata/pkgconfig" ABSOLUTE)
+ get_filename_component(DBus1_NEARBY_ARCH_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../dbus-1.0/include" ABSOLUTE)
+ find_package(PkgConfig)
+ if(DEFINED ENV{PKG_CONFIG_DIR})