50f8eaece1
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2 - USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes Reviewed by: python (mva, rm) Approved by: portmgr-lurkers (mat)
42 lines
1,007 B
Makefile
42 lines
1,007 B
Makefile
# Created by: Douglas Thrift
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_wsgi
|
|
PORTVERSION= 2.8
|
|
PORTREVISION= 2
|
|
CATEGORIES= www python
|
|
MASTER_SITES= GOOGLE_CODE
|
|
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}
|
|
PKGNAMESUFFIX= 2
|
|
|
|
MAINTAINER= douglas@douglasthrift.net
|
|
COMMENT= Python WSGI adapter module for Apache
|
|
|
|
LICENSE= APACHE20
|
|
|
|
CONFLICTS= ${PKGNAMEPREFIX}mod_wsgi-3.* ${PKGNAMEPREFIX}mod_wsgi3.* mod_wsgi-3.*
|
|
|
|
PROJECTHOST= modwsgi
|
|
|
|
USE_APACHE= 22
|
|
USE_PYTHON= 2
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--with-apxs="${APXS}" --with-python="${PYTHON_CMD}"
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
PORTSCOUT= limit:^2\.
|
|
|
|
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:
|
|
@${APXS} -e -a -n "${SHORTMODNAME}" "${APACHEMODDIR}/${MODULENAME}.so"
|
|
|
|
.include <bsd.port.mk>
|