summaryrefslogtreecommitdiff
path: root/security/py-mhash
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-10-13 18:42:05 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-10-13 18:42:05 +0000
commitb0f2ce97ccc4a5567ba7aeccb63b2e04477c721c (patch)
treebbc755014e2cd71cf4743abaf433abdb7849339a /security/py-mhash
parentAdd pmk, "Pre Make Kit." pmk is a sane and BSDL autoconf replacement. (diff)
Fix build for gcc 3.3
Spotted by: kris
Notes
Notes: svn path=/head/; revision=91078
Diffstat (limited to 'security/py-mhash')
-rw-r--r--security/py-mhash/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/security/py-mhash/Makefile b/security/py-mhash/Makefile
index 2841481386bb..97212f44ca12 100644
--- a/security/py-mhash/Makefile
+++ b/security/py-mhash/Makefile
@@ -20,10 +20,14 @@ COMMENT= Python mhash module
LIB_DEPENDS= mhash:${PORTSDIR}/security/mhash
USE_PYTHON= yes
-USE_PYDISTUTILS= yes
+USE_PYDISTUTILS=yes
+USE_REINPLACE= yes
PYDISTUTILS_BUILDARGS= -L${LOCALBASE}/lib
CFLAGS+= -I${LOCALBASE}/include
+pre-patch:
+ ${REINPLACE_CMD} -e '227s,$$,\\,' ${WRKSRC}/mhash.c # put a missed terminating quote
+
do-build:
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYSETUP} build_ext ${PYDISTUTILS_BUILDARGS})