freebsd-ports/x11-wm/plasma5-kwin/files/patch-cmake_modules_Findhwdata.cmake
Tobias C. Berner 79378074b0 x11-wm/plasma5-kwin: add dependency on misc/hwdata
* Runtime-only dependency needed for mapping monitor hardware vendor IDs
to full names

For this, fix the patch to Findhwdata.cmake to actually find it.
2023-02-21 20:55:04 +01:00

13 lines
691 B
CMake

--- cmake/modules/Findhwdata.cmake.orig 2023-02-21 19:51:03 UTC
+++ cmake/modules/Findhwdata.cmake
@@ -10,8 +10,8 @@ if (UNIX AND NOT APPLE)
# SPDX-License-Identifier: BSD-3-Clause
if (UNIX AND NOT APPLE)
- find_path(hwdata_DIR NAMES hwdata/pnp.ids HINTS /usr/share ENV XDG_DATA_DIRS)
- find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS /usr/share)
+ find_path(hwdata_DIR NAMES hwdata/pnp.ids HINTS ${CMAKE_INSTALL_PREFIX}/share/hwdata /usr/share ENV XDG_DATA_DIRS)
+ find_file(hwdata_PNPIDS_FILE NAMES hwdata/pnp.ids HINTS ${CMAKE_INSTALL_PREFIX}/share/hwdata /usr/share)
if (NOT hwdata_DIR OR NOT hwdata_PNPIDS_FILE)
set(hwdata_FOUND FALSE)
else()