diff options
Diffstat (limited to 'www/mod_python3/Makefile')
-rw-r--r-- | www/mod_python3/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/mod_python3/Makefile b/www/mod_python3/Makefile index f5a7ab5f9b47..f7abffb7f9cf 100644 --- a/www/mod_python3/Makefile +++ b/www/mod_python3/Makefile @@ -7,6 +7,7 @@ PORTNAME= mod_python PORTVERSION= 3.1.3 +PORTREVISION= 1 CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} MASTER_SITE_SUBDIR= modpython @@ -36,7 +37,17 @@ post-patch: ${REINPLACE_CMD} -e 's,LONG_LONG,long long,g' ${WRKSRC}/src/requestobject.c .endif +.if !exists(${PREFIX}/etc/apache2/envvars.d) +BROKEN= "Please upgrade your www/apache2 installation." +.endif + +post-build: + THREAD_LIB=`ldd ${PYTHON_CMD} | ${EGREP} '(pthread|c_r)' | ${AWK} '{print $$3}'`; \ + ${ECHO_CMD} "LD_PRELOAD=$${THREAD_LIB}" > ${WRKDIR}/mod_python3.env + ${ECHO_CMD} "export LD_PRELOAD" >> ${WRKDIR}/mod_python3.env + post-install: + ${INSTALL_DATA} ${WRKDIR}/mod_python3.env ${PREFIX}/etc/apache2/envvars.d @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> |