8e584c45ca
Don't upgrade to this version blindly. External variables handling has been changed. This will break your application if they don't take care of this. There is a CVS tag (BEFORE_PHP_4_2_0) for the latest non-4.2.0 version (4.1.2). ------------------------------------------------------------------------- The biggest change in PHP 4.2.0 concerns variable handling. External variables (from the environment, the HTTP request, cookies or the web server) are no longer registered in the global scope by default. The preferred method of accessing these external variables is by using the new Superglobal arrays, introduced in PHP 4.1.0. More information about this change: * PHP Manual: Predefined variables http://www.php.net/manual/en/html/language.variables.predefined.html
106 lines
2.8 KiB
Makefile
106 lines
2.8 KiB
Makefile
# New ports collection makefile for: mod_php4
|
|
# Date created: Sun May 28 11:31:54 CEST 2000
|
|
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME?= mod_php4
|
|
PORTVERSION= 4.2.0
|
|
PORTREVISION?= 0
|
|
CATEGORIES?= www
|
|
MASTER_SITES= http://us.php.net/${PHP_DISTDIR}/ \
|
|
http://php.he.net/${PHP_DISTDIR}/ \
|
|
http://www.php3.de/${PHP_DISTDIR}/ \
|
|
http://au.php.net/${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}/ \
|
|
http://php3.globe.de/${PHP_DISTDIR}/
|
|
DISTNAME= php-${PORTVERSION}
|
|
|
|
MAINTAINER= dirk@FreeBSD.org
|
|
|
|
.if !defined(STANDALONE)
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
|
.endif
|
|
|
|
PHP_DISTDIR= distributions
|
|
|
|
SLAVEDIRS= lang/php4
|
|
|
|
USE_SUBMAKE= yes
|
|
USE_AUTOCONF_VER=213
|
|
|
|
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
|
|
IS_INTERACTIVE= yes
|
|
.endif
|
|
|
|
.if defined(STANDALONE)
|
|
CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone \
|
|
--disable-pear \
|
|
--enable-discard-path \
|
|
--with-readline=/usr
|
|
|
|
MAKE_ENV= STANDALONE="${STANDALONE}"
|
|
.else
|
|
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \
|
|
--with-config-file-path=${PREFIX}/etc
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+=--enable-versioning \
|
|
--with-regex=system \
|
|
--without-gd \
|
|
--without-mysql
|
|
|
|
CFLAGS+= -I${PREFIX}/include
|
|
|
|
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
|
|
TOUCH="${TOUCH}" \
|
|
MKDIR="${MKDIR}" \
|
|
CAT="${CAT}" \
|
|
PHP4_OPTIONS="${PHP4_OPTIONS}" \
|
|
REALCURDIR="${.CURDIR}"
|
|
|
|
AP_LIBEXEC= ${PREFIX}/libexec/apache
|
|
|
|
PLIST_SUB= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
|
|
|
|
pre-fetch:
|
|
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
|
|
|
|
post-install:
|
|
.if !defined(STANDALONE)
|
|
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
|
|
.else
|
|
@${MKDIR} ${PREFIX}/etc/php.standalone
|
|
@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc/php.standalone
|
|
.endif
|
|
|
|
.if !defined(STANDALONE)
|
|
@${ECHO} "*****************************************************************************"
|
|
@${ECHO} "Make sure the mime.types are connected to the php module properly and"
|
|
@${ECHO} "index.php is part of your DirectoryIndex."
|
|
@${ECHO} ""
|
|
@${ECHO} "The following should be in your Apache configuration file:"
|
|
@${ECHO} "[...]"
|
|
@${ECHO} "DirectoryIndex index.php index.html"
|
|
@${ECHO} "[...]"
|
|
@${ECHO} "AddType application/x-httpd-php .php"
|
|
@${ECHO} "AddType application/x-httpd-php-source .phps"
|
|
@${ECHO} "[...]"
|
|
@${ECHO} "*****************************************************************************"
|
|
.endif
|
|
|
|
post-clean:
|
|
@${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc
|
|
|
|
.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc)
|
|
.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc"
|
|
.endif
|
|
|
|
post-extract: ${POSTEXTRACT}
|
|
|
|
.include <bsd.port.mk>
|