summaryrefslogtreecommitdiffstats
path: root/security/py-mhash
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-10-13 18:42:05 +0000
committerperky <perky@FreeBSD.org>2003-10-13 18:42:05 +0000
commit12e7fce42912f14f008b6cfbd38d4f1f8ffbe249 (patch)
tree5b5f87143776f8c04dbe5b3bf93355c9913e27b1 /security/py-mhash
parent3f5897df2d18f8c2942eecd01827ab67d60194a1 (diff)
downloadFreeBSD-ports-12e7fce42912f14f008b6cfbd38d4f1f8ffbe249.zip
FreeBSD-ports-12e7fce42912f14f008b6cfbd38d4f1f8ffbe249.tar.gz
Fix build for gcc 3.3
Spotted by: kris
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 2841481..97212f4 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})
OpenPOWER on IntegriCloud