9fb056d553
Security: vuxml c0f122e2-3897-11e3-a084-3c970e169bc2 Security: CVE-2013-1445 Approved by: maintainer (via IRC)
48 lines
1,002 B
Makefile
48 lines
1,002 B
Makefile
# Created by: nbm
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pycrypto
|
|
PORTVERSION= 2.6.1
|
|
CATEGORIES= security python
|
|
MASTER_SITES= CHEESESHOP \
|
|
https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
COMMENT= The Python Cryptography Toolkit
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
HAS_CONFIGURE= yes
|
|
USE_AUTOTOOLS= autoconf
|
|
|
|
OPTIONS_DEFINE= GMP
|
|
OPTIONS_DEFAULT= GMP
|
|
GMP_DESC= Use GMP for faster DSA/RSA operations
|
|
|
|
OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MGMP}
|
|
LIB_DEPENDS+= gmp:${PORTSDIR}/math/gmp
|
|
CONFIGURE_ARGS+= --with-gmp
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
PLIST_SUB+= GMP=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-gmp
|
|
PLIST_SUB+= GMP="@comment "
|
|
.endif
|
|
|
|
pre-patch:
|
|
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
|
|
|
|
test: build
|
|
cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
|
|
|
|
regression-test: test
|
|
|
|
.include <bsd.port.mk>
|