audio/headsetcontrol: Update to 2.4

PR:		255919
Changes:	https://github.com/Sapd/HeadsetControl/releases/tag/2.4
This commit is contained in:
Alexander Vereeken 2021-05-16 16:30:44 +01:00 committed by Lewis Cook
parent 065696a8ae
commit 429866ca88
No known key found for this signature in database
GPG key ID: 96755710687AE873
3 changed files with 32 additions and 22 deletions

View file

@ -1,7 +1,7 @@
# Created by: Alexander Vereeken <Alexander88207@protonmail.com>
PORTNAME= headsetcontrol
PORTVERSION= 2.3
PORTVERSION= 2.4
CATEGORIES= audio
MAINTAINER= Alexander88207@protonmail.com
@ -11,7 +11,7 @@ LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/license
BUILD_DEPENDS= hidapi>=0:comms/hidapi
LIB_DEPENDS+= libhidapi.so:comms/hidapi
LIB_DEPENDS= libhidapi.so:comms/hidapi
USES= cmake
@ -19,22 +19,6 @@ USE_GITHUB= yes
GH_ACCOUNT= Sapd
GH_PROJECT= HeadsetControl
post-patch:
@${REINPLACE_CMD} -e 's|/etc/udev/|/usr/local/etc/udev/|g' ${WRKSRC}/CMakeLists.txt
PLIST_FILES= ${LOCALBASE}/bin/headsetcontrol \
${LOCALBASE}/etc/udev/rules.d/50-corsair-void-pro-usb.rules \
${LOCALBASE}/etc/udev/rules.d/50-corsair-void-pro.rules \
${LOCALBASE}/etc/udev/rules.d/50-corsair-void.rules \
${LOCALBASE}/etc/udev/rules.d/50-corsair_void_rgb_usb.rules \
${LOCALBASE}/etc/udev/rules.d/50-logitech-g430.rules \
${LOCALBASE}/etc/udev/rules.d/50-logitech-g533.rules \
${LOCALBASE}/etc/udev/rules.d/50-logitech-g633.rules \
${LOCALBASE}/etc/udev/rules.d/50-logitech-g930.rules \
${LOCALBASE}/etc/udev/rules.d/50-logitech-g933.rules \
${LOCALBASE}/etc/udev/rules.d/50-logitech-g935.rules \
${LOCALBASE}/etc/udev/rules.d/50-steelseries-arctis-7-2019.rules \
${LOCALBASE}/etc/udev/rules.d/50-steelseries-arctis-7.rules \
${LOCALBASE}/etc/udev/rules.d/50-steelseries-arctis-pro-2019.rules
PLIST_FILES= ${LOCALBASE}/bin/headsetcontrol
.include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1580335600
SHA256 (Sapd-HeadsetControl-2.3_GH0.tar.gz) = 4969f13b5c5e2fee3b4b75d09f1a3ef1b707615aababf40d1f7cac60eab1fc21
SIZE (Sapd-HeadsetControl-2.3_GH0.tar.gz) = 28045
TIMESTAMP = 1621151184
SHA256 (Sapd-HeadsetControl-2.4_GH0.tar.gz) = 1978dd8939da3c846457040416eda1896f3f0aea7eb9b4d74efac30ed5c0cacb
SIZE (Sapd-HeadsetControl-2.4_GH0.tar.gz) = 33648

View file

@ -0,0 +1,26 @@
--- CMakeLists.txt.orig 2021-05-13 11:07:31 UTC
+++ CMakeLists.txt
@@ -112,23 +112,6 @@ add_executable(headsetcontrol ${SOURCE_FILES})
target_link_libraries(headsetcontrol m ${HIDAPI_LIBRARIES})
install(TARGETS headsetcontrol DESTINATION bin)
-
-# install udev files on linux
-if(UNIX AND NOT APPLE)
- set (program_cmd headsetcontrol)
- set (program_arg "-u")
- set (program_output "/etc/udev/rules.d/70-headsets.rules")
- install( CODE
- "
- execute_process(COMMAND ${program_cmd} ${program_arg}
- OUTPUT_FILE ${program_output})
-
- message(STATUS \"Installed udev rules to ${program_output}\")
- "
- )
-endif()
-
-
# ------------------------------------------------------------------------------
# Testing
# ------------------------------------------------------------------------------