mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 11:26:29 -04:00
audio/headsetcontrol: Update to 2.4
PR: 255919 Changes: https://github.com/Sapd/HeadsetControl/releases/tag/2.4
This commit is contained in:
parent
065696a8ae
commit
429866ca88
3 changed files with 32 additions and 22 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
26
audio/headsetcontrol/files/patch-CMakeLists.txt
Normal file
26
audio/headsetcontrol/files/patch-CMakeLists.txt
Normal 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
|
||||
# ------------------------------------------------------------------------------
|
Loading…
Add table
Reference in a new issue