summaryrefslogtreecommitdiff
path: root/security/py-hashlib/Makefile
blob: 8a426605f3f981aeb8d3f3e38d9e584f523e66a6 (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
31
32
33
34
# New ports collection makefile for:	py-hashlib
# Date created:				12 Dec 2006
# Whom:					Alexander Botero-Lowry <alexbl@FreeBSD.org>
#
# $FreeBSD$

PORTNAME=	hashlib
PORTVERSION=	20081119
CATEGORIES=	security devel python
MASTER_SITES=	http://code.krypto.org/python/hashlib/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	python@FreeBSD.org
COMMENT=	Backport of Python 2.5's haslib module

USE_PYTHON=	-2.4
USE_OPENSSL=	yes
USE_PYDISTUTILS=	yes

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} >= 250
IGNORE=	hashlib ships with Python 2.5.x
.endif

.if ${OSVERSION} >= 700019
PLIST_SUB+=	OSSL="@comment "
.else
PLIST_SUB+=	OSSL=""
.endif

PYDISTUTIL_BUILDARGS=	--openssl-prefix=${OPENSSLDIR} --openssl-incdir=${OPENSSLINC} --openssl-libdir=${OPENSSLLIB}

.include <bsd.port.post.mk>