Changeset View
Changeset View
Standalone View
Standalone View
head/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.3 | ||||
CATEGORIES= sysutils | CATEGORIES= sysutils | ||||
MAINTAINER= imp@FreeBSD.org | MAINTAINER= wulf@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 | # Strip -Werror from sys/conf/kmod.mk | ||||
MAKE_ENV= WERROR="" | 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 | ||||
# 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 | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |