ports/audio/headsetcontrol/files/patch-CMakeLists.txt
Hans Petter Selasky e201631cf3 audio/headsetcontrol: Update to 2.6
PR:		259815
Approved by:	pi (implicit) and maintainer
2021-11-13 13:37:11 +01:00

24 lines
830 B
Text

--- CMakeLists.txt.orig 2021-11-13 11:33:58 UTC
+++ CMakeLists.txt
@@ -118,21 +118,6 @@ target_link_libraries(headsetcontrol m ${HIDAPI_LIBRAR
install(TARGETS headsetcontrol DESTINATION bin)
-# install udev files on linux
-if(UNIX AND NOT APPLE)
- set(rules_file 70-headsets.rules)
- set(udev_rules_dir lib/udev/rules.d/
- CACHE PATH "Path to the directory where udev rules should be installed")
- add_custom_command(
- OUTPUT ${rules_file}
- COMMAND headsetcontrol -u > ${rules_file}
- DEPENDS headsetcontrol)
- add_custom_target(udevrules ALL DEPENDS ${rules_file})
- install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/${rules_file}
- DESTINATION ${udev_rules_dir})
-endif()
-
# ------------------------------------------------------------------------------
# Testing