head	1.184;
access;
symbols
	RELEASE_8_3_0:1.168
	RELEASE_9_0_0:1.164
	RELEASE_7_4_0:1.157
	RELEASE_8_2_0:1.157
	RELEASE_6_EOL:1.152
	RELEASE_8_1_0:1.148
	RELEASE_7_3_0:1.141
	RELEASE_8_0_0:1.139
	RELEASE_7_2_0:1.137
	RELEASE_7_1_0:1.133
	RELEASE_6_4_0:1.130
	RELEASE_5_EOL:1.127
	RELEASE_7_0_0:1.122
	RELEASE_6_3_0:1.122
	PRE_XORG_7:1.113
	RELEASE_4_EOL:1.108
	RELEASE_6_2_0:1.105
	RELEASE_6_1_0:1.94
	RELEASE_5_5_0:1.94
	RELEASE_6_0_0:1.84
	RELEASE_5_4_0:1.80
	RELEASE_4_11_0:1.78
	RELEASE_5_3_0:1.74
	RELEASE_4_10_0:1.58
	RELEASE_5_2_1:1.33
	RELEASE_5_2_0:1.33
	RELEASE_4_9_0:1.24
	old_RELEASE_5_1_0:1.10
	old_RELEASE_5_0_0:1.8
	old_RELEASE_4_7_0:1.8
	old_RELEASE_4_6_2:1.8
	old_RELEASE_4_6_1:1.8
	old_RELEASE_4_6_0:1.8
	old_RELEASE_5_0_DP1:1.6
	old_RELEASE_4_5_0:1.6
	old_RELEASE_4_4_0:1.4
	old_RELEASE_4_3_0:1.1;
locks; strict;
comment	@# @;


1.184
date	2013.03.20.13.18.34;	author svnexp;	state Exp;
branches;
next	1.183;

1.183
date	2013.03.12.14.44.32;	author svnexp;	state Exp;
branches;
next	1.182;

1.182
date	2013.02.25.10.49.12;	author svnexp;	state Exp;
branches;
next	1.181;

1.181
date	2013.01.22.08.45.31;	author svnexp;	state Exp;
branches;
next	1.180;

1.180
date	2012.12.20.21.18.31;	author svnexp;	state Exp;
branches;
next	1.179;

1.179
date	2012.12.10.19.24.02;	author svnexp;	state Exp;
branches;
next	1.178;

1.178
date	2012.12.10.14.53.34;	author svnexp;	state Exp;
branches;
next	1.177;

1.177
date	2012.11.17.05.58.55;	author svnexp;	state Exp;
branches;
next	1.176;

1.176
date	2012.10.04.10.00.00;	author ale;	state Exp;
branches;
next	1.175;

1.175
date	2012.08.23.14.54.48;	author ale;	state Exp;
branches;
next	1.174;

1.174
date	2012.08.18.14.29.08;	author ohauer;	state Exp;
branches;
next	1.173;

1.173
date	2012.07.23.23.18.19;	author delphij;	state Exp;
branches;
next	1.172;

1.172
date	2012.06.19.07.44.31;	author ale;	state Exp;
branches;
next	1.171;

1.171
date	2012.05.16.07.36.12;	author ale;	state Exp;
branches;
next	1.170;

1.170
date	2012.05.09.05.43.32;	author ale;	state Exp;
branches;
next	1.169;

1.169
date	2012.04.30.15.06.52;	author ale;	state Exp;
branches;
next	1.168;

1.168
date	2012.02.14.12.44.23;	author mm;	state Exp;
branches;
next	1.167;

1.167
date	2012.02.03.09.03.06;	author ale;	state Exp;
branches;
next	1.166;

1.166
date	2012.01.12.16.19.13;	author ale;	state Exp;
branches;
next	1.165;

1.165
date	2012.01.01.16.47.33;	author ohauer;	state Exp;
branches;
next	1.164;

1.164
date	2011.08.24.06.48.06;	author ale;	state Exp;
branches;
next	1.163;

1.163
date	2011.08.22.13.56.38;	author ale;	state Exp;
branches;
next	1.162;

1.162
date	2011.08.22.08.07.15;	author ale;	state Exp;
branches;
next	1.161;

1.161
date	2011.08.20.17.27.33;	author ohauer;	state Exp;
branches;
next	1.160;

1.160
date	2011.08.19.09.33.30;	author ale;	state Exp;
branches;
next	1.159;

1.159
date	2011.06.17.06.40.03;	author ale;	state Exp;
branches;
next	1.158;

1.158
date	2011.03.18.09.23.19;	author ale;	state Exp;
branches;
next	1.157;

1.157
date	2011.01.09.08.47.47;	author ale;	state Exp;
branches;
next	1.156;

1.156
date	2010.12.31.10.15.54;	author ale;	state Exp;
branches;
next	1.155;

1.155
date	2010.12.23.08.56.31;	author ale;	state Exp;
branches;
next	1.154;

1.154
date	2010.12.20.11.34.20;	author ale;	state Exp;
branches;
next	1.153;

1.153
date	2010.12.04.07.32.23;	author ade;	state Exp;
branches;
next	1.152;

1.152
date	2010.10.16.11.52.15;	author ade;	state Exp;
branches;
next	1.151;

1.151
date	2010.09.15.18.34.39;	author ade;	state Exp;
branches;
next	1.150;

1.150
date	2010.08.25.12.42.20;	author ale;	state Exp;
branches;
next	1.149;

1.149
date	2010.07.27.15.13.52;	author ale;	state Exp;
branches;
next	1.148;

1.148
date	2010.06.25.07.44.18;	author ale;	state Exp;
branches;
next	1.147;

1.147
date	2010.05.31.01.59.34;	author ade;	state Exp;
branches;
next	1.146;

1.146
date	2010.05.10.06.03.31;	author ale;	state Exp;
branches;
next	1.145;

1.145
date	2010.04.16.13.52.11;	author ale;	state Exp;
branches;
next	1.144;

1.144
date	2010.04.09.09.34.41;	author ale;	state Exp;
branches;
next	1.143;

1.143
date	2010.04.05.18.57.38;	author dinoex;	state Exp;
branches;
next	1.142;

1.142
date	2010.04.03.10.44.18;	author roam;	state Exp;
branches;
next	1.141;

1.141
date	2009.12.29.14.39.10;	author ale;	state Exp;
branches;
next	1.140;

1.140
date	2009.10.12.13.14.26;	author ale;	state Exp;
branches;
next	1.139;

1.139
date	2009.09.22.10.36.31;	author ale;	state Exp;
branches;
next	1.138;

1.138
date	2009.06.25.06.25.45;	author ale;	state Exp;
branches;
next	1.137;

1.137
date	2009.03.25.12.39.49;	author mm;	state Exp;
branches;
next	1.136;

1.136
date	2009.03.11.14.02.59;	author ale;	state Exp;
branches;
next	1.135;

1.135
date	2009.03.06.10.08.33;	author ale;	state Exp;
branches;
next	1.134;

1.134
date	2008.12.11.08.46.36;	author ale;	state Exp;
branches;
next	1.133;

1.133
date	2008.12.08.13.27.50;	author ale;	state Exp;
branches;
next	1.132;

1.132
date	2008.12.08.11.48.10;	author ale;	state Exp;
branches;
next	1.131;

1.131
date	2008.12.07.11.54.34;	author ale;	state Exp;
branches;
next	1.130;

1.130
date	2008.09.04.13.55.11;	author ale;	state Exp;
branches;
next	1.129;

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

1.128
date	2008.08.20.00.56.52;	author ade;	state Exp;
branches;
next	1.127;

1.127
date	2008.05.12.07.25.01;	author ale;	state Exp;
branches;
next	1.126;

1.126
date	2008.05.02.08.52.07;	author ale;	state Exp;
branches;
next	1.125;

1.125
date	2008.03.20.09.51.33;	author pav;	state Exp;
branches;
next	1.124;

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

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

1.122
date	2007.11.14.07.38.31;	author ale;	state Exp;
branches;
next	1.121;

1.121
date	2007.09.30.04.47.00;	author linimon;	state Exp;
branches;
next	1.120;

1.120
date	2007.09.14.06.29.30;	author ale;	state Exp;
branches;
next	1.119;

1.119
date	2007.07.28.06.33.54;	author ade;	state Exp;
branches;
next	1.118;

1.118
date	2007.06.20.06.01.50;	author ale;	state Exp;
branches;
next	1.117;

1.117
date	2007.06.04.18.30.54;	author ale;	state Exp;
branches;
next	1.116;

1.116
date	2007.05.25.06.27.08;	author ale;	state Exp;
branches;
next	1.115;

1.115
date	2007.05.22.10.12.51;	author erwin;	state Exp;
branches;
next	1.114;

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

1.113
date	2007.02.28.01.19.01;	author kuriyama;	state Exp;
branches;
next	1.112;

1.112
date	2007.02.20.06.56.06;	author ale;	state Exp;
branches;
next	1.111;

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

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

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

1.108
date	2006.12.10.15.04.17;	author ale;	state Exp;
branches;
next	1.107;

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

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

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

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

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

1.102
date	2006.10.05.20.59.17;	author ale;	state Exp;
branches;
next	1.101;

1.101
date	2006.09.29.19.11.40;	author ale;	state Exp;
branches;
next	1.100;

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

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

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

1.97
date	2006.08.18.16.41.29;	author delphij;	state Exp;
branches;
next	1.96;

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

1.95
date	2006.05.06.13.26.47;	author ale;	state Exp;
branches;
next	1.94;

1.94
date	2006.01.31.08.36.02;	author ale;	state Exp;
branches;
next	1.93;

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

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

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

1.90
date	2005.12.04.00.18.08;	author clement;	state Exp;
branches;
next	1.89;

1.89
date	2005.11.30.05.23.06;	author kuriyama;	state Exp;
branches;
next	1.88;

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

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

1.86
date	2005.09.20.19.46.15;	author clement;	state Exp;
branches;
next	1.85;

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

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

1.83
date	2005.05.17.16.09.29;	author sem;	state Exp;
branches;
next	1.82;

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

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

1.80
date	2005.03.26.22.05.57;	author kris;	state Exp;
branches;
next	1.79;

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

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

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

1.76
date	2004.12.06.10.01.54;	author kuriyama;	state Exp;
branches;
next	1.75;

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

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

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

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

1.71
date	2004.07.19.22.12.09;	author ale;	state Exp;
branches;
next	1.70;

1.70
date	2004.07.19.07.05.33;	author ale;	state Exp;
branches;
next	1.69;

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

1.68
date	2004.06.28.09.03.19;	author ale;	state Exp;
branches;
next	1.67;

1.67
date	2004.06.25.11.21.01;	author ale;	state Exp;
branches;
next	1.66;

1.66
date	2004.06.08.13.56.24;	author ale;	state Exp;
branches;
next	1.65;

1.65
date	2004.06.04.17.29.24;	author ade;	state Exp;
branches;
next	1.64;

1.64
date	2004.06.03.22.41.38;	author roam;	state Exp;
branches;
next	1.63;

1.63
date	2004.05.29.22.42.57;	author anholt;	state Exp;
branches;
next	1.62;

1.62
date	2004.05.25.09.19.41;	author mat;	state Exp;
branches;
next	1.61;

1.61
date	2004.05.24.13.37.35;	author knu;	state Exp;
branches;
next	1.60;

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

1.59
date	2004.04.28.22.23.19;	author ale;	state Exp;
branches;
next	1.58;

1.58
date	2004.03.30.19.20.20;	author krion;	state Exp;
branches;
next	1.57;

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

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

1.55
date	2004.03.19.10.54.10;	author ale;	state Exp;
branches;
next	1.54;

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

1.53
date	2004.03.14.07.58.21;	author kuriyama;	state Exp;
branches;
next	1.52;

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

1.51
date	2004.03.08.23.12.48;	author ale;	state Exp;
branches;
next	1.50;

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

1.49
date	2004.02.23.04.41.01;	author wollman;	state Exp;
branches;
next	1.48;

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

1.47
date	2004.02.12.14.24.55;	author ale;	state Exp;
branches;
next	1.46;

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

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

1.44
date	2004.02.04.04.36.06;	author marcus;	state Exp;
branches;
next	1.43;

1.43
date	2004.01.26.12.58.14;	author ale;	state Exp;
branches;
next	1.42;

1.42
date	2004.01.24.13.15.54;	author ale;	state Exp;
branches;
next	1.41;

1.41
date	2004.01.23.18.12.01;	author trevor;	state Exp;
branches;
next	1.40;

1.40
date	2004.01.18.10.50.15;	author ale;	state Exp;
branches;
next	1.39;

1.39
date	2004.01.15.23.31.49;	author ale;	state Exp;
branches;
next	1.38;

1.38
date	2004.01.14.15.09.26;	author ale;	state Exp;
branches;
next	1.37;

1.37
date	2004.01.10.16.49.00;	author nork;	state Exp;
branches;
next	1.36;

1.36
date	2003.12.29.14.29.59;	author pav;	state Exp;
branches;
next	1.35;

1.35
date	2003.12.22.18.45.22;	author nork;	state Exp;
branches;
next	1.34;

1.34
date	2003.12.04.20.55.20;	author dinoex;	state Exp;
branches;
next	1.33;

1.33
date	2003.11.20.11.10.00;	author jeh;	state Exp;
branches;
next	1.32;

1.32
date	2003.11.18.10.02.28;	author kuriyama;	state Exp;
branches;
next	1.31;

1.31
date	2003.11.07.09.12.48;	author marcus;	state Exp;
branches;
next	1.30;

1.30
date	2003.11.04.18.30.48;	author marcus;	state Exp;
branches;
next	1.29;

1.29
date	2003.10.30.01.52.15;	author nork;	state Exp;
branches;
next	1.28;

1.28
date	2003.10.28.02.50.35;	author kris;	state Exp;
branches;
next	1.27;

1.27
date	2003.10.01.11.34.23;	author dinoex;	state Exp;
branches;
next	1.26;

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

1.25
date	2003.09.24.08.49.20;	author edwin;	state Exp;
branches;
next	1.24;

1.24
date	2003.08.26.20.25.47;	author marcus;	state Exp;
branches;
next	1.23;

1.23
date	2003.08.25.05.41.28;	author marcus;	state Exp;
branches;
next	1.22;

1.22
date	2003.08.15.00.49.26;	author kuriyama;	state Exp;
branches;
next	1.21;

1.21
date	2003.07.17.02.29.15;	author nork;	state Exp;
branches;
next	1.20;

1.20
date	2003.07.16.10.59.22;	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.184
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/314716
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Alex Dupre <ale@@FreeBSD.org>
# $FreeBSD: head/lang/php5/Makefile 314716 2013-03-20 08:15:37Z ale $

PORTNAME=	php5
PORTVERSION=	5.4.13
PORTREVISION?=	0
CATEGORIES?=	lang devel www
MASTER_SITES=	${MASTER_SITE_PHP}
MASTER_SITE_SUBDIR=	distributions
DISTNAME=	php-${PORTVERSION}

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

LICENSE=	PHP301

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

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

LIB_DEPENDS=	pcre:${PORTSDIR}/devel/pcre

CONFIGURE_ARGS=	\
		--with-layout=GNU \
		--localstatedir=/var \
		--with-config-file-scan-dir=${PREFIX}/etc/php \
		--disable-all \
		--enable-libxml \
		--enable-mysqlnd \
		--with-libxml-dir=${LOCALBASE} \
		--with-pcre-regex=${LOCALBASE} \
		--with-zlib-dir=/usr \
		--program-prefix=""

USE_GNOME=	libxml2

OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR
OPTIONS_DEFAULT=CLI CGI IPV6 LINKTHR

CLI_DESC=	Build CLI version
CGI_DESC=	Build CGI version
FPM_DESC=	Build FPM version
APACHE_DESC=	Build Apache module
AP2FILTER_DESC=	Use Apache 2.x filter interface (experimental)
EMBED_DESC=	Build embedded library
DEBUG_DESC=	Enable debug
DTRACE_DESC=	Enable DTrace support
IPV6_DESC=	Enable ipv6 support
MAILHEAD_DESC=	Enable mail header patch
LINKTHR_DESC=	Link thread lib (for threaded extensions)

CONFLICTS=	php52-5* php53-5*

MAN1=		php-config.1 phpize.1

.include <bsd.port.pre.mk>

PATCH_DIST_STRIP=	-p1

PATCH_SITES+=	${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=	ale

.if ${PORT_OPTIONS:MMAILHEAD}
PATCHFILES+=	php-5.4.x-mail-header.patch:mail
PATCH_SITES+=	http://choon.net/opensource/php/:mail
.endif

.if ${PORT_OPTIONS:MCLI}
PHP_SAPI+=	cli
PLIST_SUB+=	CLI=""
MAN1+=		php.1
.else
PLIST_SUB+=	CLI="@@comment "
CONFIGURE_ARGS+=--disable-cli
.endif

.if ${PORT_OPTIONS:MCGI}
PHP_SAPI+=	cgi
PLIST_SUB+=	CGI=""
.else
PLIST_SUB+=	CGI="@@comment "
CONFIGURE_ARGS+=--disable-cgi
.endif

.if ${PORT_OPTIONS:MFPM}
PHP_SAPI+=	fpm
MAN8+=		php-fpm.8
USE_RC_SUBR+=	php-fpm
CONFIGURE_ARGS+=--enable-fpm \
		--with-fpm-user=${WWWOWN} \
		--with-fpm-group=${WWWGRP}
PLIST_SUB+=	FPM=""
.else
PLIST_SUB+=	FPM="@@comment "
.endif

.if ${PORT_OPTIONS:MAPACHE} && ${PORT_OPTIONS:MEMBED}
IGNORE=		cannot be built with multiple SAPI (apache and embedded)
.endif

.if ${PORT_OPTIONS:MAPACHE}
PHP_SAPI+=	mod
USE_APACHE=	22+
.include "${PORTSDIR}/Mk/bsd.apache.mk"
.if ${PORT_OPTIONS:MAP2FILTER}
CONFIGURE_ARGS+=--with-apxs2filter=${APXS}
.else
CONFIGURE_ARGS+=--with-apxs2=${APXS}
.endif
PKGMESSAGE=	${PKGDIR}/pkg-message.mod
MODULENAME=	lib${PORTNAME}
SHORTMODNAME=	${PORTNAME}
PLIST_SUB+=	APACHE=""
.else
PLIST_SUB+=	APACHE="@@comment "
.endif

.if ${PORT_OPTIONS:MEMBED}
PHP_SAPI+=	embed
CONFIGURE_ARGS+=--enable-embed
PLIST_SUB+=	EMBED=""
.else
PLIST_SUB+=	EMBED="@@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
.endif

.if !defined(WITH_ZEND_VM) || ${WITH_ZEND_VM} == "CALL"
CONFIGURE_ARGS+=--with-zend-vm=CALL
.elif defined(WITH_ZEND_VM) && ${WITH_ZEND_VM} == "SWITCH"
CONFIGURE_ARGS+=--with-zend-vm=SWITCH
.elif defined(WITH_ZEND_VM) && ${WITH_ZEND_VM} == "GOTO"
CONFIGURE_ARGS+=--with-zend-vm=GOTO
.endif

CONFIGURE_ENV+=	ac_cv_pthreads_lib="" \
		ac_cv_pthreads_cflags="" \
		pthreads_working="yes" \
		lt_cv_path_SED="sed"

.if ${PORT_OPTIONS:MLINKTHR}
CONFIGURE_ENV+=	LIBS="${LIBS} ${PTHREAD_LIBS}"
.endif

.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif

.if ${PORT_OPTIONS:MDTRACE}
.if ${OSVERSION} < 900000
IGNORE=		cannot be built with DTrace support on FreeBSD < 9.x
.endif
CONFIGURE_ARGS+=--enable-dtrace
.endif

.if empty(PORT_OPTIONS:MIPV6)
CONFIGURE_ARGS+=--disable-ipv6
.endif

post-patch:
	@@${TOUCH} ${WRKSRC}/ext/php_config.h
	@@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-*
.if ${PORT_OPTIONS:MFPM}
	@@${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \
		${WRKSRC}/sapi/fpm/php-fpm.conf.in
.endif

# 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=5" > ${WRKDIR}/php.conf
	@@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf
	@@${ECHO_CMD} "PHP_SAPI=${PHP_SAPI}" >> ${WRKDIR}/php.conf
	@@${ECHO_CMD} "PHP_EXT_INC=pcre spl" >> ${WRKDIR}/php.conf

test: build
	@@(cd ${WRKSRC} && ${MAKE} test)

post-install:
	@@${INSTALL_DATA} ${WRKSRC}/php.ini-development ${PREFIX}/etc
	@@${INSTALL_DATA} ${WRKSRC}/php.ini-production ${PREFIX}/etc
	@@${INSTALL_DATA} ${WRKDIR}/php.conf ${PREFIX}/etc
	@@${TOUCH} ${PREFIX}/include/php/ext/php_config.h
.if ${PORT_OPTIONS:MFPM}
	@@${CP} -n ${PREFIX}/etc/php-fpm.conf.default ${PREFIX}/etc/php-fpm.conf
.endif
.if ${PORT_OPTIONS:MAPACHE}
	@@${CAT} ${PKGMESSAGE}
.endif

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


1.183
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313958
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/php5/Makefile 313958 2013-03-12 10:33:04Z ale $
d5 1
a5 1
PORTVERSION=	5.4.12
@


1.182
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/312912
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/php5/Makefile 312912 2013-02-25 10:30:40Z ale $
d41 1
a41 1
OPTIONS_DEFINE=	CLI CGI FPM APACHE AP2FILTER EMBED DEBUG DTRACE IPV6 MAILHEAD LINKTHR # SUHOSIN
a49 1
SUHOSIN_DESC=	Enable Suhosin protection system
a66 8
#.if ${PORT_OPTIONS:MSUHOSIN}
#PATCHFILES+=	suhosin-patch-5.3.x-0.9.10.patch.gz
#PATCH_SITES+=	http://download.suhosin.org/:suhosin
#PLIST_SUB+=	SUHOSIN=""
#.else
PLIST_SUB+=	SUHOSIN="@@comment "
#.endif

@


1.181
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/310812
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/php5/Makefile 310812 2013-01-22 08:20:05Z ale $
d5 1
a5 1
PORTVERSION=	5.4.11
@


1.180
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/309326
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r309326 | ale | 2012-12-20 21:15:05 +0000 (Thu, 20 Dec 2012) | 2 lines
## SVN ##
## SVN ## Update to 5.4.10 release.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d2 1
a2 1
# $FreeBSD: head/lang/php5/Makefile 309326 2012-12-20 21:15:05Z ale $
d5 1
a5 1
PORTVERSION=	5.4.10
@


1.179
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308630
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308630 | mm | 2012-12-10 19:11:11 +0000 (Mon, 10 Dec 2012) | 4 lines
## SVN ##
## SVN ## Update PCRE to 8.32
## SVN ## Introduces the UTF-32 library pcre32
## SVN ## Bump PORTREVISION in dependent ports
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 2
a2 6
# New ports collection makefile for:	php5
# Date created:				Tue Feb 18 11:17:13 CET 2003
# Whom:					Alex Dupre <sysadmin@@alexdupre.com>
#
# $FreeBSD: head/lang/php5/Makefile 308630 2012-12-10 19:11:11Z mm $
#
d5 2
a6 2
PORTVERSION=	5.4.9
PORTREVISION?=	1
d25 1
a25 1
LIB_DEPENDS=	pcre.3:${PORTSDIR}/devel/pcre
@


1.178
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308607
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308607 | ale | 2012-12-10 14:46:07 +0000 (Mon, 10 Dec 2012) | 2 lines
## SVN ##
## SVN ## Update to 5.4.9 release.
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/php5/Makefile 308607 2012-12-10 14:46:07Z ale $
d10 1
a10 1
PORTREVISION?=	0
d29 1
a29 1
LIB_DEPENDS=	pcre.1:${PORTSDIR}/devel/pcre
@


1.177
log
@Switch exporter over
@
text
@d5 1
a5 1
# $FreeBSD: head/lang/php5/Makefile 305246 2012-10-04 10:00:00Z ale $
d9 1
a9 1
PORTVERSION=	5.4.7
@


1.176
log
@SVN rev 305246 on 2012-10-04 10:00:00Z by ale

Update to 5.4.7 release.
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.175
log
@SVN rev 303014 on 2012-08-23 14:54:48Z by ale

Update to 5.4.6 release.
@
text
@d9 1
a9 1
PORTVERSION=	5.4.6
@


1.174
log
@SVN rev 302724 on 2012-08-18 14:29:08Z by ohauer

- remove www/apache20 and devel/apr0
- s/USE_APACHE= 20+/USE_APACHE= 22+/
- unify s/YES/yes/
- cleanup APACHE_VERSION <= 22 usage
- add entry to MOVED

with hat apache@@
@
text
@d9 1
a9 1
PORTVERSION=	5.4.5
@


1.173
log
@SVN rev 301417 on 2012-07-23 23:18:19Z by delphij

Update to 5.4.5.

Security:	bdab0acd-d4cd-11e1-8a1c-14dae9ebcf89
With hat:	secteam
@
text
@d120 1
a120 1
USE_APACHE=	20+
@


1.172
log
@Update to 5.4.4 release and switch to OptionsNG.
@
text
@d9 1
a9 1
PORTVERSION=	5.4.4
@


1.171
log
@Update to 5.4.3 release:
- add support for embedded php library
- add support for dtrace

Re-organize bsd.php.mk:
 - add WANT_PHP_EMD
 - fix handling of WANT_PHP_*
 - remove php4 extensions

From UPDATING:
  Suhosin patch has been disabled until the
  new version will be released (soon). Suhosing extension will take more
  time. LINKTHR option is now enabled by default, be sure to flag it if
  you are updating using an old saved configuration. sqlite2 extension
  has been permanently removed.
  If you want to remain at PHP 5.3, a new port (lang/php53) will be
  committed soon.
@
text
@d9 1
a9 1
PORTVERSION=	5.4.3
d25 1
d45 15
a59 12
OPTIONS=	CLI "Build CLI version" on \
		CGI "Build CGI version" on \
		FPM "Build FPM version" off \
		APACHE "Build Apache module" off \
		AP2FILTER " Use Apache 2.x filter interface (experimental)" off \
		EMBED "Build embedded library" off \
		DEBUG "Enable debug" off \
		DTRACE "Enable DTrace support" off \
		IPV6 "Enable ipv6 support" on \
		MAILHEAD "Enable mail header patch" off \
		LINKTHR "Link thread lib (for threaded extensions)" on
#		SUHOSIN "Enable Suhosin protection system" on \
d72 1
a72 1
#.if !defined(WITHOUT_SUHOSIN)
d80 1
a80 1
.if defined(WITH_MAILHEAD)
d85 1
a85 1
.if !defined(WITHOUT_CLI)
d94 1
a94 1
.if !defined(WITHOUT_CGI)
d102 1
a102 1
.if defined(WITH_FPM)
d114 1
a114 1
.if defined(WITH_APACHE) && defined(WITH_EMBED)
d118 1
a118 1
.if defined(WITH_APACHE)
d122 1
a122 1
.if defined(WITH_AP2FILTER)
d135 1
a135 1
.if defined(WITH_EMBED)
d162 1
a162 1
.if defined(WITH_LINKTHR)
d166 1
a166 1
.if defined(WITH_DEBUG)
d170 1
a170 1
.if defined(WITH_DTRACE)
d177 1
a177 1
.if defined(WITHOUT_IPV6)
d184 1
a184 1
.if defined(WITH_FPM)
d210 1
a210 1
.if defined(WITH_FPM)
d213 1
a213 1
.if defined(WITH_APACHE)
@


1.170
log
@Update to 5.3.13 release:
- Fix PHP-CGI query string parameter vulnerability, CVE-2012-1823.
- Improve fix for PHP-CGI query string parameter vulnerability, CVE-2012-2311.
@
text
@d9 1
a9 1
PORTVERSION=	5.3.13
d19 2
d46 1
a46 1
		FPM "Build FPM version (experimental)" off \
d49 1
d51 1
a51 2
		SUHOSIN "Enable Suhosin protection system" on \
		MULTIBYTE "Enable zend multibyte support" off \
d54 2
a55 1
		LINKTHR "Link thread lib (for threaded extensions)" off
d57 1
a57 1
CONFLICTS=	php4-4* php5-pcre-* php5-spl-*
d68 5
a72 5
.if !defined(WITHOUT_SUHOSIN)
PATCHFILES+=	suhosin-patch-5.3.x-0.9.10.patch.gz
PATCH_SITES+=	http://download.suhosin.org/:suhosin
PLIST_SUB+=	SUHOSIN=""
.else
d74 1
a74 1
.endif
d77 1
a77 1
PATCHFILES+=	php-5.3.x-mail-header.patch:mail
d110 4
d131 8
d166 5
a170 2
.if defined(WITH_MULTIBYTE)
CONFIGURE_ARGS+=--enable-zend-multibyte
@


1.169
log
@Update to 5.3.11 release.

Note: this port will be updated to 5.4.x as soon as suhosin will be released,
while php 5.3.x branch will continue to exist in lang/php53.
@
text
@d9 1
a9 1
PORTVERSION=	5.3.11
@


1.168
log
@Bump pcre library dependency due to 8.30 update
Add (vendor) patch for deprecated pcre_info()
@
text
@d9 2
a10 2
PORTVERSION=	5.3.10
PORTREVISION?=	1
d66 1
a66 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz
d74 1
a74 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch
@


1.167
log
@Update to 5.3.10 security-fix release.
(Probably you have to wait for the FreeBSD mirrors to sync up distfiles).
@
text
@d10 1
a10 1
PORTREVISION?=	0
d26 1
a26 1
LIB_DEPENDS=	pcre.0:${PORTSDIR}/devel/pcre
@


1.166
log
@Update to 5.3.9 release.
@
text
@d9 1
a9 1
PORTVERSION=	5.3.9
d66 1
a66 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
@


1.165
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
@d9 1
a9 1
PORTVERSION=	5.3.8
d34 1
d66 1
a66 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz
d141 1
a141 2
		lt_cv_path_SED="sed" \
		PHP_MYSQLND_ENABLED="yes"
@


1.164
log
@Update to 5.3.8 release.
@
text
@d108 1
a108 1
USE_APACHE=	13+
a109 1
.if ${APACHE_VERSION} > 13
a114 3
.else
CONFIGURE_ARGS+=--with-apxs=${APXS}
.endif
@


1.163
log
@Bump PORTREVISION again (the bump for apache was not required) for the latest fix.
Note: PHP 5.3.8 will be in the ports tree very soon.
@
text
@d9 2
a10 2
PORTVERSION=	5.3.7
PORTREVISION?=	2
d65 1
a65 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
@


1.162
log
@Point to upstream suhosin master site.
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.161
log
@ - bump PORTREVISION from ports if USE_APACHE=13+ or 20+ is defined
@
text
@d65 1
a65 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz
@


1.160
log
@Update to 5.3.7 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
d108 1
a108 1
USE_APACHE=	1.3+
@


1.159
log
@Fix CVE-2011-1148, CVE-2011-1938 and CVE-2011-2202.
Bump PORTREVISION.
@
text
@d9 2
a10 2
PORTVERSION=	5.3.6
PORTREVISION?=	1
@


1.158
log
@Update to 5.3.6 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.157
log
@Update to 5.3.5 release to fix CVE-2010-4645.

PR:		ports/153766
Submitted by:	Tom Judge <tom@@tomjudge.com>
@
text
@d9 1
a9 1
PORTVERSION=	5.3.5
d61 3
d65 1
a65 2
#PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
PATCHFILES+=	suhosin-patch-5.3.4-0.9.10.patch.gz:suhosin
d73 1
a73 2
#PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+=	php-5.3.4-mail-header.patch:mail
@


1.156
log
@Update suhosin patch. This is a NOP, so don't bump PORTREVISION.
@
text
@d9 1
a9 1
PORTVERSION=	5.3.4
d62 2
a63 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
d71 2
a72 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
@


1.155
log
@Fix man page section for fpm.

PR:		ports/153369
Submitted by:	Alexey Markov <redrat@@mail.ru>
@
text
@d62 1
a62 2
#PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
PATCHFILES+=	suhosin-patch-5.3.3-0.9.10.patch.gz:suhosin
a159 7
pre-patch:
# To be removed after suhosin update
.if !defined(WITHOUT_SUHOSIN)
	@@${REINPLACE_CMD} -E 's|REPORT_ERRORS TSRMLS_CC, "%s", error|REPORT_ERRORS TSRMLS_CC, error|' \
		${WRKSRC}/ext/phar/stream.c
.endif

@


1.154
log
@Update to 5.3.4 release.

PR:		ports/153250
Submitted by:	mm
@
text
@d94 1
a94 1
MAN1+=		php-fpm.1
@


1.153
log
@Sync to new bsd.autotools.mk
@
text
@d9 2
a10 2
PORTVERSION=	5.3.3
PORTREVISION?=	2
d62 2
a63 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.10.patch.gz:suhosin
a93 1
LIB_DEPENDS+=	event-1.4:${PORTSDIR}/devel/libevent
d98 1
a98 2
		--with-fpm-group=${WWWGRP} \
		--with-libevent-dir=${LOCALBASE}
d161 7
@


1.152
log
@Punt autoconf267->autoconf268
@
text
@d24 1
a24 1
USE_AUTOTOOLS=	autoconf:268
@


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

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


1.150
log
@Add the ability to use MySQL Native Driver (instead of MySQL Client Library)
with mysql/mysqli/pdo_mysql extensions.
@
text
@d10 1
a10 1
PORTREVISION?=	1
d24 1
a24 1
USE_AUTOTOOLS=	autoconf:262
d170 1
d172 3
@


1.149
log
@Update to 5.3.3 release:
- add FPM sapi (experimental) [1]
- add apache2filter sapi (experimental)

PR:		ports/148956 [1]
Submitted by:	mm
@
text
@d10 1
a10 1
PORTREVISION?=	0
d36 1
d70 1
a70 2
#PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+=	php-5.3.2-mail-header.patch:mail
d143 2
a144 1
		lt_cv_path_SED="sed"
@


1.148
log
@Add an OPTION to force linking with libthr (default off). This is a hack needed
when using !ZTS PHP on FreeBSD 7.x/8.0 together with threaded extensions.

Feature safe:	yes
@
text
@d9 2
a10 2
PORTVERSION=	5.3.2
PORTREVISION?=	1
d30 1
d42 1
d44 1
d61 1
a61 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.9.1.patch.gz:suhosin
d69 2
a70 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
d91 14
d110 3
d114 1
d164 4
d186 3
@


1.147
log
@Bounce PORTREVISION for gettext-related ports.  Have fun, ya'll.
@
text
@d46 2
a47 1
		MAILHEAD "Enable mail header patch" off
d123 3
a125 1
MAKE_ENV+=	LDFLAGS="${LDFLAGS}"
@


1.146
log
@Now that apache 2.0 uses external pcre, drop support for bundled pcre in php.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.145
log
@Add CONFLICTS to php5-pcre and php5-spl.
@
text
@d26 2
d34 1
a91 3
.if ${APACHE_VERSION} == 20
WITH_BUNDLED_PCRE=	yes
.endif
a102 9
.if defined(WITH_BUNDLED_PCRE)
CONFIGURE_ARGS+=--with-pcre-regex=yes
PLIST_SUB+=	PCRE=""
.else
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
CONFIGURE_ARGS+=--with-pcre-regex=${LOCALBASE}
PLIST_SUB+=	PCRE="@@comment "
.endif

@


1.144
log
@Update to PHP 5.3.2 release!
@
text
@d45 1
a45 1
CONFLICTS=	php4-4*
@


1.143
log
@- fix build for png-1.4.1
- bump PORTREVISION
PR:	145247
@
text
@d9 2
a10 2
PORTVERSION=	5.2.12
PORTREVISION?=	2
a31 1
		--enable-reflection \
d40 1
a40 1
		SUHOSIN "Enable Suhosin protection system (not for jails)" on \
d43 1
a43 5
		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
d54 1
a54 2
#PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.7.patch.gz:suhosin
PATCHFILES+=	suhosin-patch-5.2.11-0.9.7.patch.gz:suhosin
d62 1
a62 2
#PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+=	php-5.2.10-mail-header.patch:mail
a77 12
.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
d89 3
d103 9
a115 2
.elif defined(WITH_REGEX_TYPE) && ${WITH_REGEX_TYPE} == "apache"
CONFIGURE_ARGS+=--with-regex=apache
d156 4
d162 2
a163 2
	@@${INSTALL_DATA} ${WRKSRC}/php.ini-dist ${PREFIX}/etc
	@@${INSTALL_DATA} ${WRKSRC}/php.ini-recommended ${PREFIX}/etc
@


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


1.141
log
@Update to 5.2.12 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.140
log
@Fix sockets.

PR:		ports/139343
Submitted by:	Boris <lytboris@@gmail.com>
@
text
@d9 2
a10 2
PORTVERSION=	5.2.11
PORTREVISION?=	1
d59 2
a60 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.7.patch.gz:suhosin
@


1.139
log
@Update to 5.2.11 release.
(Do not link to thread library when building a thread-safe only lib)

Feature safe:	yes
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.138
log
@Update to 5.2.10 release.
@
text
@d9 1
a9 1
PORTVERSION=	5.2.10
d68 1
a68 1
PATCHFILES+=	php-5.2.9-mail-header.patch:mail
d134 2
a135 2
CONFIGURE_ENV+=	ac_cv_pthreads_lib=${PTHREAD_LIBS} \
		ac_cv_pthreads_cflags=${PTHREAD_CFLAGS} \
@


1.137
log
@- Mark MAKE_JOBS_SAFE for SMP compilation

PR:		ports/133015
Approved by:	ale (maintainer, via private e-mail)
@
text
@d9 1
a9 1
PORTVERSION=	5.2.9
d68 1
a68 1
PATCHFILES+=	php-5.2.8-mail-header.patch:mail
@


1.136
log
@Always use FreeBSD sed.

PR:		ports/132543
Submitted by:	Helmut Schneider <jumper99@@gmx.de>
@
text
@d22 1
@


1.135
log
@Update to 5.2.9 release and re-add pcre extension.
@
text
@d135 2
a136 1
		pthreads_working="yes"
@


1.134
log
@Add support for filter, hash, json and zip extensions.
@
text
@d9 1
a9 1
PORTVERSION=	5.2.8
a24 3
# use bundled pcre while apache2 does the same
#LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre

a30 1
		--with-pcre-regex=yes \
d58 1
a58 2
#PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.6.3.patch.gz:suhosin
PATCHFILES+=	suhosin-patch-5.2.7-0.9.6.3.patch.gz:suhosin
d66 2
a67 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
a161 4
	@@${ECHO_CMD} "PHP_EXT_INC=pcre" >> ${WRKDIR}/php.conf

test: build
	@@(cd ${WRKSRC} && ${MAKE} test)
@


1.133
log
@Update to 5.2.8 release.
@
text
@d71 1
a71 2
#PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+=	php-5.2.6-mail-header.patch:mail
@


1.132
log
@Set IGNORE to avoid upgrades to 5.2.7 release. PHP 5.2.8 will be released soon.
Sorry for the temporary inconvenient.
@
text
@d9 1
a9 1
PORTVERSION=	5.2.7
a18 2
IGNORE=		should not be used, PHP 5.2.8 will be released soon

d25 2
a26 1
LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre
d34 1
a34 1
		--with-pcre-regex=${LOCALBASE} \
d62 2
a63 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.6.3.patch.gz:suhosin
@


1.131
log
@Update to 5.2.7 release.
@
text
@d19 2
@


1.130
log
@Fix for CVE-2008-2665 and CVE-2008-2666.

Obtained from:	PHP CVS
@
text
@d9 2
a10 2
PORTVERSION=	5.2.6
PORTREVISION?=	2
d25 2
d33 1
d61 1
a61 1
PATCHFILES+=	suhosin-patch-${PORTVERSION}-0.9.6.2.patch.gz:suhosin
d69 2
a70 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
d165 4
@


1.129
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
@d10 1
a10 1
PORTREVISION?=	1
@


1.128
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.127
log
@Mail header patch for 5.2.6 released. No-op.
@
text
@d23 1
a23 1
USE_AUTOTOOLS=	autoconf:261
@


1.126
log
@Update to 5.2.6 release.
@
text
@d66 1
a66 2
#PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
PATCHFILES+=	php-5.2.5-mail-header.patch:mail
@


1.125
log
@- Remove USE_GETOPT_LONG which is a no-op since March 2007
@
text
@d9 2
a10 2
PORTVERSION=	5.2.5
PORTREVISION?=	1
d66 2
a67 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
@


1.124
log
@Fixes for 64-bit systems.

PR:		ports/120088
Submitted by:	mm
Patch from:	mi
@
text
@a23 1
USE_GETOPT_LONG=yes
@


1.123
log
@Update suhosin PATCH_SITE.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.122
log
@Update to 5.2.5 release and fix a few vulnerabilities.

Approved by:	portmgr (marcus), secteam (remko)
@
text
@d60 1
a60 1
PATCH_SITES+=	http://www.hardened-php.net/suhosin/_media/:suhosin
@


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

PR:		ports/116639
Submitted by:	aDe
@
text
@d9 2
a10 2
PORTVERSION=	5.2.4
PORTREVISION?=	1
@


1.120
log
@Update to 5.2.4 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
d23 1
a23 1
USE_AUTOTOOLS=	autoconf:259
@


1.119
log
@Update to the autotools new world order.

Tested by:	numerous package build runs
Approved by:	portmgr
Thanks to:	des, kris, linimon, pav
@
text
@d9 2
a10 2
PORTVERSION=	5.2.3
PORTREVISION?=	1
d16 2
a17 2
MAINTAINER?=	ale@@FreeBSD.org
COMMENT?=	PHP Scripting Language (Apache Module and CLI)
d26 1
a26 1
CONFIGURE_ARGS=	--enable-versioning \
@


1.118
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.117
log
@Update to 5.2.3 release.
@
text
@d41 1
a41 1
		SUHOSIN "Enable Suhosin protection system" on \
@


1.116
log
@- Mark php5-mbstring BROKEN on amd64 with FreeBSD 5
- Drop FreeBSD 4 bits
@
text
@d9 1
a9 1
PORTVERSION=	5.2.2
d12 3
a14 6
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
d60 1
a60 2
PATCH_SITES+=	http://www.hardened-php.net/suhosin/_media/:suhosin \
		${MASTER_SITE_LOCAL:S/%SUBDIR%\//erwin\/:suhosin/}
@


1.115
log
@Put suhosin on local master sites to fix fetch now the official site is down.

Approved by:	portmgr (self)
@
text
@d151 1
a151 1
.if ${OSVERSION} < 400014 || defined(WITHOUT_IPV6)
@


1.114
log
@Update to 5.2.2 release.

PR:		ports/112527
Submitted by:	Nick Barkas<snb@@threerings.net>
Approved by:	portmgr (linimon)
@
text
@d63 2
a64 1
PATCH_SITES+=	http://www.hardened-php.net/suhosin/_media/:suhosin
@


1.113
log
@- Bump shlib version to libnetsnmp.so.10 and bump $PORTREVISION.
@
text
@d9 2
a10 2
PORTVERSION=	5.2.1
PORTREVISION?=	3
@


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


1.111
log
@Fix a crashbug on str_replace().

Submitted by:	esser
Obtained from:	PHP CVS
@
text
@d70 1
a70 1
PATCHFILES+=	php-5.2.0-mail-header.patch:mail
@


1.110
log
@Fix regression: count(object) should call object->count() if instance of Countable.

Spotted by:	Roman Neuhauser <neuhauser@@sigpipe.cz>
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.109
log
@Update to 5.2.1 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.108
log
@Add optional mail header patch, to track php-based spamming.
@
text
@d9 1
a9 1
PORTVERSION=	5.2.0
a29 1
		--enable-memory-limit \
a35 1
		--enable-spl \
d70 1
a70 1
PATCHFILES+=	php-${PORTVERSION}-mail-header.patch:mail
@


1.107
log
@Update suhosin patch to 0.9.6.2 release.
@
text
@d49 1
d61 2
d64 2
a65 3
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.6.2.patch.gz
PATCH_SITES=	http://www.hardened-php.net/suhosin/_media/
PATCH_DIST_STRIP=	-p1
d71 5
@


1.106
log
@Update to 5.2.0 release.
@
text
@d61 1
a61 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.6.1.patch.gz
@


1.105
log
@Update suhosin patch to 0.9.6 release.
This will fix a few build failures of pecl extensions.

Approved by:	portmgr (erwin)
@
text
@d9 2
a10 2
PORTVERSION=	5.1.6
PORTREVISION?=	3
d61 1
a61 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.6.patch.gz
@


1.104
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
@d10 1
a10 1
PORTREVISION?=	2
d61 1
a61 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.5.patch.gz
@


1.103
log
@Enable suhosin patch by default.
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.102
log
@Added safety checks against integer overflow.
Bump PORTREVISION.
While I'm here, I suggest all php users to use the suhosin patch
and suhosin extension to harden the php installation.

Submitted by:	simon
Obtained from:	PHP CVS repo.
@
text
@d46 1
a46 1
		SUHOSIN "Enable Suhosin protection system" off \
d60 1
a60 1
.if defined(WITH_SUHOSIN)
@


1.101
log
@Update suhosin patch to 0.9.5 release.
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.100
log
@Update suhosin patch to 0.9.3 release.
@
text
@d61 1
a61 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.3.patch.gz
@


1.99
log
@- Add experimental suhosin protection system support
- Remove the php->php-cgi temporary hack
@
text
@d61 1
a61 1
PATCHFILES=	suhosin-patch-${PORTVERSION}-0.9.2.patch.gz
@


1.98
log
@Update to 5.1.6 release.
@
text
@d46 1
d60 9
a73 4
# XXX Temporary hack
.if !defined(WITHOUT_CGI)
PLIST_SUB+=	CLI=""
.else
a74 1
.endif
a165 4
# XXX Temporary hack
.if !defined(WITHOUT_CGI) && defined(WITHOUT_CLI)
	@@${LN} -sf ${PREFIX}/bin/php-cgi ${PREFIX}/bin/php
.endif
@


1.97
log
@Update to 5.1.5.

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


1.96
log
@Add WITH_ZEND_VM knob to customize vm behaviour:
- CALL is the default one
- SWITCH should be slightly faster
- GOTO should boost performance (and increase compilation time)

Suggested by:	Michael Josic <systemoperator@@gmail.com>
@
text
@d9 1
a9 1
PORTVERSION=	5.1.4
@


1.95
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
@d118 8
@


1.94
log
@Fix linking on 4.x (yes, this is another PHP configure bug).
While I'm here, replace a '=' with '+='.
@
text
@d9 2
a10 2
PORTVERSION=	5.1.2
PORTREVISION?=	1
d25 2
a26 3
.if !defined(PKGNAMESUFFIX) || ${PKGNAMESUFFIX} == "-cgi" || ${PKGNAMESUFFIX} == "-cli"
GNU_CONFIGURE=	yes
USE_REINPLACE=	yes
d37 2
a38 1
		--enable-spl
d42 16
a57 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
d59 4
a62 3
.if !defined(PKGNAMEPREFIX) && !defined(PKGNAMESUFFIX)
PHP_SAPI=	full
WITH_APACHE=	yes
d64 3
a66 2
.if !defined(PKGNAMEPREFIX)
PHP_SAPI=	${PKGNAMESUFFIX:S/-//}
d68 1
a68 2
PHP_SAPI=	${PKGNAMEPREFIX:S/_//}
WITH_APACHE=	yes
d70 1
d73 5
a77 5
.if defined(WITH_APACHE)
PKGMESSAGE=	${PKGDIR}/pkg-message.mod
USE_APACHE=	1.3+
MODULENAME=	lib${PORTNAME}
SHORTMODNAME=	${PORTNAME}
d79 2
a80 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
d82 2
a83 9
OPTIONS+=	DEBUG "Enable debug" off \
		MULTIBYTE "Enable zend multibyte support" off \
		IPV6 "Enable ipv6 support" on

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

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

MAN1=		php-config.1 phpize.1
.if ${PHP_SAPI} != "mod"
PLIST_SUB+=	CLICGI=""
.if ${PHP_SAPI} != "cgi"
MAN1+=		php.1
d89 2
a90 1
PLIST_SUB+=	CLICGI="@@comment "
d94 11
d110 6
a115 2
.if ${PHP_SAPI} == "cli"
CONFIGURE_ARGS+=--disable-cgi
a117 2
.include <bsd.port.pre.mk>

d119 2
a120 1
		ac_cv_pthreads_cflags=${PTHREAD_CFLAGS}
a123 8
.if defined(WITH_APACHE)
.if ${APACHE_VERSION} > 13
CONFIGURE_ARGS+=--with-apxs2=${APXS}
.else
CONFIGURE_ARGS+=--with-apxs=${APXS}
.endif
.endif

a135 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|^/||}

a139 1
.if ${PHP_SAPI} == "full"
d141 1
a141 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/php5-cli		for Command Line Interpreter only"
	@@${ECHO_CMD} "	www/php5-cgi		for Common Gateway Interface only"
	@@${ECHO_CMD} "	www/mod_php5		for Apache Module only"
	@@${ECHO_CMD} ""
.endif
a145 1
	@@${ECHO_CMD} "PHP_PORT=\$${PORTSDIR}/${PHP_PORT}" >> ${WRKDIR}/php.conf
d153 4
@


1.93
log
@Add support for getopt_long and fix getopt().
@
text
@d112 1
a112 1
CONFIGURE_ENV=	ac_cv_pthreads_lib=${PTHREAD_LIBS} \
d115 2
@


1.92
log
@Update to 5.1.2 release:
- add reflection
- enable xmlreader and xmlwriter by default in php5-extensions
@
text
@d10 1
a10 1
PORTREVISION?=	0
d28 1
@


1.91
log
@Finally update to PHP 5.1.1 release! (And remove unsupported extensions)
@
text
@d9 1
a9 1
PORTVERSION=	5.1.1
d36 1
@


1.90
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
@d9 2
a10 2
PORTVERSION=	5.0.5
PORTREVISION?=	2
a26 1
USE_BISON=	yes
d66 3
a68 1
APACHE_COMPAT=	yes
a76 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
a80 2
EXT_DIR=	20041030

d89 3
a91 2
.if ${PHP_SAPI} == "full" || ${PHP_SAPI} == "cli"
PLIST_SUB+=	CLI=""
d93 1
d95 1
a95 1
PLIST_SUB+=	CLI="@@comment "
a105 5
SAPI_FILE=	"@@comment "
.endif

.if ${PHP_SAPI} == "cgi"
SAPI_FILE=	bin/php
d114 1
a114 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
a115 4
SAPI_FILE=	libexec/apache2/libphp5.so
.if ${APACHE_MPM} == "worker"
EXT_DIR:=	${EXT_DIR}-zts
.endif
a116 1
APACHE_PORT?=	www/apache13
a117 1
SAPI_FILE=	libexec/apache/libphp5.so
a118 2
BUILD_DEPENDS+=	${APXS}:${PORTSDIR}/${APACHE_PORT}
RUN_DEPENDS+=	${APXS}:${PORTSDIR}/${APACHE_PORT}
a122 1
EXT_DIR:=	${EXT_DIR}-debug
a128 2
PLIST_SUB+=	SAPI_FILE=${SAPI_FILE}

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


1.89
log
@Chase shlib version bump of net-snmp.
@
text
@d131 1
a131 1
APACHE_PORT=	www/apache2
@


1.88
log
@Autoselect APACHE2 option if WITH_APACHE2 is defined.

Submitted by:	Rick van der Zwet <rick@@wzoeterwoude.net>
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.87
log
@AMD64 fixes:
- fix crypto part again [1]
- fix object serialization [2]

PR:		ports/86885 [2]
Submitted by:	Andr Bhm <andre@@gaarden.net> [2],
		Claus Guttesen <kometen@@gmail.com> [1]
@
text
@d77 3
d82 1
@


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

Reported by:	pointyhat via kris
Approvd by:	portmgr (self)
@
text
@d10 1
a10 1
PORTREVISION?=	0
@


1.85
log
@Update to 5.0.5 release.
@
text
@d67 1
@


1.84
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=	5.0.4
PORTREVISION?=	2
d91 1
d94 1
a94 1
MAN1=		php.1
@


1.83
log
@- Fix after spliting firebird
- Bump PORTREVISION

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


1.82
log
@Distfile rerolled to include a missing PEAR file.

Spotted by:	leeym
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.81
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.80
log
@BROKEN on ia64: Does not compile

Approved by:    portmgr (self)
@
text
@d9 2
a10 2
PORTVERSION=	5.0.3
PORTREVISION?=	2
a113 4
.if ${ARCH} == "ia64"
BROKEN=		"Does not compile on ia64"
.endif

@


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

Obtained from:	PHP CVS
@
text
@d114 4
@


1.78
log
@PHP 5.0.3 uses a different extension dir.

Spotted by:	Joe Zeiler <zeiler07@@covad.net>
@
text
@d10 1
a10 1
PORTREVISION?=	1
@


1.77
log
@Update to 5.0.3 release:
- Fix some serious security bugs
- Other minor enhancements (PRs fixes) will come later
@
text
@d10 1
a10 1
PORTREVISION?=	0
d81 1
a81 1
EXT_DIR=	20040412
@


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

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


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

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


1.74
log
@Update to 5.0.2 release:
- Fix compilation of thread-safe PHP after the PTHREAD_LIBS change
- Include md5 and blowfish support on amd64 (fix headers) [1]
- Add support for dom_import_simplexml function in php5-dom [2]
- Fix vulnerability in RFC 1867 file upload processing [3]
- Fix php_variables memory disclosure [3]

PR:		ports/71752 [1], ports/72003 [2], ports/72420 [3]
Submitted by:	Adam Gregoire <bsdunx@@yahoo.com> [1],
		Vaidrius Petrauskas <acrozy@@uosis.mif.vu.lt> [2],
		Dmitry A Grigorovich <odip@@bionet.nsc.ru> [3]
Approved by:	portmgr (kris)
@
text
@d171 2
a172 1
	@@${REINPLACE_CMD} "s|<crypt.h>|<unistd.h>|g" ${WRKSRC}/configure
@


1.73
log
@Update to 5.0.1 release:
- GD GIF output support is now enabled by default
@
text
@d9 1
a9 1
PORTVERSION=	5.0.1
d114 2
a115 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
d171 1
@


1.72
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=	5.0.0
PORTREVISION?=	2
@


1.71
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
a198 1
	@@${TOUCH} ${PREFIX}/etc/php.ini
@


1.70
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
@d173 1
@


1.69
log
@Update to final 5.0.0 release:
- add a post 5.0.0 patch to fix basic authentication with apache 1.x

The major PHP ports overhaul is in its final stage. This commit was
anticipated since it fixes a critical security vulnerability.
@
text
@a6 15
# 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, DOM, ICONV, PCRE, POSIX,
# SESSION, SIMPLEXML, SPL, SQLITE, TOKENIZER and XML.
# This behaviour can be changed overriding the PHP5_OPTIONS variable
# (e.g. PHP5_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 ~/php5_options (the
# location is overridable by the PHP5_OPTFILE variable). You may find an
# example in scripts/php5_options (interactive mode only).
#
d10 1
a10 1
PORTREVISION?=	0
d12 3
a14 1
MASTER_SITES=	${MASTER_SITE_PHP:S,$,:release,}
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
d33 6
a38 1
		--disable-all
d52 3
a54 35
EXT_DIR=	20040412
SAPI_FILE=	"@@comment "

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

.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 "
d56 2
a57 3
.if !defined(WITHOUT_PEAR)
CONFIGURE_ARGS+=--with-pear
PLIST_SUB+=	PEAR=""
d59 2
a60 23
PLIST_SUB+=	PEAR="@@comment "
.endif
MAN1=		php.1
PLIST_SUB+=	CLI=""
.endif

ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX DIO \
		DOM EXIF FILEPRO FTP GD GDBM GETTEXT GMP ICONV IMAP INTERBASE \
		INIFILE MBSTRING MCVE MCRYPT MHASH MING MNOGOSEARCH MSSQL \
		MYSQL MYSQLI NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE \
		POSIX POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP \
		SIMPLEXML SNMP SOAP SOCKETS SPL SQLITE SYBASEDB SYBASECT \
		SYSVMSG SYSVSEM SYSVSHM TIDY TOKENIZER UNIXODBC WDDX XML \
		XMLRPC XSL YP ZLIB

.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt}) || defined(WITHOUT_${opt})
BATCH=		yes
.endif
.endfor

.if !defined(BATCH) && !defined(PACKAGE_BUILDING)
IS_INTERACTIVE=	yes
a61 16

WRKDIR?=	${WRKDIRPREFIX}${.CURDIR}/work
PHP5_OPTFILE?=	${HOME}/php5_options

PHP5_OPTIONS?=	CTYPE DOM ICONV PCRE POSIX SESSION SIMPLEXML SPL SQLITE TOKENIZER XML

.for opt in ${ALL_OPTIONS}
.if defined(WITH_${opt})
SEL_OPTIONS+=	${opt}
.endif
.endfor
.for opt in ${PHP5_OPTIONS}
.if !defined(WITHOUT_${opt})
SEL_OPTIONS+=	${opt}
.if !exists(${WRKDIR}/Makefile.inc)
WITH_${opt}=	yes
a62 9
.endif
SCRIPTS_ENV+=	WITH_${opt}=ON
.endfor

SCRIPTS_ENV+=	SEL_OPTIONS="${SEL_OPTIONS}" \
		OPTION_FILE="${PHP5_OPTFILE}" \
		WRKDIR="${WRKDIR}" \
		CAT="${CAT}" \
		SED="${SED}"
d64 2
a65 2
.if exists(${WRKDIR}/Makefile.inc)
.include "${WRKDIR}/Makefile.inc"
d68 5
a72 3
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
WITH_PCRE=	yes
WITH_XML=	yes
d74 2
a75 3

.if defined(WITH_CDB) || defined(WITH_DB4) || defined(WITH_GDBM) || defined(WITH_INIFILE)
WITH_DBA=	yes
d77 2
d80 1
a80 3
.if defined(WITH_XSL)
WITH_DOM=	yes
.endif
d82 2
a83 3
.if defined(WITH_XMLRPC)
WITH_ICONV_DEP=	yes
.endif
d85 2
a86 2
.if defined(WITH_MCVE) || defined(WITH_SNMP)
WITH_OPENSSL_DEP=	yes
d89 3
a91 15
.if defined(WITH_DOM) || defined(WITH_SIMPLEXML) || defined(WITH_SOAP)
WITH_XML_DEP=	yes
.endif

.if defined(WITH_GD) || defined(WITH_MYSQL)
WITH_ZLIB_DEP=	yes
.endif

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

.if defined(WITH_BZIP2)
.if exists(/usr/bin/bzip2)
BZIP2BASE=	/usr
d93 1
a93 4
BZIP2BASE=	${LOCALBASE}
LIB_DEPENDS+=	bz2.1:${PORTSDIR}/archivers/bzip2
.endif
CONFIGURE_ARGS+=--with-bz2=${BZIP2BASE}
d96 2
a97 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
d99 1
a99 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}
d102 3
a104 2
.if defined(WITH_DBA)
CONFIGURE_ARGS+=--enable-dba
d107 2
a108 278
.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_DOM)
CONFIGURE_ARGS+=--enable-dom
.endif

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

.if defined(WITH_FILEPRO)
CONFIGURE_ARGS+=--enable-filepro
.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_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_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_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_MYSQLI)
USE_MYSQL=	yes
BROKEN_WITH_MYSQL=	323 40
CONFIGURE_ARGS+=--with-mysqli=${LOCALBASE}/bin/mysql_config
.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_PCNTL)
CONFIGURE_ARGS+=--enable-pcntl
.endif

.if defined(WITH_PCRE)
CONFIGURE_ARGS+=--with-pcre-regex
.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_SIMPLEXML)
CONFIGURE_ARGS+=--enable-simplexml
.endif

.if defined(WITH_SOAP)
CONFIGURE_ARGS+=--enable-soap
.endif

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

.if defined(WITH_SPL)
CONFIGURE_ARGS+=--enable-spl
.endif

.if defined(WITH_SQLITE)
CONFIGURE_ARGS+=--with-sqlite
.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_TIDY)
LIB_DEPENDS+=	tidy-0.99.0:${PORTSDIR}/www/tidy-lib
CONFIGURE_ARGS+=--with-tidy=${LOCALBASE}
.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+=	xml2.5:${PORTSDIR}/textproc/libxml2
CONFIGURE_ARGS+=--enable-libxml --with-libxml-dir=${LOCALBASE}
.endif

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

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

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

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

.if defined(WITH_ZLIB) || defined(WITH_ZLIB_DEP)
CONFIGURE_ARGS+=--with-zlib-dir=/usr
.endif

.if defined(WITH_ZLIB)
CONFIGURE_ARGS+=--with-zlib
d120 1
a120 1
.if !defined(WITHOUT_APACHE)
d153 3
a155 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}
d157 2
a158 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}
d160 2
d163 2
a165 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
a170 3
pre-patch:
	@@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php

d172 1
a172 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
d174 1
a176 25
.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_MYSQL) && defined(WITH_MYSQLI)
	@@${ECHO_CMD} "You cannot define WITH_MYSQL *and* WITH_MYSQLI!"
	@@${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)
d191 1
a191 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
a193 3
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR)
	@@${INSTALL_SCRIPT} ${WRKSRC}/pear/scripts/pear ${PREFIX}/bin
.endif
d197 4
a200 12
	@@${TOUCH} ${PREFIX}/include/php/ext/sqlite/libsqlite/src/sqlite.h
.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} "*****************************************************************************"
d203 7
@


1.68
log
@Install GD and MBSTRINGS header files for pdflib and mailparse extensions.
@
text
@d24 2
a25 2
PORTVERSION=	5.0.0.r3
PORTREVISION?=	2
@


1.67
log
@- Point phpize to use libtoolize13
@
text
@d25 1
a25 1
PORTREVISION?=	1
@


1.66
log
@- Update to 5.0.0RC3 release
- Remove PDFlib extension
@
text
@d25 1
@


1.65
log
@Sync with new bsd.autotools.mk
@
text
@d24 1
a24 2
PORTVERSION=	5.0.0.r2
PORTREVISION=	2
d128 1
a128 1
		MYSQL MYSQLI NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB \
d199 1
a199 1
.if defined(WITH_GD) || defined(WITH_MYSQL) || defined(WITH_PDFLIB)
a292 1
		--enable-gd-jis-conv \
a412 5
.endif

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


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


1.63
log
@Replace explicit XFree86-4-libraries dependencies with USE_XLIB, USE_XPM, and
USE_GL as appropriate.
@
text
@d25 1
a25 1
PORTREVISION=	1
d237 1
a237 1
LIB_DEPENDS+=	curl.2:${PORTSDIR}/ftp/curl
@


1.62
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
@d300 1
a300 1
LIB_DEPENDS+=	Xpm.4:${PORTSDIR}/x11/XFree86-4-libraries
@


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

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


1.60
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
@d27 2
a28 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
@


1.59
log
@Update to 5.0.0RC2 release (stop packaging customized snapshots,
since now php5 seems pretty stable):
- Build iconv extension by default
- Remove obsolate MIME and YAZ extensions
@
text
@d25 1
a25 1
PORTREVISION=	0
d138 2
a139 2
		SYSVSEM SYSVSHM TIDY TOKENIZER UNIXODBC WDDX XML XMLRPC XSL \
		YP ZLIB
d488 4
@


1.58
log
@- Use USE_ICONV knob

Approved by:	portmgr
@
text
@d10 4
a13 3
# By default, the enabled extensions are: CTYPE, DOM, PCRE, POSIX, SESSION,
# SIMPLEXML, SPL, SQLITE, TOKENIZER and XML. This behaviour can be changed
# overriding the PHP5_OPTIONS variable (e.g. PHP5_OPTIONS="EXT1 EXT2 EXT3").
d24 1
a24 1
PORTVERSION=	5.0.0.a6
d34 1
a34 3
		http://se.php.net/distributions/:release \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	ale
d46 2
a47 1
DISTNAME=	php-${PORTVERSION:S/.a/a/}
d86 1
a86 1
EXT_DIR=	20040316
d134 1
a134 1
		INIFILE MBSTRING MCVE MCRYPT MHASH MIME MING MNOGOSEARCH MSSQL \
d139 1
a139 1
		YAZ YP ZLIB
d154 1
a154 1
PHP5_OPTIONS?=	CTYPE DOM PCRE POSIX SESSION SIMPLEXML SPL SQLITE TOKENIZER XML
a366 4
.if defined(WITH_MIME)
CONFIGURE_ARGS+=--with-mime-magic=/usr/share/misc/magic.mime
.endif

a532 5
.endif

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


1.57
log
@Fix db 4.2 dependency.

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


1.56
log
@Fix Xpm path.

Submitted by:	Dominic Marks <dom@@helenmarks.co.uk>
@
text
@d250 1
a250 1
LIB_DEPENDS+=	db4.2.2:${PORTSDIR}/databases/db42
@


1.55
log
@Update to 5.0.0a6 snapshot:
- add mysqli extension
- add support for db 4.2
@
text
@d307 1
a307 1
CONFIGURE_ARGS+=--with-xpm-dir=${LOCALBASE}
@


1.54
log
@Fix build with new freetype2 library.

PR:		ports/64417
Submitted by:	Renato Botelho <renato@@galle.com.br>
@
text
@d23 2
a24 2
PORTVERSION=	5.0.0.a5
PORTREVISION=	1
d86 1
a86 1
EXT_DIR=	20020429
d135 5
a139 4
		MYSQL NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX \
		POSTGRESQL PSPELL READLINE RECODE SESSION SHMOP SIMPLEXML SNMP \
		SOAP SOCKETS SPL SQLITE SYBASEDB SYBASECT SYSVSEM SYSVSHM TIDY \
		TOKENIZER UNIXODBC WDDX XML XMLRPC XSL YAZ YP ZLIB
d249 3
d257 1
d391 6
d655 4
@


1.53
log
@o Bump $LIB_DEPENDS line to chase expat's shlib version.
o Bump $PORTREVISION.
@
text
@a47 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
@


1.52
log
@Fix PHP_PORT when PORTSDIR is a symlink.

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


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

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


1.50
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
@d625 2
d672 1
a672 1
	@@${ECHO_CMD} "PHP_PORT=${.CURDIR}" >> ${WRKDIR}/php.conf
@


1.49
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
@d291 1
d298 1
@


1.48
log
@Update to the latest snapshot.
Add new SOAP and SPL extensions.
(The distfile may be unreachable for a few hours)

Approved by:	nork (mentor/implicitly)
@
text
@d616 1
a616 1
LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net/net-snmp4
d618 1
a618 1
LIB_DEPENDS+=	netsnmp.6:${PORTSDIR}/net/net-snmp
@


1.47
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
@d11 1
a11 1
# SIMPLEXML, SQLITE, TOKENIZER and XML. This behaviour can be changed
d23 2
a24 2
PORTVERSION=	5.0.0.a4
PORTREVISION=	3
d138 1
a138 1
		SOCKETS SQLITE SYBASEDB SYBASECT SYSVSEM SYSVSHM TIDY \
d154 1
a154 1
PHP5_OPTIONS?=	CTYPE DOM PCRE POSIX SESSION SIMPLEXML SQLITE TOKENIZER XML
d202 1
a202 1
.if defined(WITH_DOM) || defined(WITH_SIMPLEXML)
d456 4
d462 4
@


1.46
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}

d537 7
@


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

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


1.44
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.43
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
@d24 1
a24 1
PORTREVISION=	2
d317 1
a317 1
LIB_DEPENDS+=	intl.5:${PORTSDIR}/devel/gettext-old
@


1.42
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 3
d113 2
a134 3
.if defined(WITHOUT_APACHE) && defined(WITHOUT_CLI)
SAPI_FILE=	"bin/php"
.endif
a541 1
APXS?=		${LOCALBASE}/sbin/apxs
@


1.41
log
@Now gettext 0.12.1 is gettext-old.
@
text
@d131 2
a132 2
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DB4 DBASE DBX DOM \
		EXIF FILEPRO FTP GD GDBM GETTEXT GMP ICONV IMAP INTERBASE \
d246 2
d249 3
d267 4
d423 2
a424 1
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql-client
d599 1
a599 1
.if exists(${LOCALBASE}/lib/libsnmp.so.4)
@


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

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


1.39
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.38
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=	1
d133 1
a133 1
		INIFILE MBSTRING MCVE MCRYPT MHASH MIME MING MNOGOSEARCH \
d364 5
d453 1
a453 1
LIB_DEPENDS+=	sybdb.3:${PORTSDIR}/databases/freetds
d458 1
a458 1
LIB_DEPENDS+=	ct.1:${PORTSDIR}/databases/freetds
@


1.37
log
@Adapt php5 Makefile to support apache2-worker.

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


1.36
log
@- Make fetchable

PR:		ports/60692
Submitted by:	ale (maintainer)
@
text
@d24 1
a24 1
PORTREVISION=	0
a89 5
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+=--enable-debug
EXT_DIR:=	${EXT_DIR}-debug
.endif

d525 1
d528 1
d532 3
d542 5
@


1.35
log
@o Update to 5.0.0a4 snapshot.
o Add TIDY extension.
o Remove MCAL extension.
o Remove patch-ext::standard::datetime.c file.

PR:		ports/60504
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d34 2
a35 2
		http://www.sm.FreeBSD.org/~alex/:rc \
		http://downloads.php.net/jani/:rc
d48 1
a48 1
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}:rc
@


1.34
log
@PR:		59958
@
text
@d23 2
a24 2
PORTVERSION=	5.0.0.a3
PORTREVISION=	2
d51 1
a51 1
COMMENT=	PHP Scripting Language (Apache Module and CLI)
d68 1
d110 1
d112 3
d138 1
a138 1
		INIFILE MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MNOGOSEARCH \
d141 2
a142 2
		SOCKETS SQLITE SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER \
		UNIXODBC WDDX XML XMLRPC XSL YAZ YP ZLIB
d184 5
a338 5
.if defined(WITH_MCAL)
LIB_DEPENDS+=	mcal.0:${PORTSDIR}/misc/libmcal
CONFIGURE_ARGS+=--with-mcal=${LOCALBASE}
.endif

d470 5
d544 1
a544 2
PLIST_SUB+=	SAPI_FILE=${SAPI_FILE} \
		EXT_DIR=${EXT_DIR}
d591 2
a617 5
.if !defined(WITHOUT_CLI) && !defined(WITHOUT_PEAR) && (!defined(WITH_PCRE) || !defined(WITH_XML))
	@@${ECHO_CMD} "PEAR requires PCRE and XML extensions."
	@@${ECHO_CMD} "Define the WITHOUT_PEAR knob or enable these extensions."
	@@${FALSE}
.endif
a670 2
	@@${TOUCH} ${PREFIX}/lib/php/${EXT_DIR}/.php
	@@${TOUCH} ${PREFIX}/include/php/ext/xml/expat/.php
@


1.33
log
@Add WITH_DEBUG knob and support for the new bsd.php.mk file.

Forgotten in previous PR: add also BROKEN_WITH_PHP knob.

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


1.32
log
@Chase libnetsnmp shlib major version number and bump ${PORTREVISION}.
@
text
@d24 1
a24 1
PORTREVISION=	1
d89 5
d409 1
a409 1
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql7
d622 23
a645 1
post-build:
d650 1
d652 1
d664 1
@


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

Submitted by:	dinoex
@
text
@d24 1
d568 1
a568 1
LIB_DEPENDS+=	netsnmp.5:${PORTSDIR}/net/net-snmp
@


1.30
log
@Chase the libxslt shared lib version with a PORTREVISION bump.
@
text
@d516 1
a516 1
APACHE_PORT?=	${PORTSDIR}/www/apache2
d520 1
a520 1
APACHE_PORT?=	${PORTSDIR}/www/apache13
d524 2
a525 2
BUILD_DEPENDS+=	${APXS}:${APACHE_PORT}
RUN_DEPENDS+=	${APXS}:${APACHE_PORT}
@


1.29
log
@o Update to 5.0.0a3 snapshot.
o Un-break port.
o A lot of fixes, taken from recent commits to php4 port.

PR:		ports/58617
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
@
text
@d487 1
a487 1
LIB_DEPENDS+=	xslt.1:${PORTSDIR}/textproc/libxslt
@


1.28
log
@BROKEN: Does not compile
@
text
@d23 1
a23 1
PORTVERSION=	5.0.0.a2
d25 10
a34 10
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://www.sm.FreeBSD.org/~alex/ \
		http://downloads.php.net/jani/
d47 1
a62 2
BROKEN=		Does not compile

a66 1
USE_LIBTOOL_VER=14
d127 2
a128 2
		INIFILE MBSTRING MCAL MCVE MCRYPT MHASH MIME MING MYSQL \
		NCURSES OPENLDAP OPENSSL ORACLE PCNTL PCRE PDFLIB POSIX \
a142 34
.include <bsd.port.pre.mk>

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

.if !defined(WITHOUT_APACHE)
.if exists(${LOCALBASE}/include/apache2/apr.h)
WITH_APACHE2=	yes
.endif

APXS?=		${LOCALBASE}/sbin/apxs

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

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

PLIST_SUB+=	APACHE=""
.else
PLIST_SUB+=	APACHE="@@comment "
.endif

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

d156 3
a168 4
.ifmake describe
WITH_XML=	yes
.endif

d303 1
a309 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

d335 1
d353 5
a362 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

d369 3
a371 1
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
a432 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

d474 1
a474 1
CONFIGURE_ARGS+=--with-libxml-dir=${LOCALBASE}
d483 1
a483 1
CONFIGURE_ARGS+=--with-xmlrpc --with-expat-dir=${LOCALBASE} --with-iconv-dir=${LOCALBASE}
d506 64
@


1.27
log
@Fix for the OpenSSL extension

PR:		57437
Submitted by:	sysadmin@@alexdupre.com
@
text
@d62 2
@


1.26
log
@chase print/pdflib libversion upgrade

PR:		ports/57204
@
text
@d425 1
a425 1
USE_OPENSSL=	yes
@


1.25
log
@[Maintainer Update] Port: lang/php5

	Update to 5.0.0a2-alexdupre snapshot (and fix 5.0.0a1 memory leak).
	Add DB4 extension.
	Correctly use USE_MYSQL/USE_OPENSSL/USE_OPENLDAP.

PR:		ports/56979
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
@
text
@d448 1
a448 1
LIB_DEPENDS+=	pdf.5:${PORTSDIR}/print/pdflib
@


1.24
log
@Bump the PORTREVISION for the ports directly affected by the gettext upgrade.

Prodded by:	kris
@
text
@d23 1
a23 2
PORTVERSION=	5.0.0.a1
PORTREVISION=	2
d125 7
a131 7
ALL_OPTIONS=	BCMATH BZIP2 CALENDAR CDB CRACK CTYPE CURL DBASE DBX DOM EXIF \
		FILEPRO FTP GD GDBM GETTEXT GMP 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 SIMPLEXML SNMP SOCKETS \
		SQLITE SYBASEDB SYBASECT SYSVSEM SYSVSHM TOKENIZER UNIXODBC \
		WDDX XML XMLRPC XSL YAZ YP ZLIB
d208 1
a208 1
.if defined(WITH_CDB) || defined(WITH_GDBM) || defined(WITH_INIFILE)
d220 1
a220 1
.if defined(WITH_SNMP)
d269 5
d405 1
a405 9
.if exists(${LOCALBASE}/lib/mysql/libmysqlclient.so.10)
LIB_DEPENDS+=	mysqlclient.10:${PORTSDIR}/databases/mysql323-client
.else
.if 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
.endif
d420 1
a420 5
.if exists(${LOCALBASE}/lib/libldap.so.1)
LIB_DEPENDS+=	ldap.1:${PORTSDIR}/net/openldap12
.else
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21-client
.endif
d425 2
a426 6
.if exists(${LOCALBASE}/lib/libcrypto.so.3)
OPENSSLBASE=	${LOCALBASE}
LIB_DEPENDS+=	crypto.3:${PORTSDIR}/security/openssl
.else
OPENSSLBASE=	/usr
.endif
d493 1
a493 1
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --with-openssl-dir=${OPENSSLBASE} --enable-ucd-snmp-hack
@


1.23
log
@Chase the libintl.so shared lib version.
@
text
@d24 1
a24 1
PORTREVISION=	1
@


1.22
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
@d323 1
a323 1
LIB_DEPENDS+=	intl.4:${PORTSDIR}/devel/gettext
@


1.21
log
@Correct scripts/configure.php & Bump PORTREVISION.

PR:		ports/54519
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com> (maintainer)
Pointy hat to:	myself
@
text
@d427 1
a427 1
LIB_DEPENDS+=	ldap.2:${PORTSDIR}/net/openldap21
@


1.20
log
@Add php5 5.0.0.a1, PHP5 Scripting Language.

PR:		ports/54519
Submitted by:	Alex Dupre <sysadmin@@alexdupre.com>
Repo copied by:	joe (cvs)
Approved by:	portmgr (no objections)
@
text
@d24 1
a24 1
PORTREVISION=	0
@


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
@d1 1
a1 1
# New ports collection makefile for:	php4
d10 3
a12 3
# 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").
d17 3
a19 3
# 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).
d22 3
a24 3
PORTNAME=	php4
PORTVERSION=	4.3.3.r1
PORTREVISION=	1
d34 1
d47 1
a47 1
DISTNAME=	php-${PORTVERSION:S/.r/RC/}
a71 1
		--with-zlib-dir=/usr \
d89 1
a89 1
CONFLICTS=	php4-cli-4* mod_php4-4* php4-cgi-4*
d92 1
a92 1
CONFLICTS=	php4-4* php4-cli-4* mod_php4-4*
d94 1
a94 1
CONFLICTS=	php4-4* php4-cgi-4* mod_php4-4*
d98 1
a98 1
CONFLICTS=	php4-4* php4-cli-4* php4-cgi-4*
d101 1
d113 6
d126 7
a132 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
a143 2
PBDIR=		${PREFIX}/share/pear/boot

d160 1
a160 1
SAPI_FILE=	libexec/apache2/libphp4.so
d164 1
a164 1
SAPI_FILE=	libexec/apache/libphp4.so
d179 1
a179 1
PHP4_OPTFILE?=	${HOME}/php4_options
d181 1
a181 1
PHP4_OPTIONS?=	CTYPE MYSQL OVERLOAD PCRE POSIX SESSION TOKENIZER XML ZLIB
d188 1
a188 1
.for opt in ${PHP4_OPTIONS}
d196 1
a196 1
		OPTION_FILE="${PHP4_OPTFILE}" \
a201 1
WITH_MYSQL=	yes
d213 2
a214 2
.if defined(WITH_DOMXSLT)
WITH_DOMXML=	yes
d217 1
a217 1
.if defined(WITH_XMLRPC) || defined(WITH_XSLT)
d222 1
a222 1
WITH_OPENSSL=	yes
d225 1
a225 1
.if defined(WITH_XMLRPC) || defined(WITH_XSLT)
d229 2
a230 2
.if defined(WITH_WDDX)
WITH_XML=	yes
d282 2
a283 8
.if defined(WITH_DOMXML)
LIB_DEPENDS+=	xml2.5:${PORTSDIR}/textproc/libxml2
CONFIGURE_ARGS+=--with-dom=${LOCALBASE}
.endif

.if defined(WITH_DOMXSLT)
LIB_DEPENDS+=	xslt.1:${PORTSDIR}/textproc/libxslt
CONFIGURE_ARGS+=--with-dom-xslt=${LOCALBASE} --with-dom-exslt=${LOCALBASE}
a293 5
.if defined(WITH_FRIBIDI)
LIB_DEPENDS+=	fribidi.0:${PORTSDIR}/converters/fribidi
CONFIGURE_ARGS+=--with-fribidi=${LOCALBASE}
.endif

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

d368 1
a368 1
CONFIGURE_ARGS+=--enable-mbstring --enable-mbregex
a450 4
.if defined(WITH_OVERLOAD)
CONFIGURE_ARGS+=--enable-overload
.endif

d456 1
a456 1
CONFIGURE_ARGS+=--with-pcre-regex=yes
d495 4
d505 1
a505 1
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
d512 4
d548 2
a549 1
LIB_DEPENDS+=	expat.4:${PORTSDIR}/textproc/expat2
d553 1
a553 1
CONFIGURE_ARGS+=--enable-xml --with-expat-dir=${LOCALBASE}
d557 2
a558 1
CONFIGURE_ARGS+=--with-xmlrpc
d561 3
a563 3
.if defined(WITH_XSLT)
LIB_DEPENDS+=	sablot.70:${PORTSDIR}/textproc/sablotron
CONFIGURE_ARGS+=--enable-xslt --with-xslt-sablot=${LOCALBASE}
d575 2
a576 3
.if defined(WITH_ZIP)
LIB_DEPENDS+=	zzip-0.10:${PORTSDIR}/devel/zziplib
CONFIGURE_ARGS+=--with-zip=${LOCALBASE}
d580 1
a580 1
CONFIGURE_ARGS+=--with-zlib=yes
d612 5
d621 3
a623 3
	@@${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"
d640 1
a640 1
.if !defined(WITHOUT_CLI)
d646 1
@


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
@

