summaryrefslogtreecommitdiff
path: root/sysutils/opencorsairlink/Makefile
blob: 72c6b45d9a34716717be23b21f05920e7f1f9a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
PORTNAME=	OpenCorsairLink
DISTVERSION=	g20191001
CATEGORIES=	sysutils

PATCH_SITES=	https://github.com/audiohacked/OpenCorsairLink/commit/
PATCHFILES=	d600c7ff032a3911d30b039844a31f0b3acfe26a.patch:-p1

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}

LDFLAGS+=	-lm

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>