audio/headsetcontrol: setup sidetone for various of gaming headsets

PR:		243714
Submitted by:	Alexander Vereeken <Alexander88207@protonmail.com>
This commit is contained in:
Li-Wen Hsu 2020-10-26 13:32:47 +00:00
parent b84457ef19
commit 81ccfc431d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553352
5 changed files with 67 additions and 0 deletions

View File

@ -323,6 +323,7 @@
SUBDIR += gxmms2
SUBDIR += gxplugins-lv2
SUBDIR += harp
SUBDIR += headsetcontrol
SUBDIR += herrie
SUBDIR += hexter
SUBDIR += hts_engine-API

View File

@ -0,0 +1,41 @@
# Created by: Alexander Vereeken <Alexander88207@protonmail.com>
# $FreeBSD$
PORTNAME= headsetcontrol
PORTVERSION= 2.3
CATEGORIES= audio
MAINTAINER= Alexander88207@protonmail.com
COMMENT= Tool to setup sidetone for various gaming headsets
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/license
BUILD_DEPENDS= hidapi>=0:comms/hidapi
LIB_DEPENDS+= libhidapi.so:comms/hidapi
USES= cmake
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
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1580335600
SHA256 (Sapd-HeadsetControl-2.3_GH0.tar.gz) = 4969f13b5c5e2fee3b4b75d09f1a3ef1b707615aababf40d1f7cac60eab1fc21
SIZE (Sapd-HeadsetControl-2.3_GH0.tar.gz) = 28045

View File

@ -0,0 +1,3 @@
HeadsetControl allows you to setup sidetone for various of gaming headsets.
WWW: https://github.com/Sapd/HeadsetControl

View File

@ -0,0 +1,19 @@
[
{
message: <<EOM
Type headsetcontrol -h to get all available options.
headsetcontrol -s 128 sets the sidetone to 128 (REAL loud). You can silence it with 0. I recommend a loudness of 16.
Following options don't work on all devices yet:
headsetcontrol -b check battery level. Returns a value from 0 to 100 or loading.
headsetcontrol -n 0|1 sends a notification sound, made by the headset. 0 or 1 are currently supported as values.
headsetcontrol -l 0|1 switches LED off/on (off almost doubles battery lifetime!).
headsetcontrol -c cut unnecessary output, for reading by other scripts or applications.
EOM
}
]