From d482db4fa26f06fc3a86c9c3922da7956ad76b1f Mon Sep 17 00:00:00 2001 From: Nikolai Lifanov Date: Wed, 16 Oct 2019 21:46:10 +0000 Subject: [PATCH] add sysutils/opencorsairlink OpenCorsairLink is an utility that interacts with CorsairLink products. --- sysutils/Makefile | 1 + sysutils/opencorsairlink/Makefile | 27 +++++++++++++++++++ sysutils/opencorsairlink/distinfo | 3 +++ sysutils/opencorsairlink/files/patch-Makefile | 14 ++++++++++ sysutils/opencorsairlink/pkg-descr | 4 +++ 5 files changed, 49 insertions(+) create mode 100644 sysutils/opencorsairlink/Makefile create mode 100644 sysutils/opencorsairlink/distinfo create mode 100644 sysutils/opencorsairlink/files/patch-Makefile create mode 100644 sysutils/opencorsairlink/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index a03425b69f84..85d49e19315f 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -755,6 +755,7 @@ SUBDIR += ohmu SUBDIR += omnibackup SUBDIR += open + SUBDIR += opencorsairlink SUBDIR += openipmi SUBDIR += openupsd SUBDIR += openzfs diff --git a/sysutils/opencorsairlink/Makefile b/sysutils/opencorsairlink/Makefile new file mode 100644 index 000000000000..fe8147d82e73 --- /dev/null +++ b/sysutils/opencorsairlink/Makefile @@ -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 diff --git a/sysutils/opencorsairlink/distinfo b/sysutils/opencorsairlink/distinfo new file mode 100644 index 000000000000..bebebcea0a58 --- /dev/null +++ b/sysutils/opencorsairlink/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1571261580 +SHA256 (audiohacked-OpenCorsairLink-g20191001-4234f4f_GH0.tar.gz) = 885ff3cc97db00eba7f59c64251aea3a5132a24a3e8a62b1a17fecc99123170f +SIZE (audiohacked-OpenCorsairLink-g20191001-4234f4f_GH0.tar.gz) = 148932 diff --git a/sysutils/opencorsairlink/files/patch-Makefile b/sysutils/opencorsairlink/files/patch-Makefile new file mode 100644 index 000000000000..82c7b472630e --- /dev/null +++ b/sysutils/opencorsairlink/files/patch-Makefile @@ -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)\" + + #################################################################################################### diff --git a/sysutils/opencorsairlink/pkg-descr b/sysutils/opencorsairlink/pkg-descr new file mode 100644 index 000000000000..6c01df1b718b --- /dev/null +++ b/sysutils/opencorsairlink/pkg-descr @@ -0,0 +1,4 @@ +OpenCorsairLink is a status & control utility that +interacts with CorsairLink products. + +WWW: https://github.com/audiohacked/OpenCorsairLink