2000-10-28 01:20:02 +00:00
|
|
|
# New ports collection makefile for: mod_python
|
|
|
|
# Date created: 28 August 2000
|
2000-11-15 14:09:37 +00:00
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
2000-10-28 01:20:02 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_python
|
2005-02-14 23:25:09 +00:00
|
|
|
PORTVERSION= 2.7.11
|
2000-10-28 01:20:02 +00:00
|
|
|
CATEGORIES= www python
|
2003-04-13 21:41:19 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
|
|
|
|
MASTER_SITE_SUBDIR= modpython
|
2001-08-16 09:31:29 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2003-04-13 21:41:19 +00:00
|
|
|
DIST_SUBDIR= python
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2005-02-14 23:25:09 +00:00
|
|
|
MAINTAINER= josh@elsasser.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= Apache module for integrating Python
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2003-11-07 09:12:58 +00:00
|
|
|
USE_APACHE= yes
|
2001-11-06 14:24:29 +00:00
|
|
|
NO_PACKAGE= "Requires Python without threads support"
|
2001-03-23 00:27:40 +00:00
|
|
|
USE_PYTHON= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-11-15 14:09:37 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-08-16 09:31:29 +00:00
|
|
|
CONFIGURE_ARGS+= --with-apxs=${APXS}
|
2001-05-11 12:38:46 +00:00
|
|
|
CONFIGURE_ENV= PYTHON_BIN=${PYTHON_CMD}
|
2004-03-11 13:20:01 +00:00
|
|
|
MAKE_ENV= PORTS_APXS=${APXS}
|
2000-12-27 16:15:55 +00:00
|
|
|
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2003-09-27 01:01:08 +00:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "You may use the following build option:"
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} " WANT_EAPI=yes build as apache EAPI module (for apache13-modssl)"
|
|
|
|
@${ECHO_MSG} ""
|
2001-03-23 00:27:40 +00:00
|
|
|
|
|
|
|
pre-patch:
|
2001-05-11 12:38:46 +00:00
|
|
|
.if defined(WANT_EAPI)
|
2001-05-27 15:18:40 +00:00
|
|
|
cd ${WRKSRC} && ${PATCH} -p2 -s < ${PATCHDIR}/optpatch-WANT_EAPI
|
2001-03-23 00:27:40 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-configure:
|
2001-11-06 14:24:29 +00:00
|
|
|
@${SH} ${PKGREQ}.threads ${PYTHON_CMD}
|
2001-03-23 00:27:40 +00:00
|
|
|
.if defined(OPTIONAL_LIBS)
|
|
|
|
${SED} 's/^\(LIBS=.*\)/\1 ${OPTIONAL_LIBS}/' ${WRKSRC}/src/Makefile \
|
|
|
|
> ${WRKSRC}/src/Makefile.tmp && \
|
|
|
|
${MV} -f ${WRKSRC}/src/Makefile.tmp ${WRKSRC}/src/Makefile
|
|
|
|
.endif
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2001-03-23 00:27:40 +00:00
|
|
|
post-build:
|
2001-05-11 12:38:46 +00:00
|
|
|
.if !defined(DONT_STRIP) && exists(${STRIP_CMD})
|
|
|
|
${STRIP_CMD} ${WRKSRC}/src/mod_python.so
|
2001-03-23 00:27:40 +00:00
|
|
|
.endif
|
|
|
|
|
2000-10-28 01:20:02 +00:00
|
|
|
post-install:
|
2000-11-15 14:09:37 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2001-03-23 00:27:40 +00:00
|
|
|
.include <bsd.port.post.mk>
|