mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
1487616eff
- Tab->space after WWW in pkg-descr - Trim Makefile header Approved by: jgh (maintainer), eadler (mentor) Discussed with: ak Feature safe: yes
49 lines
1002 B
Makefile
49 lines
1002 B
Makefile
# Created by: nbm
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pycrypto
|
|
PORTVERSION= 2.6
|
|
PORTREVISION= 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
|
|
|
|
.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>
|