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
|
2001-02-24 21:05:26 +00:00
|
|
|
PORTVERSION= 2.7.2
|
2000-10-28 01:20:02 +00:00
|
|
|
CATEGORIES= www python
|
2000-11-15 14:09:37 +00:00
|
|
|
MASTER_SITES= http://www.modpython.org/dist/ \
|
2000-12-27 16:15:55 +00:00
|
|
|
http://www.python.org/ftp/python/2.0/ \
|
|
|
|
http://www3.kr.freebsd.org/~perky/distfiles/
|
2001-01-16 17:33:20 +00:00
|
|
|
DISTFILES= mod_python-${PORTVERSION}.tgz ${PYTHON_DISTFILE}
|
2000-11-15 14:09:37 +00:00
|
|
|
DIST_SUBDIR= python
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2000-11-15 14:09:37 +00:00
|
|
|
MAINTAINER= perky@python.or.kr
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2000-11-15 14:09:37 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
2000-10-28 01:20:02 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
|
|
|
2000-11-15 14:09:37 +00:00
|
|
|
PYTHON_WRKSRC= ${WRKSRC}/../Python-${PYTHON_VERSION:S/python//g}
|
|
|
|
APXS= ${PREFIX}/sbin/apxs
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2000-11-15 14:09:37 +00: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 16:15:55 +00:00
|
|
|
PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR:S/^${LOCALBASE}\///g}
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2000-11-15 14:09:37 +00:00
|
|
|
pre-configure:
|
|
|
|
cd ${PYTHON_WRKSRC} && ./configure --without-threads && cd Modules && ${MAKE} -f Makefile.pre Makefile
|
2000-10-28 01:20:02 +00:00
|
|
|
|
2000-11-15 14:09:37 +00:00
|
|
|
pre-build:
|
|
|
|
cd ${PYTHON_WRKSRC} && ${MAKE}
|
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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|