diff options
Diffstat (limited to 'www/mod_wsgi/Makefile')
-rw-r--r-- | www/mod_wsgi/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/www/mod_wsgi/Makefile b/www/mod_wsgi/Makefile new file mode 100644 index 000000000000..4e2f1f7af825 --- /dev/null +++ b/www/mod_wsgi/Makefile @@ -0,0 +1,30 @@ +PORTNAME= mod_wsgi +DISTVERSION= 5.0.2 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= douglas@douglasthrift.net +COMMENT= Python WSGI adapter module for Apache +WWW= https://www.modwsgi.org/ + +LICENSE= APACHE20 + +USES= apache cpe gettext python:3.8+ +USE_PYTHON= flavors + +CPE_VENDOR= modwsgi + +GNU_CONFIGURE= yes +CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" + +SUB_FILES= ${APMOD_FILE} +APMOD_FILE= 270_${PORTNAME}.conf.sample +PLIST_SUB+= APMOD_FILE=${APMOD_FILE} + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d + ${INSTALL_DATA} ${WRKDIR}/${APMOD_FILE} ${STAGEDIR}${PREFIX}/${APACHEETCDIR}/modules.d + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${APACHEMODDIR}/${PORTNAME}.so + +.include <bsd.port.mk> |