aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-05 11:14:38 +0800
committerperky <perky@FreeBSD.org>2003-08-05 11:14:38 +0800
commit4c3e80fd2d54b3e90981a882b2b891973bbfb500 (patch)
tree91d546cd25c8451288cc0ce598f810e37fa4f9cc /www
parent8c85fbd2a85c8b726ab0759d299ec7f6fb93b005 (diff)
downloadfreebsd-ports-gnome-4c3e80fd2d54b3e90981a882b2b891973bbfb500.tar.gz
freebsd-ports-gnome-4c3e80fd2d54b3e90981a882b2b891973bbfb500.tar.zst
freebsd-ports-gnome-4c3e80fd2d54b3e90981a882b2b891973bbfb500.zip
Add a workaround for python2.3
Diffstat (limited to 'www')
-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>