2015-07-07 09:32:45 +02:00
|
|
|
# Created by: mp39590@gmail.com
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pyscard
|
2016-03-29 04:45:32 +02:00
|
|
|
PORTVERSION= 1.9.3
|
2015-07-07 09:32:45 +02:00
|
|
|
CATEGORIES= security python
|
2015-08-16 13:56:02 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2015-07-07 09:32:45 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= mp39590@gmail.com
|
|
|
|
COMMENT= Smartcard module for Python
|
|
|
|
|
2016-03-29 04:45:32 +02:00
|
|
|
LICENSE= LGPL21+
|
2015-07-07 09:32:45 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
|
|
|
|
BUILD_DEPENDS= swig1.3:${PORTSDIR}/devel/swig13 \
|
|
|
|
pcsc-lite>0:${PORTSDIR}/devel/pcsc-lite
|
|
|
|
RUN_DEPENDS= pcsc-lite>0:${PORTSDIR}/devel/pcsc-lite
|
|
|
|
|
2015-08-16 13:56:02 +02:00
|
|
|
## Python3 is supported
|
|
|
|
USES= python:2.7+
|
2015-07-07 09:32:45 +02:00
|
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
|
2015-08-16 13:56:02 +02:00
|
|
|
PYDISTUTILS_BUILD_TARGET= build_ext
|
|
|
|
PYDISTUTILS_BUILDARGS+= --include-dirs=${LOCALBASE}/include/PCSC
|
2015-07-07 09:32:45 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/smartcard/scard/_scard.so
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|