Makefile 784 Bytes
Newer Older
sunpoet's avatar
sunpoet committed
1
# Created by: Peter Haight <peterh@sapros.com>
2
3
4
# $FreeBSD$

PORTNAME=	m2crypto
sunpoet's avatar
sunpoet committed
5
PORTVERSION=	0.33.0
6
CATEGORIES=	security python
lwhsu's avatar
lwhsu committed
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
mnag's avatar
mnag committed
9
DISTNAME=	M2Crypto-${PORTVERSION}
pav's avatar
pav committed
10

sunpoet's avatar
sunpoet committed
11
MAINTAINER=	sunpoet@FreeBSD.org
12
COMMENT=	Crypto and SSL toolkit for Python
kris's avatar
kris committed
13

sunpoet's avatar
sunpoet committed
14
LICENSE=	MIT
sunpoet's avatar
sunpoet committed
15
LICENSE_FILE=	${WRKSRC}/LICENCE
sunpoet's avatar
sunpoet committed
16

17
BUILD_DEPENDS=	swig3.0:devel/swig30
18
RUN_DEPENDS=	${PY_TYPING}
pav's avatar
pav committed
19

sunpoet's avatar
sunpoet committed
20
USES=		python ssl
sunpoet's avatar
sunpoet committed
21
22
23
USE_PYTHON=	autoplist concurrent distutils

PYDISTUTILS_BUILDARGS=	build_ext --include=${OPENSSLINC} --openssl=${OPENSSLBASE} --swig=${LOCALBASE}/bin/swig3.0
sunpoet's avatar
sunpoet committed
24

sunpoet's avatar
sunpoet committed
25
post-patch:
sunpoet's avatar
sunpoet committed
26
	@${REINPLACE_CMD} -e "s|swig\(', '-version\)|swig3.0\1|" ${WRKSRC}/setup.py
sunpoet's avatar
sunpoet committed
27

sunpoet's avatar
sunpoet committed
28
post-install:
sunpoet's avatar
sunpoet committed
29
	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/M2Crypto/_m2crypto.so
sunpoet's avatar
sunpoet committed
30

31
.include <bsd.port.mk>