summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch')
-rw-r--r--dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch b/dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch
new file mode 100644
index 000000000000..d5b7f8664a30
--- /dev/null
+++ b/dev-libs/libcec/files/libcec-4.0.7-no-override-udev.patch
@@ -0,0 +1,24 @@
+ src/libcec/cmake/CheckPlatformSupport.cmake | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/libcec/cmake/CheckPlatformSupport.cmake b/src/libcec/cmake/CheckPlatformSupport.cmake
+index 5d423df..9e77924 100644
+--- a/src/libcec/cmake/CheckPlatformSupport.cmake
++++ b/src/libcec/cmake/CheckPlatformSupport.cmake
+@@ -90,6 +90,7 @@ else()
+ check_function_exists(flock HAVE_FLOCK)
+
+ # udev
++ if (${HAVE_LIBUDEV})
+ pkg_check_modules(UDEV udev)
+ if (UDEV_FOUND)
+ set(PLATFORM_LIBREQUIRES "${PLATFORM_LIBREQUIRES} ${UDEV_LIBRARIES}")
+@@ -106,6 +107,7 @@ else()
+ list(APPEND CMAKE_REQUIRED_LIBRARIES "${UDEV_LIBRARIES}")
+ set(HAVE_P8_USB_DETECT ON CACHE BOOL "p8 usb-cec detection supported" FORCE)
+ endif()
++ endif()
+
+ # xrandr
+ check_include_files("X11/Xlib.h;X11/Xatom.h;X11/extensions/Xrandr.h" HAVE_RANDR_HEADERS)
+