2000-05-29 19:25:07 +00:00
|
|
|
# New ports collection makefile for: mod_php4
|
|
|
|
# Date created: Sun May 28 11:31:54 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-02-25 21:22:04 +00:00
|
|
|
PORTNAME?= mod_php4
|
2002-09-09 08:32:24 +00:00
|
|
|
PORTVERSION= 4.2.3
|
2002-07-22 18:22:14 +00:00
|
|
|
PORTREVISION?= 0
|
2001-02-25 21:22:04 +00:00
|
|
|
CATEGORIES?= www
|
2000-05-29 19:25:07 +00:00
|
|
|
MASTER_SITES= 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}/ \
|
2001-05-10 08:24:36 +00:00
|
|
|
http://au.php.net/${PHP_DISTDIR}/ \
|
1999-08-19 11:26:48 +00:00
|
|
|
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:25:07 +00:00
|
|
|
http://php3.globe.de/${PHP_DISTDIR}/
|
2000-10-12 09:48:55 +00:00
|
|
|
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-02-25 21:22:04 +00:00
|
|
|
.if !defined(STANDALONE)
|
2002-09-10 11:26:49 +00:00
|
|
|
BUILD_DEPENDS= ${APXS}:${APACHE_PORT}
|
|
|
|
RUN_DEPENDS= ${APXS}:${APACHE_PORT}
|
2002-05-01 10:56:02 +00:00
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
LIB_DEPENDS= pth.14:${PORTSDIR}/devel/pth
|
2001-02-25 21:22:04 +00:00
|
|
|
.endif
|
2002-05-01 10:56:02 +00:00
|
|
|
.endif
|
2000-05-28 15:04:39 +00:00
|
|
|
|
2000-06-30 13:01:26 +00:00
|
|
|
PHP_DISTDIR= distributions
|
1999-08-19 11:26:48 +00:00
|
|
|
|
2001-02-25 21:22:04 +00:00
|
|
|
SLAVEDIRS= lang/php4
|
|
|
|
|
2002-05-13 06:20:06 +00:00
|
|
|
USE_BZIP2= yes
|
2002-03-25 09:19:20 +00:00
|
|
|
USE_SUBMAKE= yes
|
2002-01-06 06:20:22 +00:00
|
|
|
USE_AUTOCONF_VER=213
|
2002-09-10 11:26:49 +00:00
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
APACHE_PORT?= ${PORTSDIR}/www/apache2
|
|
|
|
.else
|
|
|
|
APACHE_PORT?= ${PORTSDIR}/www/apache13
|
|
|
|
.endif
|
|
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
2001-02-25 21:22:04 +00:00
|
|
|
|
2001-08-22 20:13:50 +00:00
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
.endif
|
|
|
|
|
2001-02-25 21:22:04 +00:00
|
|
|
.if defined(STANDALONE)
|
2001-06-24 22:36:34 +00:00
|
|
|
CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone \
|
2001-12-04 07:27:41 +00:00
|
|
|
--disable-pear \
|
|
|
|
--enable-discard-path \
|
|
|
|
--with-readline=/usr
|
2001-12-19 19:48:41 +00:00
|
|
|
|
|
|
|
MAKE_ENV= STANDALONE="${STANDALONE}"
|
2001-02-25 21:22:04 +00:00
|
|
|
.else
|
2002-05-01 10:56:02 +00:00
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
CONFIGURE_ARGS= --with-apxs2=${PREFIX}/sbin/apxs \
|
|
|
|
--with-tsrm-pth
|
2002-05-11 16:49:32 +00:00
|
|
|
PLIST_SUB= MOD_DIR=libexec/apache2 \
|
|
|
|
NON=
|
2002-05-01 10:56:02 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs
|
2002-05-11 16:49:32 +00:00
|
|
|
PLIST_SUB= MOD_DIR=libexec/apache \
|
|
|
|
NON=non-
|
2002-05-01 10:56:02 +00:00
|
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+=--with-config-file-path=${PREFIX}/etc
|
2001-02-25 21:22:04 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--enable-versioning \
|
2002-04-16 10:58:19 +00:00
|
|
|
--with-regex=system \
|
2000-04-04 20:22:19 +00:00
|
|
|
--without-gd \
|
2000-10-12 09:48:55 +00:00
|
|
|
--without-mysql
|
1998-06-14 09:58:22 +00:00
|
|
|
|
2001-12-21 15:28:06 +00:00
|
|
|
CFLAGS+= -I${PREFIX}/include
|
|
|
|
|
2000-05-29 19:25:07 +00:00
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
|
|
TOUCH="${TOUCH}" \
|
2000-12-13 08:43:16 +00:00
|
|
|
MKDIR="${MKDIR}" \
|
2001-02-25 21:22:04 +00:00
|
|
|
CAT="${CAT}" \
|
2002-01-09 06:45:47 +00:00
|
|
|
PHP4_OPTIONS="${PHP4_OPTIONS}" \
|
2001-02-25 21:22:04 +00:00
|
|
|
REALCURDIR="${.CURDIR}"
|
2000-05-29 19:25:07 +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
|
2002-05-01 10:56:02 +00:00
|
|
|
.if !defined(STANDALONE) && !defined(WITH_APACHE2)
|
|
|
|
@${ECHO_CMD} "Define WITH_APACHE2 to build mod_php4 as an apache2 module."
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
.endif
|
1996-05-20 07:37:06 +00:00
|
|
|
|
1996-06-15 16:58:09 +00:00
|
|
|
post-install:
|
2001-02-25 21:22:04 +00:00
|
|
|
.if !defined(STANDALONE)
|
2000-05-29 19:25:07 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
|
2001-02-25 21:22:04 +00:00
|
|
|
.else
|
|
|
|
@${MKDIR} ${PREFIX}/etc/php.standalone
|
2001-03-04 18:44:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/php.standalone
|
2001-02-25 21:22:04 +00:00
|
|
|
.endif
|
1998-07-25 11:30:31 +00:00
|
|
|
|
2001-02-25 21:22:04 +00:00
|
|
|
.if !defined(STANDALONE)
|
2002-05-01 10:48:54 +00:00
|
|
|
@${ECHO_CMD} "*****************************************************************************"
|
|
|
|
@${ECHO_CMD} "Make sure the mime.types are connected to the php module properly and"
|
|
|
|
@${ECHO_CMD} "index.php is part of your DirectoryIndex."
|
|
|
|
@${ECHO_CMD} ""
|
|
|
|
@${ECHO_CMD} "The following should be in your Apache configuration file:"
|
|
|
|
@${ECHO_CMD} "[...]"
|
|
|
|
@${ECHO_CMD} "DirectoryIndex index.php index.html"
|
|
|
|
@${ECHO_CMD} "[...]"
|
|
|
|
@${ECHO_CMD} "AddType application/x-httpd-php .php"
|
|
|
|
@${ECHO_CMD} "AddType application/x-httpd-php-source .phps"
|
|
|
|
@${ECHO_CMD} "[...]"
|
|
|
|
@${ECHO_CMD} "*****************************************************************************"
|
2001-02-25 21:22:04 +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-25 23:43:27 +00:00
|
|
|
|
1995-08-28 13:28:45 +00:00
|
|
|
.include <bsd.port.mk>
|