2000-10-27 21:20:02 -04:00
|
|
|
# New ports collection makefile for: mod_python
|
|
|
|
# Date created: 28 August 2000
|
2000-11-15 09:09:37 -05:00
|
|
|
# Whom: Hye-Shik Chang <perky@python.or.kr>
|
2000-10-27 21:20:02 -04:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mod_python
|
2001-02-24 16:05:26 -05:00
|
|
|
PORTVERSION= 2.7.2
|
2000-10-27 21:20:02 -04:00
|
|
|
CATEGORIES= www python
|
2000-11-15 09:09:37 -05:00
|
|
|
MASTER_SITES= http://www.modpython.org/dist/ \
|
2000-12-27 11:15:55 -05:00
|
|
|
http://www.python.org/ftp/python/2.0/ \
|
|
|
|
http://www3.kr.freebsd.org/~perky/distfiles/
|
2001-01-16 12:33:20 -05:00
|
|
|
DISTFILES= mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE}
|
2000-11-15 09:09:37 -05:00
|
|
|
DIST_SUBDIR= python
|
2000-10-27 21:20:02 -04:00
|
|
|
|
2000-11-15 09:09:37 -05:00
|
|
|
MAINTAINER= perky@python.or.kr
|
2000-10-27 21:20:02 -04:00
|
|
|
|
2000-11-15 09:09:37 -05:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
2000-10-27 21:20:02 -04:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
|
|
|
2000-11-15 09:09:37 -05:00
|
|
|
PYTHON_WRKSRC= ${WRKSRC}/../Python-${PYTHON_VERSION:S/python//g}
|
|
|
|
APXS= ${PREFIX}/sbin/apxs
|
2000-10-27 21:20:02 -04:00
|
|
|
|
2000-11-15 09:09:37 -05:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_PYTHON= yes
|
|
|
|
CONFIGURE_ARGS= --with-apxs=${LOCALBASE}/sbin/apxs \
|
|
|
|
--with-python=${PYTHON_WRKSRC}
|
|
|
|
CONFIGURE_ENV= PYTHON_BIN=${LOCALBASE}/bin/python
|
2000-12-27 11:15:55 -05:00
|
|
|
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
2000-10-27 21:20:02 -04:00
|
|
|
|
2000-11-15 09:09:37 -05:00
|
|
|
pre-configure:
|
|
|
|
cd ${PYTHON_WRKSRC} && ./configure --without-threads && cd Modules && ${MAKE} -f Makefile.pre Makefile
|
2000-10-27 21:20:02 -04:00
|
|
|
|
2000-11-15 09:09:37 -05:00
|
|
|
pre-build:
|
|
|
|
cd ${PYTHON_WRKSRC} && ${MAKE}
|
2000-10-27 21:20:02 -04:00
|
|
|
|
|
|
|
post-install:
|
2000-11-15 09:09:37 -05:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-10-27 21:20:02 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|