mirror of
https://git.freebsd.org/ports.git
synced 2025-06-18 03:00:42 -04:00
The CMake config was essentially searching for the dbus pkgconfig file in ${LOCALBASE}/lib/pkgconfig instead of ${LOCALBASE}/libdata/pkgconfig. Not finding it, DBus1_FOUND was being set to false. devel/qt6-base, in particular, was not finding dbus before this change. MFH: 2023Q4
13 lines
657 B
Text
13 lines
657 B
Text
Fix location of pkgconfig directory on FreeBSD.
|
|
|
|
--- cmake/DBus1Config.pkgconfig.in.orig 2022-10-02 14:06:53 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})
|