opnsense-ports/comms/py-hidapi/Makefile
Franco Fichtner 0d9b23e597 */*: sync with upstream
Taken from: HardenedBSD
2017-11-30 18:31:08 +01:00

27 lines
564 B
Makefile

# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
# $FreeBSD$
PORTNAME= hidapi
PORTVERSION= 0.7.99
DISTVERSIONSUFFIX= .post21
CATEGORIES= comms python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Cython interface to comms/hidapi
LICENSE= GPLv3
LIB_DEPENDS= libhidapi.so:comms/hidapi
USES= python
USE_PYTHON= autoplist distutils cython
post-patch:
@${REINPLACE_CMD} -e 's|usb-1.0|usb|g' ${WRKSRC}/setup.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/hid.so
.include <bsd.port.mk>