aboutsummaryrefslogtreecommitdiff
path: root/sysutils/g15daemon/Makefile
blob: ce343c1c068b44c6ea099f2f896b07d637a47f91 (plain) (blame)
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
31
32
33
34
PORTNAME=	g15daemon
DISTVERSION=	3.0.4
CATEGORIES=	sysutils

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Daemon for Logitech G15 Keyboards
WWW=		https://gitlab.com/menelkir/g15daemon

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto
LIB_DEPENDS=	libg15.so:sysutils/libg15 \
		libg15render.so:sysutils/libg15render \
		libinput.so:x11/libinput

USES=		gmake libtool localbase
USE_GITLAB=	yes
USE_LDCONFIG=	yes
USE_RC_SUBR=	g15daemon

GL_ACCOUNT=	menelkir
GL_TAGNAME=	1f4e8b41a6ea460d59cc07305a4d9b487b575ec6

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc

INSTALL_TARGET=	install-strip

post-patch:
	@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
		${WRKSRC}/g15daemon/main.c

.include <bsd.port.mk>