# $FreeBSD: head/www/mod_wsgi4/Makefile 407429 2016-01-28 22:24:17Z rakuco $ PORTNAME= mod_wsgi PORTVERSION= 4.4.22 CATEGORIES= www python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX} PKGNAMESUFFIX= 4 MAINTAINER= douglas@douglasthrift.net COMMENT= Python WSGI adapter module for Apache LICENSE= APACHE20 CONFLICTS_INSTALL=${PKGNAMEPREFIX}mod_wsgi3.* mod_wsgi3.* USE_APACHE= 22+ USES= python GNU_CONFIGURE= yes CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}" SUB_FILES= pkg-message ${APMOD_FILE} APMOD_FILE= 270_${PORTNAME}.conf.sample PLIST_SUB+= APMOD_FILE=${APMOD_FILE} pre-everything:: @${ECHO_MSG} "======================= ATTENTION! ======================" @${ECHO_MSG} @${ECHO_MSG} "If you want to use daemon mode you will need to make sure" @${ECHO_MSG} "Apache and APR include thread support." @${ECHO_MSG} @${ECHO_MSG} "=========================================================" 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