head	1.135;
access;
symbols
	RELEASE_8_3_0:1.134
	RELEASE_9_0_0:1.133
	RELEASE_7_4_0:1.132
	RELEASE_8_2_0:1.132
	RELEASE_6_EOL:1.131
	RELEASE_8_1_0:1.129
	RELEASE_7_3_0:1.125
	RELEASE_8_0_0:1.125
	RELEASE_7_2_0:1.125
	RELEASE_7_1_0:1.123
	RELEASE_6_4_0:1.123
	RELEASE_5_EOL:1.120
	RELEASE_7_0_0:1.118
	RELEASE_6_3_0:1.118
	PRE_XORG_7:1.113
	RELEASE_4_EOL:1.107
	RELEASE_6_2_0:1.106
	RELEASE_6_1_0:1.99
	RELEASE_5_5_0:1.99
	RELEASE_6_0_0:1.88
	RELEASE_5_4_0:1.84
	RELEASE_4_11_0:1.81
	RELEASE_5_3_0:1.78
	RELEASE_4_10_0:1.64
	RELEASE_5_2_1:1.38
	RELEASE_5_2_0:1.38
	RELEASE_4_9_0:1.26
	RELEASE_5_1_0:1.10
	RELEASE_5_0_0:1.8
	RELEASE_4_7_0:1.8
	RELEASE_4_6_2:1.8
	RELEASE_4_6_1:1.8
	RELEASE_4_6_0:1.8
	RELEASE_5_0_DP1:1.6
	RELEASE_4_5_0:1.6
	RELEASE_4_4_0:1.4
	RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.135
date	2012.05.11.19.36.46;	author bapt;	state dead;
branches;
next	1.134;

1.134
date	2012.01.01.16.47.33;	author ohauer;	state Exp;
branches;
next	1.133;

1.133
date	2011.08.20.17.27.32;	author ohauer;	state Exp;
branches;
next	1.132;

1.132
date	2010.12.04.07.32.23;	author ade;	state Exp;
branches;
next	1.131;

1.131
date	2010.10.16.11.52.15;	author ade;	state Exp;
branches;
next	1.130;

1.130
date	2010.09.15.18.34.38;	author ade;	state Exp;
branches;
next	1.129;

1.129
date	2010.05.31.01.59.33;	author ade;	state Exp;
branches;
next	1.128;

1.128
date	2010.04.19.13.27.44;	author ale;	state Exp;
branches;
next	1.127;

1.127
date	2010.04.05.18.57.38;	author dinoex;	state Exp;
branches;
next	1.126;

1.126
date	2010.04.03.10.44.18;	author roam;	state Exp;
branches;
next	1.125;

1.125
date	2009.01.02.14.25.10;	author ale;	state Exp;
branches;
next	1.124;

1.124
date	2008.09.23.05.40.46;	author ale;	state Exp;
branches;
next	1.123;

1.123
date	2008.08.26.06.49.35;	author ale;	state Exp;
branches;
next	1.122;

1.122
date	2008.08.21.23.33.19;	author ade;	state Exp;
branches;
next	1.121;

1.121
date	2008.08.20.00.56.52;	author ade;	state Exp;
branches;
next	1.120;

1.120
date	2008.03.20.09.51.33;	author pav;	state Exp;
branches;
next	1.119;

1.119
date	2008.01.12.17.40.10;	author ale;	state Exp;
branches;
next	1.118;

1.118
date	2007.10.03.23.22.03;	author edwin;	state Exp;
branches;
next	1.117;

1.117
date	2007.09.30.04.47.00;	author linimon;	state Exp;
branches;
next	1.116;

1.116
date	2007.07.28.06.33.53;	author ade;	state Exp;
branches;
next	1.115;

1.115
date	2007.06.20.06.01.50;	author ale;	state Exp;
branches;
next	1.114;

1.114
date	2007.05.20.08.28.33;	author ale;	state Exp;
branches;
next	1.113;

1.113
date	2007.03.04.11.33.14;	author ale;	state Exp;
branches;
next	1.112;

1.112
date	2007.02.28.01.19.00;	author kuriyama;	state Exp;
branches;
next	1.111;

1.111
date	2007.02.20.06.56.05;	author ale;	state Exp;
branches;
next	1.110;

1.110
date	2007.02.17.10.18.31;	author ale;	state Exp;
branches;
next	1.109;

1.109
date	2007.02.07.15.55.17;	author ale;	state Exp;
branches;
next	1.108;

1.108
date	2007.01.29.23.51.52;	author kris;	state Exp;
branches;
next	1.107;

1.107
date	2006.12.10.15.04.41;	author ale;	state Exp;
branches;
next	1.106;

1.106
date	2006.10.16.09.30.58;	author ale;	state Exp;
branches;
next	1.105;

1.105
date	2006.09.29.19.11.40;	author ale;	state Exp;
branches;
next	1.104;

1.104
date	2006.09.09.12.35.33;	author ale;	state Exp;
branches;
next	1.103;

1.103
date	2006.09.04.07.58.58;	author ale;	state Exp;
branches;
next	1.102;

1.102
date	2006.08.18.16.22.31;	author delphij;	state Exp;
branches;
next	1.101;

1.101
date	2006.08.07.03.27.15;	author delphij;	state Exp;
branches;
next	1.100;

1.100
date	2006.05.06.13.26.46;	author ale;	state Exp;
branches;
next	1.99;

1.99
date	2006.01.31.08.36.02;	author ale;	state Exp;
branches;
next	1.98;

1.98
date	2006.01.30.15.57.38;	author ale;	state Exp;
branches;
next	1.97;

1.97
date	2006.01.16.09.40.31;	author ale;	state Exp;
branches;
next	1.96;

1.96
date	2005.12.09.19.36.40;	author ale;	state Exp;
branches;
next	1.95;

1.95
date	2005.12.04.00.18.08;	author clement;	state Exp;
branches;
next	1.94;

1.94
date	2005.11.30.05.23.06;	author kuriyama;	state Exp;
branches;
next	1.93;

1.93
date	2005.11.16.08.24.46;	author ale;	state Exp;
branches;
next	1.92;

1.92
date	2005.11.04.08.39.28;	author ale;	state Exp;
branches;
next	1.91;

1.91
date	2005.11.01.16.01.07;	author ale;	state Exp;
branches;
next	1.90;

1.90
date	2005.10.14.06.18.06;	author ale;	state Exp;
branches;
next	1.89;

1.89
date	2005.09.20.19.46.15;	author clement;	state Exp;
branches;
next	1.88;

1.88
date	2005.07.13.19.56.27;	author ale;	state Exp;
branches;
next	1.87;

1.87
date	2005.06.14.20.38.26;	author ale;	state Exp;
branches;
next	1.86;

1.86
date	2005.05.17.16.09.29;	author sem;	state Exp;
branches;
next	1.85;

1.85
date	2005.04.04.09.20.19;	author ale;	state Exp;
branches;
next	1.84;

1.84
date	2005.03.14.14.41.01;	author ale;	state Exp;
branches;
next	1.83;

1.83
date	2005.01.19.16.13.55;	author ale;	state Exp;
branches;
next	1.82;

1.82
date	2005.01.10.17.00.34;	author ale;	state Exp;
branches;
next	1.81;

1.81
date	2004.12.16.11.37.23;	author ale;	state Exp;
branches;
next	1.80;

1.80
date	2004.12.06.10.01.54;	author kuriyama;	state Exp;
branches;
next	1.79;

1.79
date	2004.12.03.13.19.31;	author ale;	state Exp;
branches;
next	1.78;

1.78
date	2004.10.11.19.47.19;	author ale;	state Exp;
branches;
next	1.77;

1.77
date	2004.07.28.08.59.35;	author ale;	state Exp;
branches;
next	1.76;

1.76
date	2004.07.19.22.12.09;	author ale;	state Exp;
branches;
next	1.75;

1.75
date	2004.07.19.07.05.32;	author ale;	state Exp;
branches;
next	1.74;

1.74
date	2004.07.15.08.41.30;	author ale;	state Exp;
branches;
next	1.73;

1.73
date	2004.06.28.09.02.19;	author ale;	state Exp;
branches;
next	1.72;

1.72
date	2004.06.25.11.19.48;	author ale;	state Exp;
branches;
next	1.71;

1.71
date	2004.06.04.17.29.23;	author ade;	state Exp;
branches;
next	1.70;

1.70
date	2004.06.03.22.41.38;	author roam;	state Exp;
branches;
next	1.69;

1.69
date	2004.06.03.16.27.01;	author ale;	state Exp;
branches;
next	1.68;

1.68
date	2004.05.29.22.42.58;	author anholt;	state Exp;
branches;
next	1.67;

1.67
date	2004.05.25.09.19.41;	author mat;	state Exp;
branches;
next	1.66;

1.66
date	2004.05.24.13.37.35;	author knu;	state Exp;
branches;
next	1.65;

1.65
date	2004.05.07.23.30.28;	author ale;	state Exp;
branches;
next	1.64;

1.64
date	2004.04.16.07.44.34;	author ale;	state Exp;
branches;
next	1.63;

1.63
date	2004.03.30.19.20.20;	author krion;	state Exp;
branches;
next	1.62;

1.62
date	2004.03.28.22.09.22;	author ale;	state Exp;
branches;
next	1.61;

1.61
date	2004.03.26.16.44.25;	author ale;	state Exp;
branches;
next	1.60;

1.60
date	2004.03.22.19.55.23;	author ale;	state Exp;
branches;
next	1.59;

1.59
date	2004.03.14.07.58.21;	author kuriyama;	state Exp;
branches;
next	1.58;

1.58
date	2004.03.13.22.35.17;	author ale;	state Exp;
branches;
next	1.57;

1.57
date	2004.03.08.23.12.47;	author ale;	state Exp;
branches;
next	1.56;

1.56
date	2004.02.27.07.45.21;	author ale;	state Exp;
branches;
next	1.55;

1.55
date	2004.02.23.04.41.01;	author wollman;	state Exp;
branches;
next	1.54;

1.54
date	2004.02.12.14.24.55;	author ale;	state Exp;
branches;
next	1.53;

1.53
date	2004.02.10.11.44.00;	author ale;	state Exp;
branches;
next	1.52;

1.52
date	2004.02.09.10.02.44;	author ale;	state Exp;
branches;
next	1.51;

1.51
date	2004.02.04.04.36.05;	author marcus;	state Exp;
branches;
next	1.50;

1.50
date	2004.01.30.09.59.33;	author ale;	state Exp;
branches;
next	1.49;

1.49
date	2004.01.26.12.58.14;	author ale;	state Exp;
branches;
next	1.48;

1.48
date	2004.01.24.13.15.54;	author ale;	state Exp;
branches;
next	1.47;

1.47
date	2004.01.23.18.12.00;	author trevor;	state Exp;
branches;
next	1.46;

1.46
date	2004.01.18.10.50.15;	author ale;	state Exp;
branches;
next	1.45;

1.45
date	2004.01.15.23.31.49;	author ale;	state Exp;
branches;
next	1.44;

1.44
date	2004.01.14.15.09.25;	author ale;	state Exp;
branches;
next	1.43;

1.43
date	2004.01.10.16.53.01;	author nork;	state Exp;
branches;
next	1.42;

1.42
date	2003.12.22.19.02.16;	author nork;	state Exp;
branches;
next	1.41;

1.41
date	2003.12.22.19.01.04;	author nork;	state Exp;
branches;
next	1.40;

1.40
date	2003.12.14.11.04.50;	author oliver;	state Exp;
branches;
next	1.39;

1.39
date	2003.12.04.20.55.20;	author dinoex;	state Exp;
branches;
next	1.38;

1.38
date	2003.11.20.11.07.33;	author jeh;	state Exp;
branches;
next	1.37;

1.37
date	2003.11.18.03.19.37;	author kuriyama;	state Exp;
branches;
next	1.36;

1.36
date	2003.11.17.11.40.14;	author jeh;	state Exp;
branches;
next	1.35;

1.35
date	2003.11.07.09.12.48;	author marcus;	state Exp;
branches;
next	1.34;

1.34
date	2003.11.05.11.06.58;	author jeh;	state Exp;
branches;
next	1.33;

1.33
date	2003.11.04.18.30.48;	author marcus;	state Exp;
branches;
next	1.32;

1.32
date	2003.10.13.05.59.45;	author dinoex;	state Exp;
branches;
next	1.31;

1.31
date	2003.10.07.19.38.47;	author dinoex;	state Exp;
branches;
next	1.30;

1.30
date	2003.10.07.16.45.15;	author dinoex;	state Exp;
branches;
next	1.29;

1.29
date	2003.10.01.11.34.23;	author dinoex;	state Exp;
branches;
next	1.28;

1.28
date	2003.09.30.11.50.25;	author nork;	state Exp;
branches;
next	1.27;

1.27
date	2003.09.26.23.38.34;	author edwin;	state Exp;
branches;
next	1.26;

1.26
date	2003.08.26.15.58.48;	author nork;	state Exp;
branches;
next	1.25;

1.25
date	2003.08.25.05.41.28;	author marcus;	state Exp;
branches;
next	1.24;

1.24
date	2003.08.19.01.57.50;	author nork;	state Exp;
branches;
next	1.23;

1.23
date	2003.08.15.00.49.25;	author kuriyama;	state Exp;
branches;
next	1.22;

1.22
date	2003.08.02.22.34.54;	author marcus;	state Exp;
branches;
next	1.21;

1.21
date	2003.08.01.07.41.35;	author oliver;	state Exp;
branches;
next	1.20;

1.20
date	2003.07.31.07.57.01;	author nork;	state Exp;
branches;
next	1.19;

1.19
date	2003.07.04.02.26.08;	author nork;	state Exp;
branches;
next	1.18;

1.18
date	2003.07.03.06.01.36;	author nork;	state Exp;
branches;
next	1.17;

1.17
date	2003.06.25.01.35.17;	author nork;	state Exp;
branches;
next	1.16;

1.16
date	2003.06.24.08.16.25;	author nork;	state Exp;
branches;
next	1.15;

1.15
date	2003.06.23.13.06.55;	author nork;	state Exp;
branches;
next	1.14;

1.14
date	2003.06.20.05.25.23;	author nork;	state Exp;
branches;
next	1.13;

1.13
date	2003.06.07.20.45.10;	author nork;	state Exp;
branches;
next	1.12;

1.12
date	2003.06.06.18.07.54;	author nork;	state Exp;
branches;
next	1.11;

1.11
date	2003.06.06.17.58.15;	author nork;	state Exp;
branches;
next	1.10;

1.10
date	2003.05.22.18.26.28;	author nork;	state Exp;
branches;
next	1.9;

1.9
date	2003.01.29.15.19.15;	author dirk;	state dead;
branches;
next	1.8;

1.8
date	2002.05.17.06.07.00;	author dirk;	state Exp;
branches;
next	1.7;

1.7
date	2002.05.13.05.58.05;	author dirk;	state Exp;
branches;
next	1.6;

1.6
date	2001.12.19.19.49.22;	author dirk;	state Exp;
branches;
next	1.5;

1.5
date	2001.12.04.07.27.41;	author dirk;	state Exp;
branches;
next	1.4;

1.4
date	2001.06.25.21.06.10;	author dirk;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.24.22.37.25;	author dirk;	state Exp;
branches;
next	1.2;

1.2
date	2001.04.22.23.09.14;	author dirk;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.25.21.25.26;	author dirk;	state Exp;
branches;
next	;


desc
@@


1.135
log
@2012-05-10 archivers/php4-bz2: php4 is EOLed
2012-05-10 archivers/php4-zlib: php4 is EOLed
2012-05-10 converters/php4-iconv: php4 is EOLed
2012-05-10 converters/php4-mbstring: php4 is EOLed
2012-05-10 converters/php4-recode: php4 is EOLed
2012-05-10 databases/php4-dba: php4 is EOLed
2012-05-10 databases/php4-dbase: php4 is EOLed
2012-05-10 databases/php4-dbx: php4 is EOLed
2012-05-10 databases/php4-filepro: php4 is EOLed
2012-05-10 databases/php4-interbase: php4 is EOLed
2012-05-10 databases/php4-mssql: php4 is EOLed
2012-05-10 databases/php4-mysql: php4 is EOLed
2012-05-10 databases/php4-odbc: php4 is EOLed
2012-05-10 databases/php4-oracle: php4 is EOLed
2012-05-10 databases/php4-pgsql: php4 is EOLed
databases/php4-rrdtool: php4 is EOLed
2012-05-10 databases/php4-sybase_ct: php4 is EOLed
2012-05-10 devel/php4-dio: php4 is EOLed
2012-05-10 devel/php4-gettext: php4 is EOLed
2012-05-10 devel/php4-mcve: php4 is EOLed
2012-05-10 devel/php4-ncurses: php4 is EOLed
2012-05-10 devel/php4-pcntl: php4 is EOLed
2012-05-10 devel/php4-pcre: php4 is EOLed
2012-05-10 devel/php4-readline: php4 is EOLed
2012-05-10 devel/php4-shmop: php4 is EOLed
2012-05-10 devel/php4-sysvmsg: php4 is EOLed
2012-05-10 devel/php4-sysvsem: php4 is EOLed
2012-05-10 devel/php4-sysvshm: php4 is EOLed
2012-05-10 devel/php4-tokenizer: php4 is EOLed
2012-05-10 finance/php4-pfpro: php4 is EOLed
2012-05-10 ftp/php4-curl: php4 is EOLed
2012-05-10 ftp/php4-ftp: php4 is EOLed
2012-05-10 graphics/php4-chartdirector: php4 is EOLed
2012-05-10 graphics/php4-exif: php4 is EOLed
2012-05-10 graphics/php4-gd: php4 is EOLed
lang/php4: php4 is EOLed
2012-05-10 lang/php4-extensions: php4 is EOLed
2012-05-10 lang/php4-overload: php4 is EOLed
2012-05-10 mail/php4-imap: php4 is EOLed
2012-05-10 math/php4-bcmath: php4 is EOLed
2012-05-10 math/php4-gmp: php4 is EOLed
2012-05-10 misc/php4-calendar: php4 is EOLed
2012-05-10 misc/php4-mcal: php4 is EOLed
2012-05-10 net/php4-ldap: php4 is EOLed
2012-05-10 net/php4-sockets: php4 is EOLed
2012-05-10 net/php4-xmlrpc: php4 is EOLed
2012-05-10 net/php4-yp: php4 is EOLed
2012-05-10 net-mgmt/php4-snmp: php4 is EOLed
2012-05-10 security/php4-crack: php4 is EOLed
2012-05-10 security/php4-mcrypt: php4 is EOLed
2012-05-10 security/php4-mhash: php4 is EOLed
2012-05-10 security/php4-openssl: php4 is EOLed
2012-05-10 sysutils/php4-posix: php4 is EOLed
2012-05-10 textproc/php4-ctype: php4 is EOLed
2012-05-10 textproc/php4-domxml: php4 is EOLed
2012-05-10 textproc/php4-pspell: php4 is EOLed
2012-05-10 textproc/php4-wddx: php4 is EOLed
2012-05-10 textproc/php4-xml: php4 is EOLed
2012-05-10 textproc/php4-xslt: php4 is EOLed
2012-05-10 www/php4-session: php4 is EOLed
2012-05-10 archivers/pecl-zip: php4 is EOLed
2012-05-10 databases/pecl-sqlite: php4 is EOLed
2012-05-11 devel/pear-XML_XPath: php4 is EOLed
2012-05-11 devel/pecl-json: php4 is EOLed
2012-05-10 www/pecl-tidy: php4 is EOLed
2012-05-10 www/php-dyn: php4 is EOLed
2012-05-11 security/pecl-hash: php4 is EOLed
2012-05-11 net/phpldapadmin098: php4 is EOLed
graphics/jpgraph: php4 is EOLed
@
text
@# New ports collection makefile for:	php4
# Date created:				Tue Feb 18 11:17:13 CET 2003
# Whom:					Alex Dupre <sysadmin@@alexdupre.com>
#
# $FreeBSD: ports/lang/php4/Makefile,v 1.134 2012/01/01 16:47:33 ohauer Exp $
#

PORTNAME=	php4
PORTVERSION=	4.4.9
PORTREVISION?=	5
CATEGORIES?=	lang devel www
MASTER_SITES=	${MASTER_SITE_PHP:S,$,:release,} \
		http://downloads.php.net/ilia/:rc \
		http://downloads.php.net/jani/:rc
MASTER_SITE_SUBDIR=	distributions/:release
DISTNAME=	php-${PORTVERSION:S/.r/RC/}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:release

MAINTAINER?=	ale@@FreeBSD.org
COMMENT?=	PHP Scripting Language

LATEST_LINK=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}

USE_BZIP2=	yes
.if !defined(PKGNAMESUFFIX)
USE_AUTOTOOLS=	autoconf

CONFIGURE_ARGS=	--enable-versioning \
		--enable-memory-limit \
		--with-layout=GNU \
		--with-config-file-scan-dir=${PREFIX}/etc/php \
		--disable-all \
		--program-prefix=""

OPTIONS=	CLI "Build CLI version" on \
		CGI "Build CGI version" on \
		APACHE "Build Apache module" off \
		DEBUG "Enable debug" off \
		SUHOSIN "Enable Suhosin protection system (not for jails)" on \
		MULTIBYTE "Enable zend multibyte support" off \
		IPV6 "Enable ipv6 support" on \
		MAILHEAD "Enable mail header patch" off \
		REDIRECT "Enable force-cgi-redirect support (CGI only)" off \
		DISCARD "Enable discard-path support (CGI only)" off \
		FASTCGI "Enable fastcgi support (CGI only)" on \
		PATHINFO "Enable path-info-check support (CGI only)" on \
		OPENSSL "Build static OpenSSL extension" off \
		ZLIB "Build static zlib extension" off

CONFLICTS=	php5-5*

MAN1=		php-config.1 phpize.1

.include <bsd.port.pre.mk>

PATCH_DIST_STRIP=	-p1

.if !defined(WITHOUT_SUHOSIN)
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.6.patch.gz:suhosin
PATCH_SITES+=	http://download.suhosin.org/:suhosin
PLIST_SUB+=	SUHOSIN=""
.else
PLIST_SUB+=	SUHOSIN="@@comment "
.endif

.if defined(WITH_MAILHEAD)
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
PATCH_SITES+=	http://choon.net/opensource/php/:mail
.endif

.if !defined(WITHOUT_CLI)
PHP_SAPI+=	cli
PLIST_SUB+=	CLI=""
MAN1+=		php.1
.else
PLIST_SUB+=	CLI="@@comment "
CONFIGURE_ARGS+=--disable-cli
.endif

.if !defined(WITHOUT_CGI)
PHP_SAPI+=	cgi
PLIST_SUB+=	CGI=""
.if defined(WITH_REDIRECT)
CONFIGURE_ARGS+=--enable-force-cgi-redirect
.endif
.if defined(WITH_DISCARD)
CONFIGURE_ARGS+=--enable-discard-path
.endif
.if !defined(WITHOUT_FASTCGI)
CONFIGURE_ARGS+=--enable-fastcgi
.endif
.if defined(WITHOUT_PATHINFO)
CONFIGURE_ARGS+=--disable-path-info-check
.endif
.else
PLIST_SUB+=	CGI="@@comment "
CONFIGURE_ARGS+=--disable-cgi
.endif

.if defined(WITH_APACHE)
PHP_SAPI+=	mod
USE_APACHE=	20+
.include "${PORTSDIR}/Mk/bsd.apache.mk"
CONFIGURE_ARGS+=--with-apxs2=${APXS}
PKGMESSAGE=	${PKGDIR}/pkg-message.mod
MODULENAME=	lib${PORTNAME}
SHORTMODNAME=	${PORTNAME}
PLIST_SUB+=	APACHE=""
.else
PLIST_SUB+=	APACHE="@@comment "
.endif

.if !defined(WITH_REGEX_TYPE) || ${WITH_REGEX_TYPE} == "php"
CONFIGURE_ARGS+=--with-regex=php
.elif defined(WITH_REGEX_TYPE) && ${WITH_REGEX_TYPE} == "system"
CONFIGURE_ARGS+=--with-regex=system
.elif defined(WITH_REGEX_TYPE) && ${WITH_REGEX_TYPE} == "apache"
CONFIGURE_ARGS+=--with-regex=apache
.endif

CONFIGURE_ENV+=	ac_cv_pthreads_lib=${PTHREAD_LIBS} \
		ac_cv_pthreads_cflags=${PTHREAD_CFLAGS} \
		pthreads_working="yes"

 MAKE_ENV+=      LDFLAGS="${LDFLAGS}"

.if defined(WITH_OPENSSL)
WITH_OPENSSL_BASE=	yes
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE} \
		--with-openssl-dir=${OPENSSLBASE}
LDFLAGS+=	-L${OPENSSLLIB} -lcrypto -lssl
PHP_EXT_INC+=	openssl
.endif

.if defined(WITH_ZLIB)
CONFIGURE_ARGS+=--with-zlib=/usr
PHP_EXT_INC+=	zlib
.endif

.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
.endif

.if defined(WITH_MULTIBYTE)
CONFIGURE_ARGS+=--enable-zend-multibyte
.endif

.if defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif

post-patch:
	@@${TOUCH} ${WRKSRC}/ext/php_config.h
	@@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*

# Work around issues with newer (>=2.64) autoconf
pre-configure:
	@@${REINPLACE_CMD} -E 's:^((m4_)?divert)[(]([0-9]*)[)]:\1(600\3):' \
		${WRKSRC}/configure.in `${FIND} ${WRKSRC} -name '*.m4'`
	@@${RM} ${WRKSRC}/configure
	@@${CAT} ${WRKSRC}/acinclude.m4 ${WRKSRC}/build/libtool.m4 > ${WRKSRC}/aclocal.m4

post-build:
	@@${ECHO_CMD} "PHP_VER=4" > ${WRKDIR}/php.conf
	@@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
	@@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
.if defined(PHP_EXT_INC)
	@@${ECHO_CMD} "PHP_EXT_INC=${PHP_EXT_INC}" >> ${WRKDIR}/php.conf
.endif

post-install:
	@@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
	@@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc
	@@${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
	@@${TOUCH} ${PREFIX}/include/php/ext/php_config.h
.if defined(WITH_APACHE)
	@@${CAT} ${PKGMESSAGE}
.endif

.else
.include "${MASTERDIR}/Makefile.ext"
.endif
.include <bsd.port.post.mk>
@


1.134
log
@- change required APACHE version from 13+ to 20+
  (prepare to remove www/apache13)

- no PORTREVISION bump since apache22 is the default

with hat apache@@
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.133
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d102 1
a102 1
USE_APACHE=	13+
a103 1
.if ${APACHE_VERSION} > 13
a104 3
.else
CONFIGURE_ARGS+=--with-apxs=${APXS}
.endif
@


1.132
log
@Sync to new bsd.autotools.mk
@
text
@d10 1
a10 1
PORTREVISION?=	4
d102 1
a102 1
USE_APACHE=	1.3+
@


1.131
log
@Punt autoconf267->autoconf268
@
text
@d26 1
a26 1
USE_AUTOTOOLS=	autoconf:268
@


1.130
log
@Autotools update.   Read ports/UPDATING 20100915 for details.

Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
@
text
@d26 1
a26 1
USE_AUTOTOOLS=	autoconf:267
@


1.129
log
@Bounce PORTREVISION for gettext-related ports.  Have fun, ya'll.
@
text
@d10 1
a10 1
PORTREVISION?=	3
d26 1
a26 1
USE_AUTOTOOLS=	autoconf:262
d161 1
d163 3
@


1.128
log
@Use openssl from base.

PR:		ports/145840
Submitted by:	Frank Wall <fw@@moov.de>
@
text
@d10 1
a10 1
PORTREVISION?=	2
@


1.127
log
@- fix build for png-1.4.1
- bump PORTREVISION
PR:	145247
@
text
@d132 1
@


1.126
log
@Chase the ftp/curl shlib version bump.
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.125
log
@Update COMMENT.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.124
log
@Simplify, no functional changes.
@
text
@d20 1
a20 1
COMMENT?=	PHP Scripting Language (Apache Module and CLI)
@


1.123
log
@Update to 4.4.9 release.
@
text
@d67 1
a67 1
PATCHFILES+=	php-4.4.8-mail-header.patch:mail
@


1.122
log
@Bump PORTREVISION on account of of bin/phpize being installed with
hardcoded links to autoconf (was 2.61, now 2.62), preventing any
further php modules from being installed until lang/php* is forcibly
updated.
@
text
@d9 2
a10 2
PORTVERSION=	4.4.8
PORTREVISION?=	1
d67 1
a67 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
@


1.121
log
@Conversion from (now defunct) autoconf-2.61 to autoconf-2.62

Tested by:	exp build run (erwin)
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.120
log
@- Remove USE_GETOPT_LONG which is a no-op since March 2007
@
text
@d26 1
a26 1
USE_AUTOTOOLS=	autoconf:261
@


1.119
log
@Update to 4.4.8 release.
@
text
@a26 1
USE_GETOPT_LONG=yes
@


1.118
log
@Remove support for OSVERSION < 5
@
text
@d9 2
a10 2
PORTVERSION=	4.4.7
PORTREVISION?=	2
d61 1
a61 1
PATCH_SITES+=	http://www.hardened-php.net/suhosin/_media/:suhosin
@


1.117
log
@Switch autoconf dependencies from 2.53 or 2.59 to 2.61.

PR:		ports/116639
Submitted by:	aDe
@
text
@d153 1
a153 1
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
@


1.116
log
@Update to the autotools new world order.

Tested by:	numerous package build runs
Approved by:	portmgr
Thanks to:	des, kris, linimon, pav
@
text
@d10 1
a10 1
PORTREVISION?=	1
d26 1
a26 1
USE_AUTOTOOLS=	autoconf:259
@


1.115
log
@Add a comment about incompatibility between suhosin and FreeBSD jails.

PR:		ports/113748
Submitted by:	edwin
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.114
log
@Update to 4.4.7 release.

PR:		ports/112625
Submitted by:	Alex Samorukov <samm@@os2.kiev.ua>
Approved by:	portmgr (linimon)
@
text
@d40 1
a40 1
		SUHOSIN "Enable Suhosin protection system" on \
@


1.113
log
@Update to 4.4.6 release.
@
text
@d9 1
a9 1
PORTVERSION=	4.4.6
@


1.112
log
@- Bump shlib version to libnetsnmp.so.10 and bump $PORTREVISION.
@
text
@d9 2
a10 2
PORTVERSION=	4.4.5
PORTREVISION?=	1
@


1.111
log
@Update the mail header patches (it's a no-op).
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.110
log
@Update to 4.4.5 release.
@
text
@d68 1
a68 1
PATCHFILES+=	php-4.4.4-mail-header.patch:mail
@


1.109
log
@Really fix the objformat issue, the previous commit broke php compilation.
@
text
@d9 2
a10 2
PORTVERSION=	4.4.4
PORTREVISION?=	1
d68 1
a68 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
@


1.108
log
@Use libtool port instead of included version to avoid a.out objformat botch
@
text
@a24 1
USE_AUTOTOOLS=	libtool:15
d26 1
a26 1
USE_AUTOTOOLS+=	autoconf:259
@


1.107
log
@Add optional mail header patch, to track php-based spamming.
Update suhosin patch to 0.9.6 release.
@
text
@d25 1
d27 1
a27 1
USE_AUTOTOOLS=	autoconf:259
@


1.106
log
@- fix open_basedir vulnerability in php4 and php5 [1]
- add an alert on safe_mode intrinsic insecurity and
  suggest to install the suhosin extension
- enable the suhosin patch by deafult also in php4

Submitted by:	Thomas Vogt <thomas@@bsdunix.ch> [1]
Obtained from:	PHP CVS [1]
Approved by:	portmgr (clement)
@
text
@d43 1
d57 2
d60 2
a61 3
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.5.patch.gz
PATCH_SITES=	http://www.hardened-php.net/suhosin/_media/
PATCH_DIST_STRIP=	-p1
d67 5
@


1.105
log
@Update suhosin patch to 0.9.5 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
d40 1
a40 1
		SUHOSIN "Enable Suhosin protection system" off \
d56 1
a56 1
.if defined(WITH_SUHOSIN)
@


1.104
log
@Update suhosin patch to 0.9.3 release.
@
text
@d57 1
a57 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.3.patch.gz
@


1.103
log
@- Add experimental suhosin protection system support
- Add the possibility to build zlib extension static
- Remove the php->php-cgi temporary hack
@
text
@d57 1
a57 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.2.patch.gz
@


1.102
log
@Update to 4.4.4.

Approved by:	ale's vacation
@
text
@d40 1
d47 2
a48 1
		OPENSSL "Build static OpenSSL extension" off
d56 9
a69 4
# XXX Temporary hack
.if !defined(WITHOUT_CGI)
PLIST_SUB+=	CLI=""
.else
a70 1
.endif
d130 6
d161 2
a162 2
.if defined(WITH_OPENSSL)
	@@${ECHO_CMD} "PHP_EXT_INC=openssl" >> ${WRKDIR}/php.conf
a169 4
# XXX Temporary hack
.if !defined(WITHOUT_CGI) && defined(WITHOUT_CLI)
	@@${LN} -sf ${PREFIX}/bin/php-cgi ${PREFIX}/bin/php
.endif
@


1.101
log
@Update to php 4.4.3:

    * Disallow certain characters in session names.
    * Fixed a buffer overflow inside the wordwrap() function.
    * Prevent jumps to parent directory via the 2nd parameter of the tempnam() function.
    * Improved safe_mode check for the error_log() function.
    * Fixed cross-site scripting inside the phpinfo() function.
    * Fixed offset/length parameter validation inside the substr_compare() function.
    * Upgraded bundled PCRE library to version 6.6
    * Over 20 various bug fixes.

Approved by:	ale's vacation
@
text
@d9 1
a9 1
PORTVERSION=	4.4.3
@


1.100
log
@Simplify PHP base ports infrastructure:
- remove all slave ports
- add the ability to build all SAPIs concurrently
- update php5 to 5.1.4

*Read* the UPDATING file *before* trying to update PHP
(or at least before mailing me).
@
text
@d9 2
a10 2
PORTVERSION=	4.4.2
PORTREVISION?=	2
@


1.99
log
@Fix linking on 4.x (yes, this is another PHP configure bug).
While I'm here, replace a '=' with '+='.
@
text
@d10 1
a10 1
PORTREVISION?=	1
d25 2
a26 3
.if !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX} == "-cgi" || ${PKGNAMESUFFIX} == "-cli"
GNU_CONFIGURE=	yes
USE_REINPLACE=	yes
d33 2
a34 1
		--disable-all
d36 17
a52 11
.if !defined(WITH_REGEX_TYPE) || ${WITH_REGEX_TYPE} == "php"
CONFIGURE_ARGS+=--with-regex=php
.else
.if ${WITH_REGEX_TYPE} == "system"
CONFIGURE_ARGS+=--with-regex=system
.else
.if ${WITH_REGEX_TYPE} == "apache"
CONFIGURE_ARGS+=--with-regex=apache
.endif
.endif
.endif
d54 4
a57 3
.if !defined(PKGNAMEPREFIX) && !defined(PKGNAMESUFFIX)
PHP_SAPI=	full
WITH_APACHE=	yes
d59 3
a61 2
.if !defined(PKGNAMEPREFIX)
PHP_SAPI=	${PKGNAMESUFFIX:S/-//}
d63 1
a63 2
PHP_SAPI=	${PKGNAMEPREFIX:S/_//}
WITH_APACHE=	yes
d65 1
d68 5
a72 5
.if defined(WITH_APACHE)
PKGMESSAGE=	${PKGDIR}/pkg-message.mod
USE_APACHE=	1.3+
MODULENAME=	lib${PORTNAME}
SHORTMODNAME=	${PORTNAME}
d74 2
a75 6

.if ${PHP_SAPI} == "cgi"
OPTIONS=	REDIRECT "Enable force-cgi-redirect support" off \
		DISCARD "Enable discard-path support" off \
		FASTCGI "Enable fastcgi support" off \
		PATHINFO "Enable path-info-check support" on
d77 2
a78 10
OPTIONS+=	DEBUG "Enable debug" off \
		MULTIBYTE "Enable zend multibyte support" off \
		IPV6 "Enable ipv6 support" on \
		OPENSSL "Build static OpenSSL extension" off

CONFLICTS?=	php4-cli-4* mod_php4-4* php4-cgi-4*
CONFLICTS+=	php5-5* php5-cli-5* mod_php5-5* php5-cgi-5*

.if ${PHP_SAPI} == "cgi" || ${PHP_SAPI} == "mod"
CONFIGURE_ARGS+=--disable-cli
d80 2
a81 6

MAN1=		php-config.1 phpize.1
.if ${PHP_SAPI} != "mod"
PLIST_SUB+=	CLICGI=""
.if ${PHP_SAPI} != "cgi"
MAN1+=		php.1
d84 2
a85 1
PLIST_SUB+=	CLICGI="@@comment "
d89 11
d105 6
a110 2
.if ${PHP_SAPI} == "cli"
CONFIGURE_ARGS+=--disable-cgi
a112 2
.include <bsd.port.pre.mk>

d114 2
a115 1
		ac_cv_pthreads_cflags=${PTHREAD_CFLAGS}
d117 1
a117 1
MAKE_ENV+=	LDFLAGS="${LDFLAGS}"
a125 8
.if defined(WITH_APACHE)
.if ${APACHE_VERSION} > 13
CONFIGURE_ARGS+=--with-apxs2=${APXS}
.else
CONFIGURE_ARGS+=--with-apxs=${APXS}
.endif
.endif

a137 18
.if ${PHP_SAPI} == "cgi"
.if defined(WITH_REDIRECT)
CONFIGURE_ARGS+=--enable-force-cgi-redirect
.endif
.if defined(WITH_DISCARD)
CONFIGURE_ARGS+=--enable-discard-path
.endif
.if defined(WITH_FASTCGI)
CONFIGURE_ARGS+=--enable-fastcgi
.endif
.if defined(WITHOUT_PATHINFO)
CONFIGURE_ARGS+=--disable-path-info-check
.endif
.endif

_PORTSDIR!=	${REALPATH} ${PORTSDIR}
PHP_PORT=	${.CURDIR:S|^${_PORTSDIR}||:S|^/||}

a141 1
.if ${PHP_SAPI} == "full"
d143 1
a143 9
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "You are building the Apache Module and the Command Line Interpreter of PHP."
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "Use port:"
	@@${ECHO_CMD} "	lang/php4-cli		for Command Line Interpreter only"
	@@${ECHO_CMD} "	www/php4-cgi		for Common Gateway Interface only"
	@@${ECHO_CMD} "	www/mod_php4		for Apache Module only"
	@@${ECHO_CMD} ""
.endif
a147 1
	@@${ECHO_CMD} "PHP_PORT=\$${PORTSDIR}/${PHP_PORT}" >> ${WRKDIR}/php.conf
d158 4
@


1.98
log
@Fix getopt() and add support for getopt_long.
@
text
@d107 1
a107 1
CONFIGURE_ENV=	ac_cv_pthreads_lib=${PTHREAD_LIBS} \
d110 2
@


1.97
log
@Update to 4.4.2 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
d28 1
@


1.96
log
@Reorganize (use bsd.apache.mk and remove pear leftovers)
@
text
@d9 2
a10 2
PORTVERSION=	4.4.1
PORTREVISION?=	3
@


1.95
log
@- prepare removal of www/apache2 in favor of www/apache20 for naming
  consistency
- add entries in UPDATING (for apache22 too)

PR:		ports/78119
Repocopied by:	marcus
@
text
@a26 1
USE_BISON=	yes
d61 3
a63 1
APACHE_COMPAT=	yes
a71 7
.if defined(WITH_APACHE)
.if defined(WITH_APACHE2)
OPTIONS=	APACHE2 "Use apache 2.x instead of apache 1.3.x" on
.else
OPTIONS=	APACHE2 "Use apache 2.x instead of apache 1.3.x" off
.endif
.endif
a76 2
EXT_DIR=	20020429

d85 3
a87 2
.if ${PHP_SAPI} == "full" || ${PHP_SAPI} == "cli"
PLIST_SUB+=	CLI=""
d89 1
d91 1
a91 1
PLIST_SUB+=	CLI="@@comment "
a101 5
SAPI_FILE=	"@@comment "
.endif

.if ${PHP_SAPI} == "cgi"
SAPI_FILE=	bin/php
d117 1
a117 7
.if exists(${LOCALBASE}/include/apache2/httpd.h)
WITH_APACHE2=	yes
APACHE_MPM!=	${APXS} -q MPM_NAME
.endif
.if defined(WITH_APACHE2)
APACHE_MPM?=	${WITH_MPM}
APACHE_PORT=	www/apache20
a118 4
SAPI_FILE=	libexec/apache2/libphp4.so
.if ${APACHE_MPM} == "worker"
EXT_DIR:=	${EXT_DIR}-zts
.endif
a119 1
APACHE_PORT?=	www/apache13
a120 1
SAPI_FILE=	libexec/apache/libphp4.so
a121 2
BUILD_DEPENDS+=	${APXS}:${PORTSDIR}/${APACHE_PORT}
RUN_DEPENDS+=	${APXS}:${PORTSDIR}/${APACHE_PORT}
a125 1
EXT_DIR:=	${EXT_DIR}-debug
a131 2
PLIST_SUB+=	SAPI_FILE=${SAPI_FILE}

a172 1
	@@${ECHO_CMD} "PHP_EXT_DIR=${EXT_DIR}" >> ${WRKDIR}/php.conf
a188 3
.if ${PKGNAMESUFFIX} == "-pear"
.include "${MASTERDIR}/Makefile.pear"
.else
a190 1
.endif
@


1.94
log
@Chase shlib version bump of net-snmp.
@
text
@d134 1
a134 1
APACHE_PORT=	www/apache2
@


1.93
log
@- Fix pear pkg-plist
- Increase pear memory limit (requested by amd64)
- Revert apache2handler to the latest working version found in
  PHP 4.4.0, since PHP developers seem not interested in
  fixing the bug with apache2 and mod_rewrite
@
text
@d10 1
a10 1
PORTREVISION?=	2
@


1.92
log
@- Make key() and current() functions work by reference
- Bump PORTREVISION

PR:		ports/88481
Submitted by:	Matthew Luckie <mjl@@luckie.org.nz>
Obtained from:	PHP CVS
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.91
log
@Update to 4.4.1 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.90
log
@Autoselect APACHE2 option if WITH_APACHE2 is defined.

Submitted by:	Rick van der Zwet <rick@@wzoeterwoude.net>
@
text
@d9 1
a9 1
PORTVERSION=	4.4.0
@


1.89
log
@- Define APACHE_COMPAT for ${APXS} for USE_APACHE-ng

Reported by:	pointyhat via kris
Approvd by:	portmgr (self)
@
text
@d72 3
d77 1
@


1.88
log
@Update to 4.4.0 release:
- fix a serious memory corruption problem
- remove automake dependency
- switch to the latest autoconf version
@
text
@d62 1
@


1.87
log
@Add support for zend multibyte.

PR:		ports/76527
Submitted by:	Shinsuke Matsui <poppen@@karashi.org>
Strongly desired by:	Lapo Luchini <lapo@@lapo.it>
@
text
@d9 2
a10 2
PORTVERSION=	4.3.11
PORTREVISION?=	1
d87 1
d90 1
a90 1
MAN1=		php.1
@


1.86
log
@- Fix after spliting firebird
- Bump PORTREVISION

PR:		ports/79337
Submitted by:	Renato Botelho <freebsd@@galle.com.br> (firebird maintainer)
@
text
@d74 1
d148 4
@


1.85
log
@Update PHP ports to 4.3.11 and 5.0.4 releases:
- fix security issues
- unbreak PEAR packages [1]

PR:		ports/78516 [1]
Submitted by:	Yen-Ming Lee <leeym@@utopia.leeym.com> [1]
Tested by:	thierry
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.84
log
@Add an option (disabled by default) to build the openssl extension statically.

Requested by:	too many people
@
text
@d9 2
a10 2
PORTVERSION=	4.3.10
PORTREVISION?=	2
d116 2
a117 2
                --with-openssl-dir=${OPENSSLBASE}
LDFLAGS+=       -L${OPENSSLLIB} -lcrypto -lssl
@


1.83
log
@Speed up unserialize() and fix a serious performance issue.

Obtained from:	PHP CVS
@
text
@d74 2
a75 1
		IPV6 "Enable ipv6 support" on
d113 7
d193 3
@


1.82
log
@- Fix overloading objects [1] (bump php4 PORTREVISION)
- Fix crash with threaded apache2 [2]
- Fix build when SSL is in not in base system [3] [4]

PR:		ports/75737 [1], ports/74780 [2],
		ports/73896 [3], ports/74886 [4]
Submitted by:	Toni Viemero <toni.viemero@@iki.fi> [1],
		Peter Jeffery <peterj@@qubesoft.com> [2],
		oliver [3], William Fletcher <ultraviolet@@omina.co.za> [4]
Patch by:	Simon Barner <barner@@gmx.de> [4]
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.81
log
@Update to 4.3.10 release:
- Fix some serious security bugs
- Other enhancements (PRs fixes) will come later
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.80
log
@Bump shlib number of net-snmp and $PORTREVISION.

Forgotten by:	kuriyama
@
text
@d9 2
a10 2
PORTVERSION=	4.3.9
PORTREVISION?=	1
a165 2
	@@${REINPLACE_CMD} "s|<crypt.h>|<unistd.h>|g;s|HAVE_CRYPT_H|HAVE_UNISTD_H|g" \
		${WRKSRC}/configure
@


1.79
log
@Definitely fix support for crypt-related functionalities on amd64.

PR:		ports/74647
Submitted by:	tobez
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.78
log
@Update to 4.3.9 release:
- Fix compilation of thread-safe PHP after the PTHREAD_LIBS change
- Include md5 and blowfish support on amd64 (fix headers) [1]
- Fix vulnerability in RFC 1867 file upload processing [2]
- Fix php_variables memory disclosure [2]
- GD LZW-GIF support is now enabled by default

PR:		ports/71752 [1], ports/72420 [2]
Submitted by:	Adam Gregoire <bsdunx@@yahoo.com> [1],
		Dmitry A Grigorovich <odip@@bionet.nsc.ru> [2]
Approved by:	portmgr (kris)
@
text
@d166 2
a167 1
	@@${REINPLACE_CMD} "s|<crypt.h>|<unistd.h>|g" ${WRKSRC}/configure
@


1.77
log
@Register extensions in etc/php/extensions.ini instead of etc/php.ini
and add etc/php to the config scan path.

Suggested by:	Kenneth Vestergaard Schmidt <kvs@@pil.dk>
@
text
@d9 2
a10 2
PORTVERSION=	4.3.8
PORTREVISION?=	2
d109 2
a110 6
.if ${OSVERSION} >= 500016
WITH_PTHREAD_LIBS?=	${PTHREAD_LIBS:S/-l//}
WITH_PTHREAD_CFLAGS?=	${PTHREAD_CFLAGS}
CONFIGURE_ENV=	ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS} \
		ac_cv_pthreads_cflags=${WITH_PTHREAD_CFLAGS}
.endif
d166 1
@


1.76
log
@Comment extension_dir in sample php.ini's, since many copy the sample
configuration file blindly and then complain about wrong directory.
PHP has the correct path compiled in statically.
@
text
@d10 1
a10 1
PORTREVISION?=	1
d33 1
a193 1
	@@${TOUCH} ${PREFIX}/etc/php.ini
@


1.75
log
@First step of the PHP mega-commit:
- remove extensions and PEAR from the PHP base ports
- add more OPTIONS to PHP base ports
@
text
@d168 1
@


1.74
log
@Update to 4.3.8 release.

The major PHP ports overhaul is in its final stage. This commit was
anticipated since it fixes a critical security vulnerability.
@
text
@a6 14
# There are many ways to select which extensions you want to enable, either
# in interactive mode or in batch mode.
#
# By default, the enabled extensions are: CTYPE, MYSQL, OVERLOAD, PCRE, POSIX,
# SESSION, TOKENIZER, XML and ZLIB. This behaviour can be changed overriding
# the PHP4_OPTIONS variable (e.g. PHP4_OPTIONS="EXT1 EXT2 EXT3").
#
# Another way is to use the WITH_<EXT> and WITHOUT_<EXT> knobs, for additional
# and default extensions respectively (implies batch mode).
#
# The last way reads an "extension" file, located in ~/php4_options (the
# location is overridable by the PHP4_OPTFILE variable). You may find an
# example in scripts/php4_options (interactive mode only).
#
d10 1
a10 1
PORTREVISION?=	0
a15 11
.if defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
PKGNAMEPREFIX=	mod_
.else
.if defined(WITHOUT_APACHE)
.if defined(WITHOUT_CLI)
PKGNAMESUFFIX=	-cgi
.else
PKGNAMESUFFIX=	-cli
.endif
.endif
.endif
d21 2
a22 11
.if defined(WITHOUT_APACHE)
.if defined(WITHOUT_CLI)
COMMENT=	PHP Common Gateway Interface
.else
COMMENT=	PHP Command Line Interpreter
.endif
.else
.if defined(WITHOUT_CLI)
COMMENT=	PHP Apache Module
.endif
.endif
d25 1
a25 1
USE_SUBMAKE=	yes
a32 1
		--with-zlib-dir=/usr \
d47 3
a49 35
EXT_DIR=	20020429
SAPI_FILE=	"@@comment "

CONFLICTS=	php4-cli-4* mod_php4-4* php4-cgi-4*
.if defined(WITHOUT_APACHE)
.if defined(WITHOUT_CLI)
CONFLICTS=	php4-4* php4-cli-4* mod_php4-4*
.else
CONFLICTS=	php4-4* php4-cgi-4* mod_php4-4*
.endif
.else
.if defined(WITHOUT_CLI)
CONFLICTS=	php4-4* php4-cli-4* php4-cgi-4*
.endif
.endif
CONFLICTS+=	php5-5* php5-cli-5* mod_php5-5* php5-cgi-5*

.if defined(WITHOUT_APACHE)
.if defined(WITHOUT_CLI)
.if defined(WITH_FASTCGI)
CONFIGURE_ARGS+=--enable-fastcgi
.else
CONFIGURE_ARGS+=--enable-discard-path
.endif
SAPI_FILE=	bin/php
.else
CONFIGURE_ARGS+=--disable-cgi
.endif
PLIST_SUB+=	APACHE="@@comment "
.else
PLIST_SUB+=	APACHE=""
.endif
.if defined(WITHOUT_CLI)
CONFIGURE_ARGS+=--disable-cli
PLIST_SUB+=	CLI="@@comment "
d51 2
a52 3
.if !defined(WITHOUT_PEAR)
CONFIGURE_ARGS+=--with-pear
PLIST_SUB+=	PEAR=""
d54 2
a55 1
PLIST_SUB+=	PEAR="@@comment "
a56 2
MAN1=		php.1
PLIST_SUB+=	CLI=""
d59 2
a60 12
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX DIO \
		DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \
		GMP HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
		MCRYPT MHASH MIME MING MNOGOSEARCH MSSQL MYSQL NCURSES \
		OPENLDAP OPENSSL ORACLE OVERLOAD PCNTL PCRE POSIX \
		POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS \
		SYBASEDB SYBASECT SYSVMSG SYSVSEM SYSVSHM TOKENIZER UNIXODBC \
		WDDX XML XMLRPC XSLT YAZ YP ZIP ZLIB

.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt}) || defined(WITHOUT_${opt})
BATCH=		yes
a61 1
.endfor
d63 5
a67 2
.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
IS_INTERACTIVE=	yes
d69 2
a70 9

WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
PHP4_OPTFILE?=	${HOME}/php4_options

PHP4_OPTIONS?=	CTYPE MYSQL OVERLOAD PCRE POSIX SESSION TOKENIZER XML ZLIB

.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt})
SEL_OPTIONS+=	${opt}
d72 2
a73 10
.endfor
.for opt in ${PHP4_OPTIONS}
.if !defined(WITHOUT_${opt})
SEL_OPTIONS+=	${opt}
.if !exists(${WRKDIR}/Makefile.inc)
WITH_${opt}=	yes
.endif
.endif
SCRIPTS_ENV+=	WITH_${opt}=ON
.endfor
d75 1
a75 5
SCRIPTS_ENV+=	SEL_OPTIONS="${SEL_OPTIONS}" \
		OPTION_FILE="${PHP4_OPTFILE}" \
		WRKDIR="${WRKDIR}" \
		CAT="${CAT}" \
		SED="${SED}"
d77 2
a78 3
.if exists(${WRKDIR}/Makefile.inc)
.include "${WRKDIR}/Makefile.inc"
.endif
d80 2
a81 3
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
WITH_PCRE=	yes
WITH_XML=	yes
d84 3
a86 31
.if defined(WITH_CDB) || defined(WITH_DB4) || defined(WITH_GDBM) || defined(WITH_INIFILE)
WITH_DBA=	yes
.endif

.if defined(WITH_DOMXSLT)
WITH_DOMXML=	yes
.endif

.if defined(WITH_XMLRPC) || defined(WITH_XSLT)
WITH_ICONV_DEP=	yes
.endif

.if defined(WITH_MCVE) || defined(WITH_SNMP)
WITH_OPENSSL_DEP=	yes
.endif

.if defined(WITH_XMLRPC) || defined(WITH_XSLT)
WITH_XML_DEP=	yes
.endif

.if defined(WITH_WDDX)
WITH_XML=	yes
.endif

.if defined(WITH_BCMATH)
CONFIGURE_ARGS+=--enable-bcmath
.endif

.if defined(WITH_BZIP2)
.if exists(/usr/bin/bzip2)
BZIP2BASE=	/usr
d88 1
a88 4
BZIP2BASE=	${LOCALBASE}
LIB_DEPENDS+=	bz2.1:${PORTSDIR}/archivers/bzip2
.endif
CONFIGURE_ARGS+=--with-bz2=${BZIP2BASE}
d91 2
a92 27
.if defined(WITH_CALENDAR)
CONFIGURE_ARGS+=--enable-calendar
.endif

.if defined(WITH_CDB)
CONFIGURE_ARGS+=--with-cdb
.endif

.if defined(WITH_CRACK)
BUILD_DEPENDS+=	${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
RUN_DEPENDS+=	${LOCALBASE}/lib/libcrack.a:${PORTSDIR}/security/cracklib
CONFIGURE_ARGS+=--with-crack=${LOCALBASE}
.endif

.if defined(WITH_CTYPE)
CONFIGURE_ARGS+=--enable-ctype
.endif

.if defined(WITH_CURL)
LIB_DEPENDS+=	curl.3:${PORTSDIR}/ftp/curl
CONFIGURE_ARGS+=--with-curl=${LOCALBASE}
.endif

.if defined(WITH_DB4)
WITH_DB4_VER?=	41
.if ${WITH_DB4_VER} == 42
LIB_DEPENDS+=	db-4.2.2:${PORTSDIR}/databases/db42
d94 1
a94 7
.if ${WITH_DB4_VER} == 4
LIB_DEPENDS+=	db4.0:${PORTSDIR}/databases/db4
.else
LIB_DEPENDS+=	db41.1:${PORTSDIR}/databases/db41
.endif
.endif
CONFIGURE_ARGS+=--with-db4=${LOCALBASE}
d97 3
a99 2
.if defined(WITH_DBA)
CONFIGURE_ARGS+=--enable-dba
d102 2
a103 284
.if defined(WITH_DBASE)
CONFIGURE_ARGS+=--enable-dbase
.endif

.if defined(WITH_DBX)
CONFIGURE_ARGS+=--enable-dbx
.endif

.if defined(WITH_DIO)
CONFIGURE_ARGS+=--enable-dio
.endif

.if defined(WITH_DOMXML)
LIB_DEPENDS+=	xml2.5:${PORTSDIR}/textproc/libxml2
CONFIGURE_ARGS+=--with-dom=${LOCALBASE}
.endif

.if defined(WITH_DOMXSLT)
LIB_DEPENDS+=	xslt.2:${PORTSDIR}/textproc/libxslt
CONFIGURE_ARGS+=--with-dom-xslt=${LOCALBASE} --with-dom-exslt=${LOCALBASE}
.endif

.if defined(WITH_EXIF)
CONFIGURE_ARGS+=--enable-exif
.endif

.if defined(WITH_FILEPRO)
CONFIGURE_ARGS+=--enable-filepro
.endif

.if defined(WITH_FRIBIDI)
LIB_DEPENDS+=	fribidi.0:${PORTSDIR}/converters/fribidi
CONFIGURE_ARGS+=--with-fribidi=${LOCALBASE}
.endif

.if defined(WITH_FTP)
CONFIGURE_ARGS+=--enable-ftp
.endif

.if defined(WITH_GD)
LIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
LIB_DEPENDS+=	t1.5:${PORTSDIR}/devel/t1lib
LIB_DEPENDS+=	png.5:${PORTSDIR}/graphics/png
LIB_DEPENDS+=	jpeg.9:${PORTSDIR}/graphics/jpeg
CONFIGURE_ARGS+=--with-gd \
		--enable-gd-native-ttf \
		--with-freetype-dir=${LOCALBASE} \
		--with-t1lib=${LOCALBASE} \
		--with-jpeg-dir=${LOCALBASE} \
		--with-png-dir=${LOCALBASE}
.if !defined(WITHOUT_X11)
USE_XPM=	yes
CONFIGURE_ARGS+=--with-xpm-dir=${X11BASE}
.endif
.if defined(WITH_LZW)
CONFIGURE_ARGS+=--enable-gd-lzw-gif
.endif
.endif

.if defined(WITH_GDBM)
LIB_DEPENDS+=	gdbm.3:${PORTSDIR}/databases/gdbm
CONFIGURE_ARGS+=--with-gdbm=${LOCALBASE}
.endif

.if defined(WITH_GETTEXT)
USE_GETTEXT=	yes
CONFIGURE_ARGS+=--with-gettext=${LOCALBASE}
.endif

.if defined(WITH_GMP)
LIB_DEPENDS+=	gmp.6:${PORTSDIR}/math/libgmp4
CONFIGURE_ARGS+=--with-gmp=${LOCALBASE}
.endif

.if defined(WITH_HYPERWAVE)
CONFIGURE_ARGS+=--with-hyperwave
.endif

.if defined(WITH_ICONV) || defined(WITH_ICONV_DEP)
USE_ICONV=	yes
CONFIGURE_ARGS+=--with-iconv-dir=${LOCALBASE}
.endif

.if defined(WITH_ICONV)
CONFIGURE_ARGS+=--with-iconv=${LOCALBASE}
.endif

.if defined(WITH_INIFILE)
CONFIGURE_ARGS+=--with-inifile
.endif

.if defined(WITH_INTERBASE)
LIB_DEPENDS+=	gds.1:${PORTSDIR}/databases/firebird
CONFIGURE_ARGS+=--with-interbase=${LOCALBASE}/firebird
.endif

.if defined(WITH_MBSTRING)
CONFIGURE_ARGS+=--enable-mbstring
.endif

.if defined(WITH_MCAL)
LIB_DEPENDS+=	mcal.0:${PORTSDIR}/misc/libmcal
CONFIGURE_ARGS+=--with-mcal=${LOCALBASE}
.endif

.if defined(WITH_MCVE)
LIB_DEPENDS+=	mcve.3:${PORTSDIR}/devel/libmcve
CONFIGURE_ARGS+=--with-mcve=${LOCALBASE}
.endif

.if defined(WITH_MCRYPT)
LIB_DEPENDS+=	mcrypt.8:${PORTSDIR}/security/libmcrypt
USE_LIBLTDL=	yes
CONFIGURE_ARGS+=--with-mcrypt=${LOCALBASE}
.endif

.if defined(WITH_MHASH)
LIB_DEPENDS+=	mhash.2:${PORTSDIR}/security/mhash
CONFIGURE_ARGS+=--with-mhash=${LOCALBASE}
.endif

.if defined(WITH_MIME)
CONFIGURE_ARGS+=--with-mime-magic=/usr/share/misc/magic.mime
.endif

.if defined(WITH_MING)
LIB_DEPENDS+=	ming.3:${PORTSDIR}/graphics/ming
CONFIGURE_ARGS+=--with-ming=${LOCALBASE}
.endif

.if defined(WITH_MNOGOSEARCH)
LIB_DEPENDS+=	udmsearch.1:${PORTSDIR}/www/mnogosearch
CONFIGURE_ARGS+=--with-mnogosearch=${LOCALBASE}
.endif

.if defined(WITH_MSSQL)
LIB_DEPENDS+=	sybdb.4:${PORTSDIR}/databases/freetds-msdblib
CONFIGURE_ARGS+=--with-mssql=${LOCALBASE}
.endif

.if defined(WITH_MYSQL)
USE_MYSQL=	yes
CONFIGURE_ARGS+=--with-mysql=${LOCALBASE}
.endif

.if defined(WITH_OPENLDAP)
USE_OPENLDAP=	yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
.endif

.if defined(WITH_OPENSSL) || defined(WITH_OPENSSL_DEP)
USE_OPENSSL=	yes
LDFLAGS+=	-lcrypto -lssl
CONFIGURE_ENV+=	LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=--with-openssl-dir=${OPENSSLBASE}
.endif

.if defined(WITH_OPENSSL)
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
.endif

.if defined(WITH_ORACLE)
BUILD_DEPENDS+=	${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client
RUN_DEPENDS+=	${LOCALBASE}/oracle7/lib/libcore3.a:${PORTSDIR}/databases/oracle7-client
CONFIGURE_ARGS+=--with-oracle=${LOCALBASE}/oracle7
.endif

.if defined(WITH_OVERLOAD)
CONFIGURE_ARGS+=--enable-overload
.endif

.if defined(WITH_PCNTL)
CONFIGURE_ARGS+=--enable-pcntl
.endif

.if defined(WITH_PCRE)
CONFIGURE_ARGS+=--with-pcre-regex=yes
.endif

.if defined(WITH_POSIX)
CONFIGURE_ARGS+=--enable-posix
.endif

.if defined(WITH_POSTGRESQL)
POSTGRESQL_PORT?=	databases/postgresql7
LIB_DEPENDS+=	pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif

.if defined(WITH_PSPELL)
LIB_DEPENDS+=	aspell.15:${PORTSDIR}/textproc/aspell
CONFIGURE_ARGS+=--with-pspell=${LOCALBASE}
.endif

.if defined(WITH_READLINE)
CONFIGURE_ARGS+=--with-readline
.endif

.if defined(WITH_RECODE)
LIB_DEPENDS+=	recode.3:${PORTSDIR}/converters/recode
CONFIGURE_ARGS+=--with-recode=${LOCALBASE}
.endif

.if defined(WITH_SESSION)
CONFIGURE_ARGS+=--enable-session
.endif

.if defined(WITH_SHMOP)
CONFIGURE_ARGS+=--enable-shmop
.endif

.if defined(WITH_SOCKETS)
CONFIGURE_ARGS+=--enable-sockets
.endif

.if defined(WITH_SYBASEDB)
LIB_DEPENDS+=	sybdb.4:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+=--with-sybase=${LOCALBASE}
.endif

.if defined(WITH_SYBASECT)
LIB_DEPENDS+=	ct.2:${PORTSDIR}/databases/freetds
CONFIGURE_ARGS+=--with-sybase-ct=${LOCALBASE}
.endif

.if defined(WITH_SYSVMSG)
CONFIGURE_ARGS+=--enable-sysvmsg
.endif

.if defined(WITH_SYSVSEM)
CONFIGURE_ARGS+=--enable-sysvsem
.endif

.if defined(WITH_SYSVSHM)
CONFIGURE_ARGS+=--enable-sysvshm
.endif

.if defined(WITH_TOKENIZER)
CONFIGURE_ARGS+=--enable-tokenizer
.endif

.if defined(WITH_UNIXODBC)
LIB_DEPENDS+=	odbc.1:${PORTSDIR}/databases/unixODBC
CONFIGURE_ARGS+=--with-unixODBC=${LOCALBASE}
.endif

.if defined(WITH_WDDX)
CONFIGURE_ARGS+=--enable-wddx
.endif

.if defined(WITH_XML) || defined(WITH_XML_DEP)
LIB_DEPENDS+=	expat.5:${PORTSDIR}/textproc/expat2
CONFIGURE_ARGS+=--with-expat-dir=${LOCALBASE}
.endif

.if defined(WITH_XML)
CONFIGURE_ARGS+=--enable-xml
.endif

.if defined(WITH_XMLRPC)
CONFIGURE_ARGS+=--with-xmlrpc
.endif

.if defined(WITH_XSLT)
LIB_DEPENDS+=	sablot.70:${PORTSDIR}/textproc/sablotron
CONFIGURE_ARGS+=--enable-xslt --with-xslt-sablot=${LOCALBASE}
.endif

.if defined(WITH_YAZ)
LIB_DEPENDS+=	yaz.2:${PORTSDIR}/net/yaz
CONFIGURE_ARGS+=--with-yaz=${LOCALBASE}/bin
.endif

.if defined(WITH_YP)
CONFIGURE_ARGS+=--enable-yp
.endif

.if defined(WITH_ZIP)
LIB_DEPENDS+=	zzip.10:${PORTSDIR}/devel/zziplib
CONFIGURE_ARGS+=--with-zip=${LOCALBASE}
.endif

.if defined(WITH_ZLIB)
CONFIGURE_ARGS+=--with-zlib=yes
d115 1
a115 1
.if !defined(WITHOUT_APACHE)
d148 3
a150 7
.if defined(WITH_IMAP)
LIB_DEPENDS+=	c-client4.8:${PORTSDIR}/mail/cclient
.if !exists(${LOCALBASE}/lib/libc-client4.so)
.if !defined(WITHOUT_SSL)
CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
d152 2
a153 6
.else
WITH_IMAP_SSL!=	/usr/bin/ldd ${LOCALBASE}/lib/libc-client4.so | ${GREP} libssl || ${TRUE}
.if !empty(WITH_IMAP_SSL)
CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
d155 2
d158 2
a160 18

.if defined(WITH_NCURSES)
.if ${OSVERSION} < 400000
NCURSESBASE=	${LOCALBASE}
LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
.else
NCURSESBASE=	/usr
.endif
CONFIGURE_ARGS+=--with-ncurses=${NCURSESBASE}
.endif

.if defined(WITH_SNMP)
.if exists(${LOCALBASE}/lib/libsnmp.so.4) || defined(WITH_SNMP4)
LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net-mgmt/net-snmp4
.else
LIB_DEPENDS+=	netsnmp.6:${PORTSDIR}/net-mgmt/net-snmp
.endif
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
a165 3
pre-patch:
	@@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php

d167 1
a167 4
	@@${REINPLACE_CMD} -e "s|orainst/unix.rgs|ocommon/install/partial.prd|g" \
		${WRKSRC}/configure
	@@${SED} "s|%%PREFIX%%|${PREFIX}|g" \
		${WRKSRC}/pear/scripts/pearcmd.php > ${WRKSRC}/pear/scripts/pear
d169 1
a171 21
.if defined(WITH_IMAP) && defined(WITH_RECODE)
	@@${ECHO_CMD} "You cannot define WITH_IMAP *and* WITH_RECODE!"
	@@${FALSE}
.endif
.if defined(WITH_IMAP) && defined(WITH_YAZ)
	@@${ECHO_CMD} "You cannot define WITH_IMAP *and* WITH_YAZ!"
	@@${FALSE}
.endif
.if defined(WITH_RECODE) && defined(WITH_YAZ)
	@@${ECHO_CMD} "You cannot define WITH_RECODE *and* WITH_YAZ!"
	@@${FALSE}
.endif
.if defined(WITH_SYBASEDB) && defined(WITH_SYBASECT)
	@@${ECHO_CMD} "You cannot define WITH_SYBASEDB *and* WITH_SYBASECT!"
	@@${FALSE}
.endif
.if defined(WITH_GD) && !defined(WITH_LZW)
	@@${ECHO_CMD} "To enable LZW-compressed GIF support in GD define the WITH_LZW knob."
	@@${ECHO_CMD} ""
.endif
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
d186 1
a186 30
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
	@@${ECHO_CMD} "PHP_PEAR=yes" >> ${WRKDIR}/php.conf
.else
	@@${ECHO_CMD} "PHP_PEAR=no" >> ${WRKDIR}/php.conf
.endif
.if !defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
	@@${ECHO_CMD} "PHP_SAPI=full" >> ${WRKDIR}/php.conf
.else
.if defined(WITHOUT_APACHE) && !defined(WITHOUT_CLI)
	@@${ECHO_CMD} "PHP_SAPI=cli" >> ${WRKDIR}/php.conf
.endif
.if !defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
	@@${ECHO_CMD} "PHP_SAPI=mod" >> ${WRKDIR}/php.conf
.endif
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
	@@${ECHO_CMD} "PHP_SAPI=cgi" >> ${WRKDIR}/php.conf
.endif
.endif
.if !defined(WITHOUT_CLI)
	@@${ECHO_CMD} "You may run the tests from the PHP test framework, typing 'make test' now."
	@@${ECHO_CMD} "(It is safe to ignore errors about timestamp-related tests,"
	@@${ECHO_CMD} "since they are due to the different FreeBSD mktime() implementation)."
	@@${ECHO_CMD} ""
.endif

.if !defined(WITHOUT_CLI)
test: all
	@@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
		${MAKEFILE} ${MAKE_ARGS} ${.TARGET})
.endif
a188 3
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
	@@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
.endif
d192 4
a195 11
.if !defined(WITHOUT_APACHE)
	@@${ECHO_CMD} "*****************************************************************************"
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "Make sure index.php is part of your DirectoryIndex."
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "You should add the following lines to your Apache configuration file:"
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "AddType application/x-httpd-php .php"
	@@${ECHO_CMD} "AddType application/x-httpd-php-source .phps"
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "*****************************************************************************"
d198 7
@


1.73
log
@Install GD header files for pecl-pdflib extension.
@
text
@d23 2
a24 2
PORTVERSION=	4.3.7
PORTREVISION?=	3
@


1.72
log
@- Remove pdflib extension
- Point phpize to use libtoolize13
@
text
@d24 1
a24 1
PORTREVISION?=	2
@


1.71
log
@Sync with new bsd.autotools.mk
@
text
@d24 1
a24 1
PORTREVISION?=	1
d132 1
a132 1
		OPENLDAP OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX \
a437 5
.endif

.if defined(WITH_PDFLIB)
LIB_DEPENDS+=	pdf.6:${PORTSDIR}/print/pdflib
CONFIGURE_ARGS+=--with-pdflib=${LOCALBASE}
@


1.70
log
@Update ftp/curl to 7.12.0 and bump the shared library version in all
dependent ports.
@
text
@d373 1
a373 1
LIB_DEPENDS+=	ltdl.4:${PORTSDIR}/devel/libltdl
@


1.69
log
@Update to 4.3.7 release.
@
text
@d24 1
d239 1
a239 1
LIB_DEPENDS+=	curl.2:${PORTSDIR}/ftp/curl
@


1.68
log
@Replace explicit XFree86-4-libraries dependencies with USE_XLIB, USE_XPM, and
USE_GL as appropriate.
@
text
@d23 1
a23 2
PORTVERSION=	4.3.6
PORTREVISION=	1
a305 1
		--enable-gd-jis-conv \
@


1.67
log
@Remove databases/postgresql-client because there can't be a -server, and having
it installed prevents databases/postgresql7 from being installed, leading to
some dependencies problems
@
text
@d313 1
a313 1
LIB_DEPENDS+=	Xpm.4:${PORTSDIR}/x11/XFree86-4-libraries
@


1.66
log
@Introduce MASTER_SITE_PHP and add several more mirror sites worldwide.

Approved by:	ale (MAINTAINER of lang/php[45])
@
text
@d451 1
a451 1
POSTGRESQL_PORT?=	databases/postgresql-client
@


1.65
log
@- Add sysvmsg extension [1]
- Add XML_RPC to PEAR bootstrap [2]
- Use the official pcre fix [3]
- Bump PORTREVISION

Requested by:	Andy Smith <andy@@strugglers.net> [1]
Submitted by:	thierry [2]
Obtained from:	php CVS [3]
@
text
@d26 1
a26 8
MASTER_SITES=	http://www.php.net/distributions/:release \
		http://it.php.net/distributions/:release \
		http://fi.php.net/distributions/:release \
		http://de.php.net/distributions/:release \
		http://gr.php.net/distributions/:release \
		http://fr.php.net/distributions/:release \
		http://es.php.net/distributions/:release \
		http://se.php.net/distributions/:release \
d29 1
@


1.64
log
@Update to 4.3.6 release.
- Fix build curl dependency
- Fix (hopefully) the core dump on apache restart
- Fix DaylightSavingTime issue
@
text
@d24 1
d140 2
a141 2
		SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML \
		XMLRPC XSLT YAZ YP ZIP ZLIB
a185 1
WITH_XMLRPC=	yes
d496 4
@


1.63
log
@- Use USE_ICONV knob

Approved by:	portmgr
@
text
@d23 1
a23 2
PORTVERSION=	4.3.5
PORTREVISION=	7
@


1.62
log
@Fix db 4.2 dependency.

PR:		ports/64802
Submitted by:	Sunpoet Po-Chuan Hsieh <sunpoet@@sunpoet.net>
@
text
@d348 1
a348 1
LIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv
@


1.61
log
@Update to 4.3.5 release:
- add support for db 4.2
@
text
@d253 1
a253 1
LIB_DEPENDS+=	db4.2.2:${PORTSDIR}/databases/db42
@


1.60
log
@Fix Xpm path.

Submitted by:	Dominic Marks <dom@@helenmarks.co.uk>
@
text
@d23 1
a23 1
PORTVERSION=	4.3.4
d113 2
d252 3
d260 1
d592 1
a592 2
PLIST_SUB+=	SAPI_FILE=${SAPI_FILE} \
		EXT_DIR=${EXT_DIR}
a721 1
	@@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.keepme
@


1.59
log
@o Bump $LIB_DEPENDS line to chase expat's shlib version.
o Bump $PORTREVISION.
@
text
@d315 1
a315 1
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE}
@


1.58
log
@Fix PHP_PORT when PORTSDIR is a symlink.

Submitted by:	marcus
Reviewed by:	pav
@
text
@d24 1
a24 1
PORTREVISION=	6
d515 1
a515 1
LIB_DEPENDS+=	expat.4:${PORTSDIR}/textproc/expat2
@


1.57
log
@Don't use a fully-qualified path in php.conf.

Submitted by:	marcus
Reviewed by:	pav
@
text
@d630 2
a631 1
PHP_PORT=	${.CURDIR:S|^${PORTSDIR}||:S|^/||}
@


1.56
log
@Add PostScript Type-1 font support for GD extension.

PR:		ports/63410
Submitted by:	Toni Viemer <toni.viemero@@iki.fi> (PR)
		Lars Balker Rasmussen <lars@@balker.org> (email)
@
text
@d630 2
d677 1
a677 1
	@@${ECHO_CMD} "PHP_PORT=${.CURDIR}" >> ${WRKDIR}/php.conf
@


1.55
log
@Say hello to the new "net-mgmt" category.  There are probably more
ports that belong here than the ones I have identified and moved in
this, first, pass.

Approved in principle by: marcus
@
text
@d303 1
d310 1
@


1.54
log
@Use PTHREAD_LIBS only if OSVERSION >= 500016.
This fixes compilation of mod_php with apache2-worker on -stable.

PR:		ports/62729
Submitted by:	Maxim Maximov <mcsi@@portpc-design.spb.ru>
Approved by:	nork (mentor/implicitly)
@
text
@d621 1
a621 1
LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net/net-snmp4
d623 1
a623 1
LIB_DEPENDS+=	netsnmp.6:${PORTSDIR}/net/net-snmp
@


1.53
log
@Move to httpd.h for apache2 autodetection (as in bsd.php.mk, forgot in my
previous commit).

Noticed by:	kuriyama
Approved by:	nork (mentor/implicitly)
@
text
@a69 6
WITH_PTHREAD_LIBS?=	${PTHREAD_LIBS:S/-l//}
WITH_PTHREAD_CFLAGS?=	${PTHREAD_CFLAGS}

CONFIGURE_ENV=	ac_cv_pthreads_lib=${WITH_PTHREAD_LIBS} \
		ac_cv_pthreads_cflags=${WITH_PTHREAD_CFLAGS}

d549 7
@


1.52
log
@Fix PTHREAD_LIBS and adapt it to apache2 way.

Submitted by:	Xin Li
Approved by:	nork (mentor/implicitly)
@
text
@d557 1
a557 1
.if exists(${LOCALBASE}/include/apache2/apr.h)
@


1.51
log
@Add USE_GETTEXT and bump PORTREVISION.

Submitted by:	trevor
Tested by:	bento
@
text
@d70 5
a74 2
CONFIGURE_ENV=	ac_cv_pthreads_lib=${PTHREAD_LIBS} \
		ac_cv_pthreads_cflags=${PTHREAD_CFLAGS}
@


1.50
log
@Add workaround to silent bento, complaining php extensions remove an extra dir.

Reported by:	bento via kris
Approved by:	kris, nork (mentor/implicitly)
@
text
@d24 1
a24 1
PORTREVISION=	5
d329 1
a329 1
LIB_DEPENDS+=	intl.5:${PORTSDIR}/devel/gettext-old
@


1.49
log
@- Add support for PTHREAD_{LIBS/CFLAGS} [1]
- Add support for FastCGI [2]
- Fix PEAR installation in a particular scenario [3]

PR:		ports/61790 [2]
Submitted by:	clement [1],
		Xavier Beaudouin <kiwi@@oav.net> [2],
		Balazs Nagy <js@@iksz.hu> [3]
Approved by:	nork (mentor/implicitly)
@
text
@d708 1
@


1.48
log
@- Better handling of snmp dependency [1]
- Add support for BDB 4.1 [2]
- Better handling of postgresql dependency [3]
- Add new direct I/O extension [4]

PR:		58920 [1], 60541 [2], 61409 [3]
Submitted by:	Dirk Meyer <dirk.meyer@@dinoex.sub.org> [1] [3],
		Sunpoet Po-Chuan Hsieh <sunpoet@@sunpoet.net> [2],
		Izzy Kindred <ikindred@@cox.net> [4]
Approved by:	nork (mentor/implicitly)
@
text
@d70 3
d109 4
d114 3
a133 3
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
SAPI_FILE=	"bin/php"
.endif
d702 1
a702 1
.if !defined(WITHOUT_CLI)
@


1.47
log
@Now gettext 0.12.1 is gettext-old.
@
text
@d68 1
d128 1
a128 1
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX \
d245 2
d248 3
d266 4
d446 2
a447 1
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql-client
d609 1
a609 1
.if exists(${LOCALBASE}/lib/libsnmp.so.4)
d621 2
@


1.46
log
@Switch to my @@FreeBSD.org email address.

Approved by:	nork (mentor)
@
text
@d312 1
a312 1
LIB_DEPENDS+=	intl.5:${PORTSDIR}/devel/gettext
@


1.45
log
@Add MS-SQL support.
Chase freetds lib. Bump PORTREVISION.

Requested by:	many
Submitted by:	Michael Ranner <mranner@@inode.at>
Approved by:	nork (mentor/implicitly)
@
text
@d50 1
a50 1
MAINTAINER?=	sysadmin@@alexdupre.com
@


1.44
log
@- Fix apache2 dependency (this was broken by the introduction
  of the APACHE_PORT variable in bsd.port.mk).
- Fix php5 pkg-list when built without sqlite.

Approved by:	nork (mentor/implicitly)
@
text
@d24 1
a24 1
PORTREVISION=	4
d130 5
a134 5
		MCRYPT MHASH MIME MING MNOGOSEARCH MYSQL NCURSES OPENLDAP \
		OPENSSL ORACLE OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL \
		PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB \
		SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML XMLRPC \
		XSLT YAZ YP ZIP ZLIB
d382 5
d467 1
a467 1
LIB_DEPENDS+=	sybdb.3:${PORTSDIR}/databases/freetds
d472 1
a472 1
LIB_DEPENDS+=	ct.1:${PORTSDIR}/databases/freetds
@


1.43
log
@o Adapt php4 Makefile and bsd.php.mk to support apache2-worker.
o Small other fixes.

PR:		ports/56205[1], ports/61169[2]
Submitted by:	Christian Ullrich <chris+freebsd@@chrullrich.de> [1]
		ale (maintainer) [2]
@
text
@d537 1
a537 1
APACHE_PORT?=	www/apache2
@


1.42
log
@[Forced commit]

Remove unnecessary patch, and Bump PORTREVISION.

Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@a89 5
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
EXT_DIR:=	${EXT_DIR}-debug
.endif

d533 1
d536 1
d540 3
d552 5
a682 1
	@@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php
@


1.41
log
@Remove unnecessary patch, and Bump PORTREVISION.

Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@@


1.40
log
@- since 4.3.4, php4 does not install libmbfl headers, but they
  are still needed for PECL extensions that rely on mbstring
  (e.g. mail/pear-mailparse, currently broken);

Remark: the proposed patch comes from PHP's CVS (please see
<http://groups.google.com/groups?selm=cvswez1068253752%40cvsserver>).

- the next release of devel/pear-PEAR (1.3) depends of the extension
  xmlrpc;

- since I'm there, let slaves ports replace COMMENT.

PR:		ports/59591
Submitted By:	Thierry Thomas <thierry@@pompo.net>
Approved By:	maintainer
@
text
@d24 1
a24 1
PORTREVISION=	3
@


1.39
log
@PR:		59958
@
text
@d24 1
a24 1
PORTREVISION=	2
d51 1
a51 1
COMMENT=	PHP Scripting Language (Apache Module and CLI)
d179 6
@


1.38
log
@A completely new bsd.php.mk file for checking and selecting dependencies
on various php ports. The system is backward compatible and adds the
WANT_PHP_PEAR knob and support for PHP5 (lang/php5 will be updated in a
next PR). It works much better and is more flexible (a future addition will
be support for Apache 2 compiled with threads).
This is the last step before moving the bsd.php.mk file into /usr/ports/Mk
with the addition of USE_PHP={yes,4,5} global knob.

While I'm here, remove the DEBUG option from the extension list and change the
postgresql dependency.

PR:		59418
Submitted by:	MAINTAINER
@
text
@d430 1
a430 1
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql7-client
@


1.37
log
@Chase libnetsnmp shlib major version number and bump ${PORTREVISION}.
@
text
@d24 1
a24 1
PORTREVISION=	1
d90 5
d133 1
a133 1
		DEBUG DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT \
a258 5
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
EXT_DIR:=${EXT_DIR}-debug
.endif

d430 1
a430 1
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql7
d629 23
a652 1
post-build:
d657 1
d659 1
d671 1
@


1.36
log
@Allow compiling with debugging enabled.

PR:		58851
Submitted By:	jeh
@
text
@d24 1
a24 1
PORTREVISION=	0
d585 1
a585 1
LIB_DEPENDS+=	netsnmp.5:${PORTSDIR}/net/net-snmp
@


1.35
log
@Use the new Apache bits from bsd.port.mk.

Submitted by:	dinoex
@
text
@d128 2
a129 2
		DOMXML DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT GMP \
		HYPERWAVE ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE \
d252 5
@


1.34
log
@Update to 4.3.4 final release.

PR:		58914
Submitted by:	MAINTAINER
@
text
@a524 1
APXS?=		${LOCALBASE}/sbin/apxs
d529 1
a529 1
APACHE_PORT?=	${PORTSDIR}/www/apache2
d533 1
a533 1
APACHE_PORT?=	${PORTSDIR}/www/apache13
d537 2
a538 2
BUILD_DEPENDS+=	${APXS}:${APACHE_PORT}
RUN_DEPENDS+=	${APXS}:${APACHE_PORT}
@


1.33
log
@Chase the libxslt shared lib version with a PORTREVISION bump.
@
text
@d23 1
a23 1
PORTVERSION=	4.3.4.r1
d48 1
a48 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:rc
a145 7
.if !defined(WITHOUT_APACHE)
APXS?=		${LOCALBASE}/sbin/apxs
PLIST_SUB+=	APACHE=""
.else
PLIST_SUB+=	APACHE="@@comment "
.endif

d338 1
a338 1
CONFIGURE_ARGS+=--enable-mbstring --enable-mbregex
d525 1
@


1.32
log
@- Fix BUILD_DEPENDS
@
text
@d267 1
a267 1
LIB_DEPENDS+=	xslt.1:${PORTSDIR}/textproc/libxslt
@


1.31
log
@- re-enable auto-detection for APACHE2
PR:		57699
Submitted by:	sysadmin@@alexdupre.com
@
text
@d544 2
a545 2
BUILD_DEPENDS=	${APXS}:${APACHE_PORT}
RUN_DEPENDS=	${APXS}:${APACHE_PORT}
@


1.30
log
@Mega-patch:
- Add mnogosearch extension
- Use USE_OPENSSL knob instead of direct including of bsd.openssl.mk
- Fix OpenSSL undefind symbols at runtime
- Fix OpenLDAP/MySQL dependencies, by moving down the inclusion of the
  bsd.port.pre.mk makefile
- Fix make describe/all-depends-list to catch correct libraries
- Fix mcrypt extension (add ltdl dependency)

PR:		57699
Submitted by:	sysadmin@@alexdupre.co
@
text
@d532 3
a534 1
APXS?=		${LOCALBASE}/sbin/apxs
@


1.29
log
@Fix for the OpenSSL extension

PR:		57437
Submitted by:	sysadmin@@alexdupre.com
@
text
@d130 5
a134 4
		MCRYPT MHASH MIME MING MYSQL NCURSES OPENLDAP OPENSSL ORACLE \
		OVERLOAD PCNTL PCRE PDFLIB POSIX POSTGRESQL PSPELL READLINE \
		RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB SYBASECT SYSVSEM \
		SYSVSHM TOKENIZER UNIXODBC WDDX XML XMLRPC XSLT YAZ YP ZIP ZLIB
a145 6
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif

a146 4
.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2=	yes
.endif

a147 14

.if defined(WITH_APACHE2)
APACHE_PORT?=	${PORTSDIR}/www/apache2
CONFIGURE_ARGS+=--with-apxs2=${APXS}
SAPI_FILE=	libexec/apache2/libphp4.so
.else
APACHE_PORT?=	${PORTSDIR}/www/apache13
CONFIGURE_ARGS+=--with-apxs=${APXS}
SAPI_FILE=	libexec/apache/libphp4.so
.endif

BUILD_DEPENDS+=	${APXS}:${APACHE_PORT}
RUN_DEPENDS+=	${APXS}:${APACHE_PORT}

a152 3
PLIST_SUB+=	SAPI_FILE=${SAPI_FILE} \
		EXT_DIR=${EXT_DIR}

d166 3
a178 5
.ifmake describe
WITH_MYSQL=	yes
WITH_XML=	yes
.endif

d328 1
a334 18
.if defined(WITH_IMAP)
LIB_DEPENDS+=	c-client4.8:${PORTSDIR}/mail/cclient
.if !exists(${LOCALBASE}/lib/libc-client4.so)
.if !defined(WITHOUT_SSL)
CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
.endif
.else
WITH_IMAP_SSL!=/usr/bin/ldd ${LOCALBASE}/lib/libc-client4.so | ${GREP} libssl || ${TRUE}
.if !empty(WITH_IMAP_SSL)
CONFIGURE_ARGS+=--with-imap=${LOCALBASE} --with-imap-ssl=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-imap=${LOCALBASE}
.endif
.endif
.endif

d360 1
d378 5
a387 10
.if defined(WITH_NCURSES)
.if ${OSVERSION} < 400000
NCURSESBASE=	${LOCALBASE}
LIB_DEPENDS+=	ncurses.5:${PORTSDIR}/devel/ncurses
.else
NCURSESBASE=	/usr
.endif
CONFIGURE_ARGS+=--with-ncurses=${NCURSESBASE}
.endif

d394 3
a396 1
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
a457 9
.if defined(WITH_SNMP)
.if exists(${LOCALBASE}/lib/libsnmp.so.4)
LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net/net-snmp4
.else
LIB_DEPENDS+=	netsnmp.5:${PORTSDIR}/net/net-snmp
.endif
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
.endif

d495 1
d499 1
a499 1
CONFIGURE_ARGS+=--enable-xml --with-expat-dir=${LOCALBASE}
d527 61
@


1.28
log
@o Update to 4.3.4RC1.
o Sync with latest PHP5 changes (new DB4 extension,
  use correct knobs, etc...)

PR:		ports/57399
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d443 1
a443 1
USE_OPENSSL=	yes
@


1.27
log
@chase print/pdflib libversion upgrade

PR:		ports/57204
@
text
@d23 1
a23 1
PORTVERSION=	4.3.3
d48 1
a48 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:release
a67 1
USE_LIBTOOL_VER=14
d114 6
d127 7
a133 7
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DBASE DBX DOMXML \
		DOMXSLT EXIF FILEPRO FRIBIDI FTP GD GDBM GETTEXT GMP HYPERWAVE \
		ICONV IMAP INTERBASE INIFILE MBSTRING MCAL MCVE MCRYPT MHASH \
		MIME MING MYSQL NCURSES OPENLDAP OPENSSL ORACLE OVERLOAD PCNTL \
		PCRE PDFLIB POSIX POSTGRESQL PSPELL READLINE RECODE SESSION \
		SHMOP SNMP SOCKETS SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER \
		UNIXODBC WDDX XML XMLRPC XSLT YAZ YP ZIP ZLIB
d211 1
a211 1
.if defined(WITH_CDB) || defined(WITH_GDBM) || defined(WITH_INIFILE)
d223 2
a224 2
.if defined(WITH_SNMP)
WITH_OPENSSL=	yes
d272 5
d423 1
a423 7
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
.elif exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
LIB_DEPENDS+=	mysqlclient.14:${PORTSDIR}/databases/mysql41-client
.else
LIB_DEPENDS+=	mysqlclient.12:${PORTSDIR}/databases/mysql40-client
.endif
d438 1
a438 13
.if exists(${LOCALBASE}/lib/libldap.so.1)
LIB_DEPENDS+=	ldap.1:${PORTSDIR}/net/openldap12
.elif exists(${LOCALBASE}/lib/libldap.so.2)
.if exists(${LOCALBASE}/include/srchpref.h)
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap20-client
.elif exists(${LOCALBASE}/include/slapi-plugin.h)
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap22-client
.else
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21-client
.endif
.else
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap22-client
.endif
d443 2
a444 6
.if exists(${LOCALBASE}/lib/libcrypto.so.3)
OPENSSLBASE=	${LOCALBASE}
LIB_DEPENDS+=	crypto.3:${PORTSDIR}/security/openssl
.else
OPENSSLBASE=	/usr
.endif
@


1.26
log
@Update to 4.3.3 final release.

PR:		ports/55990
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d482 1
a482 1
LIB_DEPENDS+=	pdf.5:${PORTSDIR}/print/pdflib
@


1.25
log
@Chase the libintl.so shared lib version.
@
text
@d23 1
a23 1
PORTVERSION=	4.3.3.r4
d48 1
a48 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:rc
@


1.24
log
@Update to 4.3.3RC4.

PR:		ports/55713
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d331 1
a331 1
LIB_DEPENDS+=	intl.4:${PORTSDIR}/devel/gettext
@


1.23
log
@Fix non-default dependency on openldap2[012] which is broken by splitting.

# I'm not bumped port revision of them because this should not affect
# packages built on bento...
@
text
@d23 1
a23 1
PORTVERSION=	4.3.3.r2
a139 2
PBDIR=		${PREFIX}/share/pear/boot

d436 6
a441 2
.elif exists(${LOCALBASE}/lib/libldap.la)
.if exists(${LOCALBASE}/bin/ldapwhoami)
a442 2
.else
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap20-client
@


1.22
log
@Chase the zzip shared lib version.

PR:		55197
Submitted by:	maintainer
@
text
@d440 1
a440 1
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
d442 1
a442 1
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap20
d445 1
a445 1
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap22
@


1.21
log
@fix MASTER_SITES and split them into release-candidate and release sections

Approved by:	maintainer
@
text
@d588 1
a588 1
LIB_DEPENDS+=	zzip-0.10:${PORTSDIR}/devel/zziplib
@


1.20
log
@o Update to 4.3.3RC2.
o Add identification to php4 configuration dialog [1].
o Fix incorrect detecting of OpenLDAP dependency [2].

PR:		ports/55100, ports/54283[1], ports/54726[2]
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
		Mark Linimon <linimon@@lonesome.com> [1]
		Jens Rehsack <rehsack@@liwing.de> [2]
@
text
@d26 10
a35 9
MASTER_SITES=	http://www.php.net/distributions/ \
		http://it.php.net/distributions/ \
		http://fi.php.net/distributions/ \
		http://de.php.net/distributions/ \
		http://gr.php.net/distributions/ \
		http://fr.php.net/distributions/ \
		http://es.php.net/distributions/ \
		http://se.php.net/distributions/ \
		http://downloads.php.net/jani/
d48 1
@


1.19
log
@o Add default overload extension.
o Add WITH_REGEX_TYPE knob [1].
o Small fixes.

PR:		ports/54061
Requsted by:	Jens Rehsack [1]
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d23 2
a24 2
PORTVERSION=	4.3.3.r1
PORTREVISION=	1
d101 1
d415 1
a415 2
.else
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.14)
a419 1
.endif
d436 3
d440 4
a443 1
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
@


1.18
log
@o Switch to libtool 1.4.
o Add WITHOUT_IPV6 knob (Requested by Jens Rehsack <rehsack@@liwing.de>
  in ports/53754, implemented in a slightly different way).
o Add GIF and animated GIF write support by default in GD and add
  WITH_LZW knob to enable the LZW compression algorithm (patented
  in some countries).
o Removed gd_gif_out.diff patch and added many new patches.

PR:		ports/53754, ports/53879
Requested by:	Jens Rehsack <rehsack@@liwing.de>
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d10 3
a12 3
# By default, the enabled extensions are: CTYPE, MYSQL, PCRE, POSIX, SESSION,
# TOKENIZER, XML and ZLIB. This behaviour can be changed overriding the
# PHP4_OPTIONS variable (e.g. PHP4_OPTIONS="EXT1 EXT2 EXT3").
d74 12
d122 3
a124 3
		MIME MING MYSQL NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE \
		PDFLIB POSIX POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP \
		SNMP SOCKETS SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER \
d176 1
a176 1
PHP4_OPTIONS?=	CTYPE MYSQL PCRE POSIX SESSION TOKENIZER XML ZLIB
a216 4
.if defined(WITH_POSTGRESQL)
WITH_OPENSSL_DEP=	yes
.endif

d221 1
a221 1
.if defined(WITH_WDDX) || defined(WITH_XMLRPC) || defined(WITH_XSLT)
d225 4
d311 1
d460 4
@


1.17
log
@Improve SNMP support (fix openssl dependency and add net-snmp5 support).

PR:		ports/53687
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d66 1
a66 1
USE_LIBTOOL=	yes
d129 1
a129 1
.if ${OSVERSION} < 400014
d306 3
a575 3
.if defined(WITH_GD_GIF_OUT)
	@@${PATCH} -b .orig -d ${WRKSRC} -N -s -E -p1 -t < ${FILESDIR}/gd_gif_out.diff
.endif
d580 1
d597 4
a601 1
	@@${ECHO_CMD} ""
@


1.16
log
@o Add FriBiDi extension [1]
o New patch-main::main.c file [2]:
  - Fixed bug #24253 (missing variables when register_globals is on)
  - Fixed a memory leak when more then 1 E|S flag is passed to gpc_order.
  - Fixed a memory leak when variables_order is not set and gpc_order
    has S|s flag.
  - Optimized out duplicate parsing of the variables order string.

PR:		ports/53609
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
Patched by:	Thierry Thomas [1]
Requested by:	Ian Service [2]
@
text
@d205 1
a205 1
.if defined(WITH_SNMP) || defined(WITH_POSTGRESQL)
d209 4
d491 1
d493 3
@


1.15
log
@Add gif and animated-gif write support to GD extension.
(enable with WITH_GD_GIF_OUT - not default due to LZW
patent in many countries)

PR:		ports/53631
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d24 1
d108 6
a113 6
		DOMXSLT EXIF FILEPRO FTP GD GDBM GETTEXT GMP HYPERWAVE ICONV \
		IMAP INTERBASE INIFILE MBSTRING MCAL MCVE MCRYPT MHASH MIME \
		MING MYSQL NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB \
		POSIX POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP SNMP \
		SOCKETS SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC \
		WDDX XML XMLRPC XSLT YAZ YP ZIP ZLIB
d278 5
@


1.14
log
@o Update to 4.3.3RC1.
o Add inifile and cdb extensions.
o Fix imap without ssl(inspired from ports/53141).
o Rename some variable for future compatability (PHP => PHP4)
  (inspired from ports/53113, points 1 and 4 - point 2 is useless).

PR:		ports/53498
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
Inspired by:	ports/53141 (Torsten Schneider <fbsd-bugs@@tschneider.org>)
Inspired by:	ports/53113 (Jens Rehsack      <rehsack@@liwing.de>)
@
text
@d559 3
@


1.13
log
@Add Oracle7 support into PHP4.

PR:		ports/53017
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
Obtained from:	ports/52615
Obtained by:	Joe Kelsey <joek@@zircon.staff.flyingcroc.net>
@
text
@d12 1
a12 1
# PHP_OPTIONS variable (e.g. PHP_OPTIONS="EXT1 EXT2 EXT3").
d17 3
a19 3
# The last way reads an "extension" file, located in ~/php_options (the
# location is overridable by the OPTION_FILE variable). You may find an
# example in scripts/php_options (interactive mode only).
d23 1
a23 1
PORTVERSION=	4.3.2
d32 2
a33 1
		http://se.php.net/distributions/
d45 1
a45 1
DISTNAME=	php-${PORTVERSION}
d106 1
a106 1
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CRACK CTYPE CURL DBASE DBX DOMXML \
d108 5
a112 5
		IMAP INTERBASE MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MYSQL \
		NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX \
		POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS \
		SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML \
		XMLRPC XSLT YAZ YP ZIP ZLIB
d161 1
a161 1
OPTION_FILE?=	${HOME}/php_options
d163 1
a163 1
PHP_OPTIONS?=	CTYPE MYSQL PCRE POSIX SESSION TOKENIZER XML ZLIB
d170 1
a170 1
.for opt in ${PHP_OPTIONS}
d178 1
a178 1
		OPTION_FILE="${OPTION_FILE}" \
d192 4
d230 4
d249 4
d300 1
a300 1
CONFIGURE_ARGS+=--enable-dba --with-gdbm=${LOCALBASE}
d327 2
d330 15
@


1.12
log
@Update to 4.3.2 release.

PR:		ports/52784
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d108 4
a111 4
		NCURSES OPENLDAP OPENSSL PCNTL PCRE PDFLIB POSIX POSTGRESQL \
		PSPELL READLINE RECODE SESSION SHMOP SNMP SOCKETS SYBASEDB \
		SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC WDDX XML XMLRPC \
		XSLT YAZ YP ZIP ZLIB
d227 1
d398 6
@


1.11
log
@Prepare for new slave port: www/php4-cgi.

PR:		ports/52617
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d23 1
a23 1
PORTVERSION=	4.3.2.r4
d25 8
a32 2
MASTER_SITES=	http://downloads.php.net/jani/ \
		http://www.gufi.org/~alex/php/
d44 1
a44 1
DISTNAME=	php-${PORTVERSION:S/.r/RC/}
@


1.10
log
@Add completely new port system for PHP4 (4.3.2RC4).  Updated mod_php4
to 4.3.2RC4 release and added php4-cli and php4 ports, for apache
module, command line interface, and both, respectively.  Too many
changes (improvements, bug fixes and new features) to be listed here,

PR:		ports/51945
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d27 1
a27 1
.if defined(WITHOUT_CLI)
d29 1
a29 1
.endif
d31 3
d36 2
d43 3
d48 1
d52 1
d67 1
a67 1
SAPI_FILE=	""
d69 1
d71 9
a79 1
CONFLICTS=	php4-4* mod_php4-4*
d82 6
a88 1
CONFLICTS=	php4-4* php4-cli-4*
d95 3
a97 2

CONFLICTS?=	php4-cli-4* mod_php4-4*
d536 1
a536 5
.if defined(WITHOUT_CLI) && defined(WITHOUT_APACHE)
	@@${ECHO_CMD} "You cannot define WITHOUT_CLI *and* WITHOUT_APACHE!"
	@@${FALSE}
.endif
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
d538 1
a538 1
	@@${ECHO_CMD} "You may use the following build options:"
d540 4
a543 4
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_APACHE)
	@@${ECHO_CMD} "	WITHOUT_CLI=yes		Disable Command Line Interpreter"
	@@${ECHO_CMD} "	WITHOUT_APACHE=yes	Disable Apache Module"
.endif
d547 1
d549 3
a551 3
	@@${ECHO_CMD} ""
	@@${ECHO_CMD} "You may run the tests from the PHP test framework."
	@@${ECHO_CMD} "You can do this by typing 'make test' now."
d557 1
@


1.9
log
@Remove lang/php4 which was integrated into www/mod_php4.
@
text
@d2 2
a3 2
# Date created:		20 February, 2001
# Whom:			Alastair D'Silva <deece@@newmillennium.net.au>
d5 15
a19 1
# $FreeBSD: ports/lang/php4/Makefile,v 1.8 2002/05/17 06:07:00 dirk Exp $
d23 508
a530 2
PORTREVISION=	0
CATEGORIES=	lang
d532 3
a534 4
MASTERDIR=	${.CURDIR}/../../www/mod_php4
COMMENT=	${PKGDIR}/pkg-comment.standalone
PKGMESSAGE=	mustnotexist
PLIST=		${PKGDIR}/pkg-plist.standalone
d536 19
a554 1
STANDALONE=	yes
d556 1
a556 1
.include "${MASTERDIR}/Makefile"
@


1.8
log
@Upgrade to 4.2.1.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.7
log
@Fix mkdir() bug.

PR:		ports/37825
Submitted by:	Jason Taylor <jason@@jase.org>
@
text
@d9 1
a9 1
PORTREVISION=	1
@


1.6
log
@Set PORTREVISION to 0 after upgrading mod_php4 to 4.1.0.
@
text
@d9 1
a9 1
PORTREVISION=	0
@


1.5
log
@Add --enable-discard-path and --with-readline to lang/php4.

Submitted by:	Rafal Michalski <rafal.michalski@@altech.com.pl>
@
text
@d9 1
a9 1
PORTREVISION=	2
@


1.4
log
@ming support was included in php-4.0.6.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/php4/Makefile,v 1.3 2001/06/24 22:37:25 dirk Exp $
d9 1
a9 1
PORTREVISION=	1
@


1.3
log
@Make PORTREVISION independent of master port.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/php4/Makefile,v 1.2 2001/04/22 23:09:14 dirk Exp $
d9 1
a9 1
PORTREVISION=	0
@


1.2
log
@NOPORTDOCS isn't used in the master ports any longer.
@
text
@d5 1
a5 1
# $FreeBSD: ports/lang/php4/Makefile,v 1.1 2001/02/25 21:25:26 dirk Exp $
d9 1
@


1.1
log
@Add new standalone php4 port as a slave port of www/mod_php4.

Based upon work by:	Alastair D'Silva <deece@@familyhealth.com.au>
@
text
@d5 1
a5 1
# $FreeBSD$
a16 1
NOPORTDOCS=	yes
@

