aboutsummaryrefslogtreecommitdiff
path: root/comms/py-hidapi/Makefile
blob: 23944b75b6c2889d19b9db82159a532e494018ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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

BUILD_DEPENDS=	cython:lang/cython
LIB_DEPENDS=	libhidapi.so:comms/hidapi

USES=		python
USE_PYTHON=	autoplist 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>