2012-07-02 12:36:33 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.28 2012/07/02 16:36:33 mpi Exp $
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2009-08-29 11:17:48 -04:00
|
|
|
SHARED_ONLY = Yes
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2009-08-29 11:17:48 -04:00
|
|
|
COMMENT = cryptographic tools for Python
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2012-05-25 08:13:01 -04:00
|
|
|
MODPY_EGG_VERSION = 2.6
|
2009-08-29 11:17:48 -04:00
|
|
|
DISTNAME = pycrypto-${MODPY_EGG_VERSION}
|
2010-08-30 17:16:17 -04:00
|
|
|
PKGNAME = py-crypto-${MODPY_EGG_VERSION}
|
2009-08-29 11:17:48 -04:00
|
|
|
CATEGORIES = security devel
|
2012-06-27 15:01:51 -04:00
|
|
|
REVISION = 0
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2011-10-08 10:56:34 -04:00
|
|
|
HOMEPAGE = https://www.dlitz.net/software/pycrypto/
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2011-10-08 10:56:34 -04:00
|
|
|
MAINTAINER = Martin Pieuchot <mpi@openbsd.org>
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2008-06-10 22:59:32 -04:00
|
|
|
# Public domain (patented algorithms removed by patch)
|
2009-08-29 11:17:48 -04:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2011-10-08 10:56:34 -04:00
|
|
|
MASTER_SITES = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2009-08-29 11:17:48 -04:00
|
|
|
MODULES = lang/python
|
2012-02-17 04:32:18 -05:00
|
|
|
|
|
|
|
FLAVORS = python3
|
|
|
|
FLAVOR ?=
|
|
|
|
|
2011-12-28 04:56:38 -05:00
|
|
|
LIB_DEPENDS = ${MODPY_LIB_DEPENDS} \
|
|
|
|
devel/gmp
|
|
|
|
WANTLIB = ${MODPY_WANTLIB} gmp
|
2011-11-04 09:36:16 -04:00
|
|
|
|
2011-12-28 04:56:38 -05:00
|
|
|
# XXX Don't set CONFIGURE_STYLE=simple otherwise python.port.mk will
|
2012-05-25 08:13:01 -04:00
|
|
|
# not define do-build and do-install
|
2011-12-28 04:56:38 -05:00
|
|
|
CONFIGURE_ARGS = CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CFLAGS += -I${LOCALBASE}/include
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2009-08-29 11:17:48 -04:00
|
|
|
DOCSDIR = ${PREFIX}/share/doc/py-crypto
|
2004-02-03 02:19:06 -05:00
|
|
|
|
2008-06-10 22:59:32 -04:00
|
|
|
pre-configure:
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/setup.py
|
2011-10-10 06:08:05 -04:00
|
|
|
rm ${WRKSRC}/lib/Crypto/SelfTest/Cipher/test_ARC2.py
|
|
|
|
rm ${WRKSRC}/lib/Crypto/SelfTest/Hash/test_MD2.py
|
2006-01-23 03:52:55 -05:00
|
|
|
|
2011-12-28 04:56:38 -05:00
|
|
|
do-configure:
|
2012-07-02 12:36:33 -04:00
|
|
|
cd ${WRKCONF} && ${SETENV} \
|
|
|
|
${CONFIGURE_ENV} ${_CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
|
2011-12-28 04:56:38 -05:00
|
|
|
|
2004-02-03 02:19:06 -05:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2012-02-17 04:32:18 -05:00
|
|
|
.if ${FLAVOR:L:Mpython3}
|
|
|
|
mv ${PREFIX}/share/doc/py-crypto ${PREFIX}/share/doc/py3-crypto
|
|
|
|
.endif
|
2004-02-03 02:19:06 -05:00
|
|
|
|
|
|
|
do-regress: fake
|
|
|
|
cd ${WRKSRC} && ${MAKE_ENV} \
|
2011-10-08 10:56:34 -04:00
|
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} setup.py test
|
2004-02-03 02:19:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|