Changeset View
Changeset View
Standalone View
Standalone View
sysutils/iichid/Makefile
# Created by: jrhett@netconsonance.com | # Created by: jrhett@netconsonance.com | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= iichid | PORTNAME= iichid | ||||
DISTVERSION= 0.0.1 | DISTVERSION= 0.0.2 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MAINTAINER= imp@FreeBSD.org | MAINTAINER= imp@FreeBSD.org | ||||
COMMENT= Generic FreeBSD HID layer for I2C and USB devices | COMMENT= Generic FreeBSD HID layer for I2C and USB devices | ||||
LICENSE= BSD2CLAUSE | LICENSE= BSD2CLAUSE | ||||
#LICENSE_FILE= Not yet packaged | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
IGNORE_FreeBSD_11= Requires FreeBSD 12.1 or later | IGNORE_FreeBSD_11= Requires FreeBSD 12.1 or later | ||||
ONLY_FOR_ARCHS= aarch64 amd64 i386 | ONLY_FOR_ARCHS= aarch64 amd64 i386 | ||||
ONLY_FOR_ARCHS_REASON= Requires architecture supporting ACPI | ONLY_FOR_ARCHS_REASON= I2C transport requires architecture supporting ACPI | ||||
USES= kmod uidfix | USES= kmod uidfix | ||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= wulf7 | GH_ACCOUNT= wulf7 | ||||
# Strip -Werror from sys/conf/kmod.mk | |||||
MAKE_ENV= WERROR="" | |||||
PLIST_FILES= ${KMODDIR}/iichid.ko | PLIST_FILES= ${KMODDIR}/iichid.ko | ||||
# USB backend is not yet complete and | # USB backend is disabled by default as it interferes with existing USB drivers | ||||
wulf: It is better to reduce iichid default debug level rather than disable debug completely. It is… | |||||
# interferes with existing USB drivers | OPTIONS_DEFINE= DEBUG I2C USB | ||||
post-patch: | OPTIONS_DEFAULT= I2C | ||||
${REINPLACE_CMD} -e '/usbhid.c/s/^/#/' ${WRKSRC}/Makefile | I2C_DESC= HID over I2C support | ||||
USB_DESC= HID over USB support | |||||
I2C_MAKE_ARGS_OFF= -DDISABLE_I2CHID | |||||
USB_MAKE_ARGS_OFF= -DDISABLE_USBHID | |||||
post-patch-DEBUG-off: | |||||
${REINPLACE_CMD} -e '/iichid_debug =/s/1/0/' ${WRKSRC}/iichid.c | |||||
Not Done Inline ActionsYou can skip USB HID compiling with addition of -DDISABLE_USBHID to make arguments. No need to patch Makefile. wulf: You can skip USB HID compiling with addition of -DDISABLE_USBHID to make arguments. No need to… | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
It is better to reduce iichid default debug level rather than disable debug completely. It is set with following line in iichid.c:
Patch it with sed to be initialized to zero.