Tweak security/libp11 version 0.4.0
[dports.git] / security / py-pycrypto / Makefile
1 # Created by: nbm
2 # $FreeBSD$
3
4 PORTNAME=       pycrypto
5 PORTVERSION=    2.6.1
6 PORTREVISION=   1
7 CATEGORIES=     security python
8 MASTER_SITES=   CHEESESHOP
9 PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
10
11 MAINTAINER=     koobs@FreeBSD.org
12 COMMENT=        Python Cryptography Toolkit
13
14 USES=           python
15 USE_PYTHON=     distutils autoplist
16
17 GNU_CONFIGURE=  yes
18
19 OPTIONS_DEFINE=         GMP
20 OPTIONS_DEFAULT=        GMP
21
22 GMP_DESC=               Use GMP for faster DSA/RSA operations
23 GMP_CONFIGURE_WITH=     gmp
24 GMP_CPPFLAGS=           -I${LOCALBASE}/include
25 GMP_LDFLAGS=            -L${LOCALBASE}/lib
26 GMP_LIB_DEPENDS=        libgmp.so:math/gmp
27
28 pre-patch:
29         @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
30
31 post-install:
32         @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Crypto/*/*.so
33
34 regression-test: build
35         @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
36
37 .include <bsd.port.mk>