1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/www/mod_python/Makefile
Hye-Shik Chang 03b2c83164 - Update to 2.7.10 and unmark BROKEN. [1]
- Respect LOCALBASE for APXS location. [2]
- Assign maintainership to submitter. [2]

PR:		63960 [2]
Submitted by:	Simon Barner <barner@in.tum.de> [1],
		Josh Elsasser <jre@vineyard.net> [2]
Requested by:	Hideki Machida <hido@neojapangz.com> [1]
2004-03-11 13:20:01 +00:00

60 lines
1.4 KiB
Makefile

# New ports collection makefile for: mod_python
# Date created: 28 August 2000
# Whom: Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#
PORTNAME= mod_python
PORTVERSION= 2.7.10
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD}
MASTER_SITE_SUBDIR= modpython
EXTRACT_SUFX= .tgz
DIST_SUBDIR= python
MAINTAINER= jre@vineyard.net
COMMENT= Apache module for integrating Python
USE_APACHE= yes
NO_PACKAGE= "Requires Python without threads support"
USE_PYTHON= yes
.include <bsd.port.pre.mk>
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-apxs=${APXS}
CONFIGURE_ENV= PYTHON_BIN=${PYTHON_CMD}
MAKE_ENV= PORTS_APXS=${APXS}
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
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} ""
pre-patch:
.if defined(WANT_EAPI)
cd ${WRKSRC} && ${PATCH} -p2 -s < ${PATCHDIR}/optpatch-WANT_EAPI
.endif
post-configure:
@${SH} ${PKGREQ}.threads ${PYTHON_CMD}
.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
post-build:
.if !defined(DONT_STRIP) && exists(${STRIP_CMD})
${STRIP_CMD} ${WRKSRC}/src/mod_python.so
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>