aboutsummaryrefslogtreecommitdiff
path: root/security/py-pyscard/Makefile
blob: 3901e3edaa6bed51392f3c24b382cfb7048134d3 (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
29
30
# Created by: mp39590@gmail.com
# $FreeBSD$

PORTNAME=	pyscard
PORTVERSION=	1.9.3
CATEGORIES=	security python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	mp39590@gmail.com
COMMENT=	Smartcard module for Python

LICENSE=	LGPL21+
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	swig1.3:devel/swig13 \
		pcsc-lite>0:devel/pcsc-lite
RUN_DEPENDS=	pcsc-lite>0:devel/pcsc-lite

## Python3 is supported
USES=		python:2.7+
USE_PYTHON=	autoplist distutils

PYDISTUTILS_BUILD_TARGET=	build_ext
PYDISTUTILS_BUILDARGS+=	--include-dirs=${LOCALBASE}/include/PCSC

post-install:
	${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/smartcard/scard/_scard.so

.include <bsd.port.mk>