freebsd-ports/security/py-pycrypto/Makefile
Kubilay Kocak a47e542de5 security/py-pycrypto: Strip shared libraries
- Strip shared libraries
- Use GNU_CONFIGURE over HAS_CONFIGURE and USE_AUTOTOOLS
- Give in and strip leading "The" in COMMENT
- Tweak regression-test target
- Update pkg-descr WWW: URL
2014-12-23 04:52:07 +00:00

37 lines
821 B
Makefile

# Created by: nbm
# $FreeBSD$
PORTNAME= pycrypto
PORTVERSION= 2.6.1
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Python Cryptography Toolkit
USES= python
USE_PYTHON= distutils autoplist
GNU_CONFIGURE= yes
OPTIONS_DEFINE= GMP
OPTIONS_DEFAULT= GMP
GMP_DESC= Use GMP for faster DSA/RSA operations
GMP_CONFIGURE_WITH= gmp
GMP_CPPFLAGS= -I${LOCALBASE}/include
GMP_LDFLAGS= -L${LOCALBASE}/lib
GMP_LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp
pre-patch:
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Crypto/*/*.so
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>