2000-05-29 19:24:19 +00:00
|
|
|
# New ports collection makefile for: mod_php3
|
|
|
|
# Date created: Wed Feb 23 11:28:12 CEST 2000
|
|
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
1999-08-31 02:43:35 +00:00
|
|
|
# $FreeBSD$
|
1995-08-28 13:28:45 +00:00
|
|
|
#
|
|
|
|
|
2001-03-04 18:27:57 +00:00
|
|
|
PORTNAME?= mod_php3
|
2001-02-05 15:33:58 +00:00
|
|
|
PORTVERSION= 3.0.18
|
2001-04-22 23:08:06 +00:00
|
|
|
PORTREVISION= 2
|
2001-03-04 18:27:57 +00:00
|
|
|
CATEGORIES?= www
|
2000-05-29 19:24:19 +00:00
|
|
|
MASTER_SITES= ftp://ftp.php.net/pub/${PHP_DISTDIR}/ \
|
1999-09-19 14:21:08 +00:00
|
|
|
http://us.php.net/${PHP_DISTDIR}/ \
|
1999-08-19 11:26:48 +00:00
|
|
|
http://php.he.net/${PHP_DISTDIR}/ \
|
|
|
|
http://www.php3.de/${PHP_DISTDIR}/ \
|
|
|
|
http://au.php.net:81/${PHP_DISTDIR}/ \
|
|
|
|
http://at.php.net/${PHP_DISTDIR}/ \
|
|
|
|
http://br.php.net/${PHP_DISTDIR}/ \
|
|
|
|
http://php.easydns.com/${PHP_DISTDIR}/ \
|
|
|
|
http://www.php.cz/${PHP_DISTDIR}/ \
|
2000-05-29 19:24:19 +00:00
|
|
|
http://php3.globe.de/${PHP_DISTDIR}/
|
|
|
|
DISTNAME= php-${PORTVERSION}
|
1995-08-28 13:28:45 +00:00
|
|
|
|
1999-08-16 18:41:13 +00:00
|
|
|
MAINTAINER= dirk@FreeBSD.org
|
1997-09-03 18:45:16 +00:00
|
|
|
|
2001-03-04 18:27:57 +00:00
|
|
|
.if !defined(STANDALONE)
|
2000-05-29 19:24:19 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
2001-03-04 18:27:57 +00:00
|
|
|
.endif
|
2000-05-28 15:04:39 +00:00
|
|
|
|
1999-08-19 11:26:48 +00:00
|
|
|
PHP_DISTDIR= distributions
|
|
|
|
|
2001-03-04 18:27:57 +00:00
|
|
|
SLAVEDIRS= lang/php3
|
|
|
|
|
2000-05-29 19:24:19 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2001-03-04 18:27:57 +00:00
|
|
|
|
|
|
|
.if defined(STANDALONE)
|
|
|
|
CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone
|
|
|
|
.else
|
2001-01-21 14:22:06 +00:00
|
|
|
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \
|
2001-03-04 18:27:57 +00:00
|
|
|
--with-config-file-path=${PREFIX}/etc
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-versioning \
|
1998-07-25 11:30:31 +00:00
|
|
|
--with-system-regex \
|
1998-09-30 18:16:08 +00:00
|
|
|
--disable-debug \
|
1999-08-26 21:18:15 +00:00
|
|
|
--enable-track-vars \
|
|
|
|
--without-gd
|
1998-06-14 09:58:22 +00:00
|
|
|
|
2000-05-29 19:24:19 +00:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
2001-03-04 18:27:57 +00:00
|
|
|
MKDIR="${MKDIR}" \
|
|
|
|
CAT="${CAT}" \
|
|
|
|
REALCURDIR="${.CURDIR}"
|
2000-05-29 19:24:19 +00:00
|
|
|
|
|
|
|
AP_LIBEXEC= ${PREFIX}/libexec/apache
|
|
|
|
|
2001-04-22 23:08:06 +00:00
|
|
|
PLIST_SUB= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
|
2000-05-29 19:24:19 +00:00
|
|
|
|
1999-06-10 10:24:41 +00:00
|
|
|
pre-fetch:
|
1998-09-01 18:38:05 +00:00
|
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
|
1996-05-20 07:37:06 +00:00
|
|
|
|
1996-06-15 16:58:09 +00:00
|
|
|
post-install:
|
2001-03-04 18:27:57 +00:00
|
|
|
.if !defined(STANDALONE)
|
2000-05-29 19:24:19 +00:00
|
|
|
@${ECHO} "Restarting Apache..."
|
|
|
|
@${PREFIX}/sbin/apachectl restart
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/etc
|
2001-03-04 18:27:57 +00:00
|
|
|
.else
|
|
|
|
@${MKDIR} ${PREFIX}/etc/php.standalone
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/php3.ini-dist ${PREFIX}/etc/php.standalone
|
|
|
|
.endif
|
1998-07-25 11:30:31 +00:00
|
|
|
|
2001-03-04 18:27:57 +00:00
|
|
|
.if !defined(STANDALONE)
|
2000-05-29 19:24:19 +00:00
|
|
|
@${ECHO} "*****************************************************************************"
|
|
|
|
@${ECHO} "Make sure the mime.types are connected to the php module properly and"
|
|
|
|
@${ECHO} "index.php3 is part of your DirectoryIndex."
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "The following should be in your Apache configuration file:"
|
|
|
|
@${ECHO} "[...]"
|
|
|
|
@${ECHO} "DirectoryIndex index.php3 index.html"
|
|
|
|
@${ECHO} "[...]"
|
|
|
|
@${ECHO} "AddType application/x-httpd-php3 .php3"
|
|
|
|
@${ECHO} "AddType application/x-httpd-php3-source .php3s"
|
|
|
|
@${ECHO} "[...]"
|
|
|
|
@${ECHO} "*****************************************************************************"
|
2001-03-04 18:27:57 +00:00
|
|
|
.endif
|
1996-06-15 16:58:09 +00:00
|
|
|
|
2000-04-04 20:32:22 +00:00
|
|
|
post-clean:
|
1998-12-23 00:44:50 +00:00
|
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
1998-09-01 18:38:05 +00:00
|
|
|
|
1998-12-23 00:44:50 +00:00
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
1998-09-01 18:38:05 +00:00
|
|
|
.endif
|
2000-02-22 07:26:35 +00:00
|
|
|
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|