From dcb10af4e23c23f6b897cbaa20502853226eb0b7 Mon Sep 17 00:00:00 2001 From: perky Date: Mon, 13 Oct 2003 18:50:47 +0000 Subject: Fix build for gcc 3.3. Spotted by: kris --- security/py-mcrypt/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'security') diff --git a/security/py-mcrypt/Makefile b/security/py-mcrypt/Makefile index 21fe43d8be1..267d83b26d3 100644 --- a/security/py-mcrypt/Makefile +++ b/security/py-mcrypt/Makefile @@ -20,10 +20,15 @@ COMMENT= A comprehensive Python interface to the mcrypt library LIB_DEPENDS= mcrypt:${PORTSDIR}/security/libmcrypt USE_PYTHON= yes -USE_PYDISTUTILS= yes +USE_PYDISTUTILS=yes +USE_REINPLACE= yes PYDISTUTILS_BUILDARGS= -L${LOCALBASE}/lib CFLAGS+= -I${LOCALBASE}/include +pre-patch: + # put a missed terminating quote + ${REINPLACE_CMD} -e '1136s,$$,\\,g' -e '1678s,$$,\\,g' ${WRKSRC}/mcrypt.c + do-build: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${PYDISTUTILS_BUILDARGS}) -- cgit