mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
27 lines
547 B
Makefile
27 lines
547 B
Makefile
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
|
|
|
|
PORTNAME= hidapi
|
|
PORTVERSION= 0.10.1
|
|
PORTREVISION= 1
|
|
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:3.6+
|
|
USE_PYTHON= autoplist cython distutils
|
|
|
|
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>
|