pkgsrc/audio/cantata/patches/patch-3rdparty_solid-lite_CMakeLists.txt
2019-06-09 15:52:50 +00:00

16 lines
761 B
Text

$NetBSD: patch-3rdparty_solid-lite_CMakeLists.txt,v 1.2 2019/06/09 15:52:50 wiz Exp $
Limit udev to Linux.
https://github.com/CDrummond/cantata/issues/1503
--- 3rdparty/solid-lite/CMakeLists.txt.orig 2018-03-07 19:04:41.000000000 +0000
+++ 3rdparty/solid-lite/CMakeLists.txt 2019-06-09 12:52:54.960229954 +0000
@@ -45,7 +45,7 @@
backends/shared/rootdevice.cpp
)
- if (NOT WIN32 AND NOT APPLE AND WITH_SOLID_UDISKS2)
+ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND WITH_SOLID_UDISKS2)
find_package( UDev REQUIRED)
macro_log_feature( UDEV_FOUND "UDev" "UDev support for Solid" "http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html" FALSE "" "Allows Solid to use UDev to provide information about devices on Linux" )
endif()