Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 May 2021 15:33:00 GMT
From:      Lewis Cook <lcook@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 429866ca88ec - main - audio/headsetcontrol: Update to 2.4
Message-ID:  <202105161533.14GFX0sI081428@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by lcook:

URL: https://cgit.FreeBSD.org/ports/commit/?id=429866ca88eca5c1f14cf5e09d66355e0ffb8b6b

commit 429866ca88eca5c1f14cf5e09d66355e0ffb8b6b
Author:     Alexander Vereeken <Alexander88207@protonmail.com>
AuthorDate: 2021-05-16 15:30:44 +0000
Commit:     Lewis Cook <lcook@FreeBSD.org>
CommitDate: 2021-05-16 15:32:32 +0000

    audio/headsetcontrol: Update to 2.4
    
    PR:             255919
    Changes:        https://github.com/Sapd/HeadsetControl/releases/tag/2.4
---
 audio/headsetcontrol/Makefile                   | 22 +++------------------
 audio/headsetcontrol/distinfo                   |  6 +++---
 audio/headsetcontrol/files/patch-CMakeLists.txt | 26 +++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 22 deletions(-)

diff --git a/audio/headsetcontrol/Makefile b/audio/headsetcontrol/Makefile
index ec851b6c635d..beba1e26de23 100644
--- a/audio/headsetcontrol/Makefile
+++ b/audio/headsetcontrol/Makefile
@@ -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>
diff --git a/audio/headsetcontrol/distinfo b/audio/headsetcontrol/distinfo
index 98500aeaabd7..56fe1e059248 100644
--- a/audio/headsetcontrol/distinfo
+++ b/audio/headsetcontrol/distinfo
@@ -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
diff --git a/audio/headsetcontrol/files/patch-CMakeLists.txt b/audio/headsetcontrol/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..16b6491898a3
--- /dev/null
+++ b/audio/headsetcontrol/files/patch-CMakeLists.txt
@@ -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
+ # ------------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105161533.14GFX0sI081428>