aboutsummaryrefslogtreecommitdiff
path: root/www/mod_python3
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-05 03:14:38 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-05 03:14:38 +0000
commitbd08591cdf7db040f42db17b1c846561b93ac046 (patch)
tree3e495a7570f5fc6d55326dce129a6ebb5026a5a9 /www/mod_python3
parent484420a603bf189ff3e73cd02730eb9c9d1ca457 (diff)
Add a workaround for python2.3
Notes
Notes: svn path=/head/; revision=86321
Diffstat (limited to 'www/mod_python3')
-rw-r--r--www/mod_python3/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/mod_python3/Makefile b/www/mod_python3/Makefile
index c66137764df5..72b9f1866a14 100644
--- a/www/mod_python3/Makefile
+++ b/www/mod_python3/Makefile
@@ -23,10 +23,18 @@ USE_PYTHON= yes
APXS?= ${LOCALBASE}/sbin/apxs
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}"
MAKE_ENV= EXPR_COMPAT=yes
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} >= 230
+post-patch:
+ ${REINPLACE_CMD} -e 's,LONG_LONG,long long,g' ${WRKSRC}/src/requestobject.c
+.endif
+
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>