aboutsummaryrefslogtreecommitdiffstats
path: root/security/py-pycrypto/Makefile
blob: d7bdfe70cd36c0c81a31d2cb7121a99bc688017c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# New ports collection makefile for: pycrypto
# Date created:     25 Oct 2002
# Whom:         nbm
#
# $FreeBSD$
#

PORTNAME=   pycrypto
PORTVERSION=    2.0
CATEGORIES= security
MASTER_SITES=   http://www.amk.ca/files/python/crypto/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    The Python Cryptography Toolkit

USE_PYTHON= yes
USE_PYDISTUTILS=yes
USE_REINPLACE=  yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500000
LIB_DEPENDS+=   gmp.6:${PORTSDIR}/math/libgmp4
.endif

pre-configure:
    @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py

.include <bsd.port.post.mk>