aboutsummaryrefslogtreecommitdiff
path: root/sysutils/iichid/Makefile
blob: c346a876089ff6eae930c4c66600301aa12963b4 (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
35
36
37
38
PORTNAME=	iichid
DISTVERSION=	0.0.6
CATEGORIES=	sysutils

MAINTAINER=	wulf@FreeBSD.org
COMMENT=	Generic FreeBSD HID layer for I2C and USB devices

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

IGNORE_FreeBSD_13=	Is a part of base system
IGNORE_FreeBSD_14=	Is a part of base system

USES=	kmod uidfix

USE_GITHUB=	yes

GH_ACCOUNT=	wulf7

PLIST_FILES=	${KMODDIR}/iichid.ko

# USB backend is disabled by default as it interferes with existing USB drivers
# I2C transport requires architecture supporting ACPI
OPTIONS_DEFINE=		DEBUG I2C USB
OPTIONS_DEFAULT_amd64=	I2C
OPTIONS_DEFAULT_i386=	I2C
OPTIONS_DEFAULT_aarch64=I2C

I2C_DESC=		HID over I2C support
USB_DESC=		HID over USB support

I2C_MAKE_ARGS_OFF=	-DDISABLE_IICHID
USB_MAKE_ARGS_OFF=	-DDISABLE_USBHID

post-patch-DEBUG-off:
	${REINPLACE_CMD} -e '/iichid_debug =/s/1/0/' ${WRKSRC}/iichid.c

.include <bsd.port.mk>