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