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
|
2002-05-07 22:37:18 +00:00
|
|
|
PORTVERSION= 2.7.8
|
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
|
|
|
|
2001-10-07 02:03:45 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:21:36 +00:00
|
|
|
COMMENT= Apache module for integrating Python
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2002-09-09 18:30:10 +00:00
|
|
|
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
|
|
|
|
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
|
2000-10-28 01:20:02 +00:00
|
|
|
|
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>
|
|
|
|
|
2001-08-16 09:31:29 +00:00
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
2002-09-09 18:30:10 +00:00
|
|
|
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
2000-10-28 01:20:02 +00:00
|
|
|
|
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}
|
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
|
|
|
|
2001-05-11 12:38:46 +00:00
|
|
|
STRIP_CMD?= strip
|
2001-03-23 00:27:40 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build option:"
|
|
|
|
@${ECHO} ""
|
2001-05-11 12:38:46 +00:00
|
|
|
@${ECHO} " WANT_EAPI=yes build as apache EAPI module (for apache13-modssl)"
|
2001-03-23 00:27:40 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
|
|
|
|
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>
|