View | Details | Raw Unified | Return to bug 255919
Collapse All | Expand All

(-)b/audio/headsetcontrol/files/patch-CMakeLists.txt (+26 lines)
Added Link Here
1
--- CMakeLists.txt.orig	2021-05-13 11:07:31 UTC
2
+++ CMakeLists.txt
3
@@ -112,23 +112,6 @@ add_executable(headsetcontrol ${SOURCE_FILES})
4
 target_link_libraries(headsetcontrol m ${HIDAPI_LIBRARIES})
5
 
6
 install(TARGETS headsetcontrol DESTINATION bin)
7
-
8
-# install udev files on linux
9
-if(UNIX AND NOT APPLE)
10
-    set (program_cmd headsetcontrol)
11
-    set (program_arg "-u")
12
-    set (program_output "/etc/udev/rules.d/70-headsets.rules")
13
-    install( CODE
14
-	            "
15
-    execute_process(COMMAND ${program_cmd} ${program_arg}
16
-      OUTPUT_FILE ${program_output})
17
-
18
-    message(STATUS \"Installed udev rules to ${program_output}\")
19
-	    "
20
-    )
21
-endif()
22
-
23
-
24
 # ------------------------------------------------------------------------------
25
 # Testing
26
 # ------------------------------------------------------------------------------
(-)b/audio/headsetcontrol/Makefile (-19 / +3 lines)
Lines 1-7 Link Here
1
# Created by: Alexander Vereeken <Alexander88207@protonmail.com>
1
# Created by: Alexander Vereeken <Alexander88207@protonmail.com>
2
2
3
PORTNAME=	headsetcontrol
3
PORTNAME=	headsetcontrol
4
PORTVERSION=	2.3
4
PORTVERSION=	2.4
5
CATEGORIES=	audio
5
CATEGORIES=	audio
6
6
7
MAINTAINER=	Alexander88207@protonmail.com
7
MAINTAINER=	Alexander88207@protonmail.com
Lines 11-17 LICENSE= GPLv3 Link Here
11
LICENSE_FILE=	${WRKSRC}/license
11
LICENSE_FILE=	${WRKSRC}/license
12
12
13
BUILD_DEPENDS=	hidapi>=0:comms/hidapi
13
BUILD_DEPENDS=	hidapi>=0:comms/hidapi
14
LIB_DEPENDS+=	libhidapi.so:comms/hidapi
14
LIB_DEPENDS=	libhidapi.so:comms/hidapi
15
15
16
USES=		cmake
16
USES=		cmake
17
17
Lines 19-40 USE_GITHUB= yes Link Here
19
GH_ACCOUNT=	Sapd
19
GH_ACCOUNT=	Sapd
20
GH_PROJECT=	HeadsetControl
20
GH_PROJECT=	HeadsetControl
21
21
22
post-patch:
22
PLIST_FILES=	${LOCALBASE}/bin/headsetcontrol
23
	@${REINPLACE_CMD} -e 's|/etc/udev/|/usr/local/etc/udev/|g' ${WRKSRC}/CMakeLists.txt
24
25
PLIST_FILES=	${LOCALBASE}/bin/headsetcontrol \
26
		${LOCALBASE}/etc/udev/rules.d/50-corsair-void-pro-usb.rules \
27
		${LOCALBASE}/etc/udev/rules.d/50-corsair-void-pro.rules \
28
		${LOCALBASE}/etc/udev/rules.d/50-corsair-void.rules \
29
		${LOCALBASE}/etc/udev/rules.d/50-corsair_void_rgb_usb.rules \
30
		${LOCALBASE}/etc/udev/rules.d/50-logitech-g430.rules \
31
		${LOCALBASE}/etc/udev/rules.d/50-logitech-g533.rules \
32
		${LOCALBASE}/etc/udev/rules.d/50-logitech-g633.rules \
33
		${LOCALBASE}/etc/udev/rules.d/50-logitech-g930.rules \
34
		${LOCALBASE}/etc/udev/rules.d/50-logitech-g933.rules \
35
		${LOCALBASE}/etc/udev/rules.d/50-logitech-g935.rules \
36
		${LOCALBASE}/etc/udev/rules.d/50-steelseries-arctis-7-2019.rules \
37
		${LOCALBASE}/etc/udev/rules.d/50-steelseries-arctis-7.rules \
38
		${LOCALBASE}/etc/udev/rules.d/50-steelseries-arctis-pro-2019.rules
39
23
40
.include <bsd.port.mk>
24
.include <bsd.port.mk>
(-)b/audio/headsetcontrol/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1580335600
1
TIMESTAMP = 1621151184
2
SHA256 (Sapd-HeadsetControl-2.3_GH0.tar.gz) = 4969f13b5c5e2fee3b4b75d09f1a3ef1b707615aababf40d1f7cac60eab1fc21
2
SHA256 (Sapd-HeadsetControl-2.4_GH0.tar.gz) = 1978dd8939da3c846457040416eda1896f3f0aea7eb9b4d74efac30ed5c0cacb
3
SIZE (Sapd-HeadsetControl-2.3_GH0.tar.gz) = 28045
3
SIZE (Sapd-HeadsetControl-2.4_GH0.tar.gz) = 33648

Return to bug 255919