summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>