1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

add sysutils/opencorsairlink

OpenCorsairLink is an utility that interacts with CorsairLink products.
This commit is contained in:
Nikolai Lifanov 2019-10-16 21:46:10 +00:00
parent d66a14abdd
commit d482db4fa2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=514618
5 changed files with 49 additions and 0 deletions

View File

@ -755,6 +755,7 @@
SUBDIR += ohmu
SUBDIR += omnibackup
SUBDIR += open
SUBDIR += opencorsairlink
SUBDIR += openipmi
SUBDIR += openupsd
SUBDIR += openzfs

View File

@ -0,0 +1,27 @@
# $FreeBSD$
PORTNAME= OpenCorsairLink
DISTVERSION= g20191001
CATEGORIES= sysutils
MAINTAINER= lifanov@FreeBSD.org
COMMENT= Support for CorsairLink Devices
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= gmake pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= audiohacked
GH_TAGNAME= 4234f4f
PLIST_FILES= bin/${PORTNAME}
MAKE_ENV= GIT_VERSION=${GH_TAGNAME}
post-stage:
${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.elf ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1571261580
SHA256 (audiohacked-OpenCorsairLink-g20191001-4234f4f_GH0.tar.gz) = 885ff3cc97db00eba7f59c64251aea3a5132a24a3e8a62b1a17fecc99123170f
SIZE (audiohacked-OpenCorsairLink-g20191001-4234f4f_GH0.tar.gz) = 148932

View File

@ -0,0 +1,14 @@
--- Makefile.orig 2019-10-02 19:43:17 UTC
+++ Makefile
@@ -32,9 +32,9 @@ LDFLAGS ?= -lm
CFLAGS += $(shell pkg-config --cflags libusb-1.0)
LDFLAGS += $(shell pkg-config --libs libusb-1.0)
-PREFIX = /usr/local
+PREFIX ?= /usr/local
-GIT_VERSION := $(shell git describe --abbrev=4 --always --tags)
+GIT_VERSION ?= $(shell git describe --abbrev=4 --always --tags)
CFLAGS += -DVERSION=\"v0.9.0.0-$(GIT_VERSION)\"
####################################################################################################

View File

@ -0,0 +1,4 @@
OpenCorsairLink is a status & control utility that
interacts with CorsairLink products.
WWW: https://github.com/audiohacked/OpenCorsairLink