2002-07-21 04:22:10 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: py-mcrypt
|
|
|
|
# Date created: Jul 21, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mcrypt
|
|
|
|
PORTVERSION= 1.0
|
|
|
|
CATEGORIES= security python
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= python-mcrypt
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= python-mcrypt-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= A comprehensive Python interface to the mcrypt library
|
2002-07-21 04:22:10 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= mcrypt:${PORTSDIR}/security/libmcrypt
|
|
|
|
|
2004-02-05 20:38:07 +00:00
|
|
|
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/mcrypt.so
|
2002-07-21 04:22:10 +00:00
|
|
|
USE_PYTHON= yes
|
2003-10-13 18:50:47 +00:00
|
|
|
USE_PYDISTUTILS=yes
|
|
|
|
USE_REINPLACE= yes
|
2002-07-21 04:22:10 +00:00
|
|
|
PYDISTUTILS_BUILDARGS= -L${LOCALBASE}/lib
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
|
2003-10-13 18:50:47 +00:00
|
|
|
pre-patch:
|
|
|
|
# put a missed terminating quote
|
|
|
|
${REINPLACE_CMD} -e '1136s,$$,\\,g' -e '1678s,$$,\\,g' ${WRKSRC}/mcrypt.c
|
|
|
|
|
2002-07-21 04:22:10 +00:00
|
|
|
do-build:
|
|
|
|
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${PYDISTUTILS_BUILDARGS})
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|