1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/security/py-m2crypto/Makefile
Sunpoet Po-Chuan Hsieh 43ff95fcb6 Fix build with OpenSSL 1.1.*
PR:		229019
Reported by:	brnrd
Obtained by:	Viktor Dukhovni <ietf-dane at dukhovni.org>
Reference:	https://lists.freebsd.org/pipermail/freebsd-python/2018-September/015429.html
2018-09-24 11:14:18 +00:00

36 lines
899 B
Makefile

# Created by: Peter Haight <peterh@sapros.com>
# $FreeBSD$
PORTNAME= m2crypto
PORTVERSION= 0.30.1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= M2Crypto-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Crypto and SSL toolkit for Python
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENCE
BUILD_DEPENDS= swig3.0:devel/swig30
PYDISTUTILS_BUILDARGS= build_ext --include=${OPENSSLINC} --openssl=${OPENSSLBASE} --swig=${LOCALBASE}/bin/swig3.0
USE_PYTHON= autoplist concurrent distutils
USES= python ssl
post-patch:
@${REINPLACE_CMD} -e "s|swig\(', '-version\)|swig3.0\1|" ${WRKSRC}/setup.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/M2Crypto/_m2crypto.so
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 3500
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing>=0:devel/py-typing@${PY_FLAVOR}
.endif
.include <bsd.port.post.mk>