34 lines
967 B
Makefile
34 lines
967 B
Makefile
# $NetBSD: Makefile,v 1.41 2017/09/03 08:53:15 wiz Exp $
|
|
|
|
DISTNAME= pycrypto-2.6.1
|
|
PKGNAME= ${DISTNAME:S/^py/${PYPKGPREFIX}-/}
|
|
PKGREVISION= 3
|
|
CATEGORIES= security python
|
|
MASTER_SITES= http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
|
|
|
|
MAINTAINER= gdt@NetBSD.org
|
|
HOMEPAGE= https://www.dlitz.net/software/pycrypto/
|
|
COMMENT= Cryptographic and hash functions for Python
|
|
LICENSE= public-domain AND python-software-foundation
|
|
|
|
CONFLICTS+= ${PYPKGPREFIX}-amkCrypto-[0-9]*
|
|
SUPERSEDES+= ${PYPKGPREFIX}-amkCrypto-[0-9]*
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
do-test:
|
|
${RUN}cd ${WRKSRC};${SETENV} ${TEST_ENV} ${PYTHONBIN} ${PYSETUP} test
|
|
|
|
PLIST_VARS+= py2x
|
|
.include "../../lang/python/pyversion.mk"
|
|
.if empty(PYPKGPREFIX:Mpy3?)
|
|
PLIST.py2x= yes
|
|
.endif
|
|
|
|
CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600
|
|
|
|
BUILDLINK_API_DEPENDS.gmp+= gmp>=5.0
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
.include "../../lang/python/distutils.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|