Wed Nov 15 08:56:12 2017 UTC ()
Add php72 7.2.0RC6

PHP 7.2.x builds upon 7.1.x, adding new features:

* Argument type declarations
* Object return type declarations
* Parameter Type Widening
* Trailing commas in list syntax
* Argon2 in password hash
* Libsodium as part of PHP Core
* Deprecated: __autoload, $php_errormsg, create_function(),
  mbstring.func_overload, parse_str() without second argument,
  gmp_random(), each(), assert(), $errcontext
* uniqid() patch to avoid usleep() integrated, 10000x improvement on NetBSD,
  about 10x on Linux


(jdolecek)
diff -r1.469 -r1.470 pkgsrc/lang/Makefile
diff -r1.193 -r1.194 pkgsrc/lang/php/phpversion.mk
diff -r0 -r1.1 pkgsrc/lang/php72/DESCR
diff -r0 -r1.1 pkgsrc/lang/php72/MESSAGE
diff -r0 -r1.1 pkgsrc/lang/php72/Makefile
diff -r0 -r1.1 pkgsrc/lang/php72/Makefile.common
diff -r0 -r1.1 pkgsrc/lang/php72/Makefile.php
diff -r0 -r1.1 pkgsrc/lang/php72/PLIST
diff -r0 -r1.1 pkgsrc/lang/php72/buildlink3.mk
diff -r0 -r1.1 pkgsrc/lang/php72/distinfo
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-acinclude.m4
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-configure
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_imap_config.m4
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_intl_config.m4
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_pcre_pcrelib_config.h
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_pdo__mysql_config.m4
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_pdo_config.m4
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_phar_Makefile.frag
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_phar_phar_phar.php
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_recode_recode.c
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_sqlite3_libsqlite_sqlite3.c
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-ext_xsl_php__xsl.h
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-makedist
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-php.ini-development
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-php.ini-production
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-run-tests.php
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-sapi_cgi_Makefile.frag
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-sapi_cli_Makefile.frag
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-sapi_fpm_fpm_events_port.c
diff -r0 -r1.1 pkgsrc/lang/php72/patches/patch-sapi_fpm_php-fpm.conf.in

cvs diff -r1.469 -r1.470 pkgsrc/lang/Makefile (switch to unified diff)

--- pkgsrc/lang/Makefile 2017/11/01 12:07:31 1.469
+++ pkgsrc/lang/Makefile 2017/11/15 08:56:12 1.470
@@ -1,268 +1,269 @@ @@ -1,268 +1,269 @@
1# $NetBSD: Makefile,v 1.469 2017/11/01 12:07:31 fhajny Exp $ 1# $NetBSD: Makefile,v 1.470 2017/11/15 08:56:12 jdolecek Exp $
2# 2#
3 3
4COMMENT= Programming languages 4COMMENT= Programming languages
5 5
6SUBDIR+= Cg-compiler 6SUBDIR+= Cg-compiler
7SUBDIR+= LuaJIT 7SUBDIR+= LuaJIT
8SUBDIR+= LuaJIT2 8SUBDIR+= LuaJIT2
9SUBDIR+= STk 9SUBDIR+= STk
10SUBDIR+= a60 10SUBDIR+= a60
11SUBDIR+= abcl 11SUBDIR+= abcl
12SUBDIR+= algol68g 12SUBDIR+= algol68g
13SUBDIR+= asn1c 13SUBDIR+= asn1c
14SUBDIR+= awka 14SUBDIR+= awka
15SUBDIR+= baci 15SUBDIR+= baci
16SUBDIR+= basic256 16SUBDIR+= basic256
17SUBDIR+= boomerang 17SUBDIR+= boomerang
18SUBDIR+= brandybasic 18SUBDIR+= brandybasic
19SUBDIR+= bwbasic 19SUBDIR+= bwbasic
20SUBDIR+= caml-light 20SUBDIR+= caml-light
21SUBDIR+= camlp4 21SUBDIR+= camlp4
22SUBDIR+= camlp5 22SUBDIR+= camlp5
23SUBDIR+= ccsh 23SUBDIR+= ccsh
24SUBDIR+= cdl3 24SUBDIR+= cdl3
25SUBDIR+= chicken 25SUBDIR+= chicken
26SUBDIR+= cim 26SUBDIR+= cim
27SUBDIR+= cint 27SUBDIR+= cint
28SUBDIR+= clang 28SUBDIR+= clang
29SUBDIR+= clang-static-analyzer 29SUBDIR+= clang-static-analyzer
30SUBDIR+= classpath 30SUBDIR+= classpath
31SUBDIR+= classpath-gui 31SUBDIR+= classpath-gui
32SUBDIR+= clisp 32SUBDIR+= clisp
33SUBDIR+= clojure 33SUBDIR+= clojure
34SUBDIR+= coq 34SUBDIR+= coq
35SUBDIR+= coreclr 35SUBDIR+= coreclr
36SUBDIR+= cparser 36SUBDIR+= cparser
37SUBDIR+= cu-prolog 37SUBDIR+= cu-prolog
38SUBDIR+= duktape 38SUBDIR+= duktape
39SUBDIR+= eag 39SUBDIR+= eag
40SUBDIR+= ecl 40SUBDIR+= ecl
41SUBDIR+= eieio 41SUBDIR+= eieio
42SUBDIR+= elisp-manual 42SUBDIR+= elisp-manual
43SUBDIR+= elk 43SUBDIR+= elk
44SUBDIR+= embryo 44SUBDIR+= embryo
45SUBDIR+= erlang 45SUBDIR+= erlang
46SUBDIR+= erlang-doc 46SUBDIR+= erlang-doc
47SUBDIR+= erlang-luerl 47SUBDIR+= erlang-luerl
48SUBDIR+= erlang-man 48SUBDIR+= erlang-man
49SUBDIR+= f2c 49SUBDIR+= f2c
50SUBDIR+= ficl 50SUBDIR+= ficl
51SUBDIR+= focal 51SUBDIR+= focal
52SUBDIR+= fort77 52SUBDIR+= fort77
53SUBDIR+= g95 53SUBDIR+= g95
54SUBDIR+= gambc 54SUBDIR+= gambc
55SUBDIR+= gauche 55SUBDIR+= gauche
56SUBDIR+= gawk 56SUBDIR+= gawk
57SUBDIR+= gcc-aux 57SUBDIR+= gcc-aux
58SUBDIR+= gcc2 58SUBDIR+= gcc2
59SUBDIR+= gcc3 59SUBDIR+= gcc3
60SUBDIR+= gcc3-c 60SUBDIR+= gcc3-c
61SUBDIR+= gcc3-c++ 61SUBDIR+= gcc3-c++
62SUBDIR+= gcc3-f77 62SUBDIR+= gcc3-f77
63SUBDIR+= gcc3-objc 63SUBDIR+= gcc3-objc
64SUBDIR+= gcc34 64SUBDIR+= gcc34
65SUBDIR+= gcc44 65SUBDIR+= gcc44
66SUBDIR+= gcc48 66SUBDIR+= gcc48
67SUBDIR+= gcc48-libs 67SUBDIR+= gcc48-libs
68SUBDIR+= gcc49 68SUBDIR+= gcc49
69SUBDIR+= gcc49-libs 69SUBDIR+= gcc49-libs
70SUBDIR+= gcc5 70SUBDIR+= gcc5
71SUBDIR+= gcc5-aux 71SUBDIR+= gcc5-aux
72SUBDIR+= gcc5-libs 72SUBDIR+= gcc5-libs
73SUBDIR+= gcc6 73SUBDIR+= gcc6
74SUBDIR+= gcc6-aux 74SUBDIR+= gcc6-aux
75SUBDIR+= gcc6-libs 75SUBDIR+= gcc6-libs
76SUBDIR+= gcc7 76SUBDIR+= gcc7
77SUBDIR+= gforth 77SUBDIR+= gforth
78SUBDIR+= ghc 78SUBDIR+= ghc
79SUBDIR+= ghc-bootstrap 79SUBDIR+= ghc-bootstrap
80SUBDIR+= ghc7 80SUBDIR+= ghc7
81SUBDIR+= gnat_util 81SUBDIR+= gnat_util
82SUBDIR+= gnucobol 82SUBDIR+= gnucobol
83SUBDIR+= go 83SUBDIR+= go
84SUBDIR+= go-hcl 84SUBDIR+= go-hcl
85SUBDIR+= go14 85SUBDIR+= go14
86SUBDIR+= gpc 86SUBDIR+= gpc
87SUBDIR+= gprolog 87SUBDIR+= gprolog
88SUBDIR+= guile 88SUBDIR+= guile
89SUBDIR+= guile20 89SUBDIR+= guile20
90SUBDIR+= guile22 90SUBDIR+= guile22
91SUBDIR+= gwydion-dylan 91SUBDIR+= gwydion-dylan
92SUBDIR+= heirloom-awk 92SUBDIR+= heirloom-awk
93SUBDIR+= hugs 93SUBDIR+= hugs
94SUBDIR+= icon 94SUBDIR+= icon
95SUBDIR+= inform 95SUBDIR+= inform
96SUBDIR+= intercal 96SUBDIR+= intercal
97SUBDIR+= ja-gawk 97SUBDIR+= ja-gawk
98SUBDIR+= jamvm 98SUBDIR+= jamvm
99SUBDIR+= japhar 99SUBDIR+= japhar
100SUBDIR+= jasmin 100SUBDIR+= jasmin
101SUBDIR+= java-lang-spec 101SUBDIR+= java-lang-spec
102SUBDIR+= java-vm-spec 102SUBDIR+= java-vm-spec
103SUBDIR+= jikes 103SUBDIR+= jikes
104SUBDIR+= jimtcl 104SUBDIR+= jimtcl
105SUBDIR+= jini 105SUBDIR+= jini
106SUBDIR+= joos 106SUBDIR+= joos
107SUBDIR+= js 107SUBDIR+= js
108SUBDIR+= kaffe 108SUBDIR+= kaffe
109SUBDIR+= kaffe-esound 109SUBDIR+= kaffe-esound
110SUBDIR+= kaffe-x11 110SUBDIR+= kaffe-x11
111SUBDIR+= kali 111SUBDIR+= kali
112SUBDIR+= konoha 112SUBDIR+= konoha
113SUBDIR+= ksi 113SUBDIR+= ksi
114SUBDIR+= libLLVM 114SUBDIR+= libLLVM
115SUBDIR+= libLLVM34 115SUBDIR+= libLLVM34
116SUBDIR+= libduktape 116SUBDIR+= libduktape
117SUBDIR+= librep 117SUBDIR+= librep
118SUBDIR+= libtcl-nothread 118SUBDIR+= libtcl-nothread
119SUBDIR+= libunwind 119SUBDIR+= libunwind
120SUBDIR+= likepython 120SUBDIR+= likepython
121SUBDIR+= llvm 121SUBDIR+= llvm
122#SUBDIR+= lua # only contains Makefile fragments 122#SUBDIR+= lua # only contains Makefile fragments
123SUBDIR+= lua51 123SUBDIR+= lua51
124SUBDIR+= lua52 124SUBDIR+= lua52
125SUBDIR+= lua53 125SUBDIR+= lua53
126SUBDIR+= lush 126SUBDIR+= lush
127SUBDIR+= maude 127SUBDIR+= maude
128SUBDIR+= mawk 128SUBDIR+= mawk
129SUBDIR+= mercury 129SUBDIR+= mercury
130SUBDIR+= micropython 130SUBDIR+= micropython
131SUBDIR+= minischeme 131SUBDIR+= minischeme
132SUBDIR+= mit-scheme-bin 132SUBDIR+= mit-scheme-bin
133SUBDIR+= mono 133SUBDIR+= mono
134SUBDIR+= mono-basic 134SUBDIR+= mono-basic
135SUBDIR+= mono2 135SUBDIR+= mono2
136SUBDIR+= moscow_ml 136SUBDIR+= moscow_ml
137SUBDIR+= mpd 137SUBDIR+= mpd
138SUBDIR+= nawk 138SUBDIR+= nawk
139SUBDIR+= newlisp 139SUBDIR+= newlisp
140SUBDIR+= newsqueak 140SUBDIR+= newsqueak
141SUBDIR+= nhc98 141SUBDIR+= nhc98
142SUBDIR+= nim 142SUBDIR+= nim
143SUBDIR+= nodejs 143SUBDIR+= nodejs
144SUBDIR+= nodejs4 144SUBDIR+= nodejs4
145SUBDIR+= nodejs6 145SUBDIR+= nodejs6
146SUBDIR+= nodejs8 146SUBDIR+= nodejs8
147SUBDIR+= nqp 147SUBDIR+= nqp
148SUBDIR+= nuitka 148SUBDIR+= nuitka
149SUBDIR+= objc 149SUBDIR+= objc
150SUBDIR+= ocaml 150SUBDIR+= ocaml
151SUBDIR+= oo2c 151SUBDIR+= oo2c
152SUBDIR+= open-cobol-ce 152SUBDIR+= open-cobol-ce
153SUBDIR+= opencobol 153SUBDIR+= opencobol
154SUBDIR+= openjdk7 154SUBDIR+= openjdk7
155SUBDIR+= openjdk8 155SUBDIR+= openjdk8
156SUBDIR+= opensource-cobol 156SUBDIR+= opensource-cobol
157SUBDIR+= oracle-jdk8 157SUBDIR+= oracle-jdk8
158SUBDIR+= oracle-jre8 158SUBDIR+= oracle-jre8
159SUBDIR+= ossp-js 159SUBDIR+= ossp-js
160SUBDIR+= owl-lisp 160SUBDIR+= owl-lisp
161SUBDIR+= p2c 161SUBDIR+= p2c
162SUBDIR+= p5-Switch 162SUBDIR+= p5-Switch
163SUBDIR+= parrot 163SUBDIR+= parrot
164SUBDIR+= pcc 164SUBDIR+= pcc
165SUBDIR+= pcc-current 165SUBDIR+= pcc-current
166SUBDIR+= pear 166SUBDIR+= pear
167SUBDIR+= perl5 167SUBDIR+= perl5
168SUBDIR+= pfe 168SUBDIR+= pfe
169SUBDIR+= pforth 169SUBDIR+= pforth
170#SUBDIR+= php # only contains Makefile fragments 170#SUBDIR+= php # only contains Makefile fragments
171SUBDIR+= php56 171SUBDIR+= php56
172SUBDIR+= php70 172SUBDIR+= php70
173SUBDIR+= php71 173SUBDIR+= php71
 174SUBDIR+= php72
174SUBDIR+= picoc 175SUBDIR+= picoc
175SUBDIR+= pict 176SUBDIR+= pict
176SUBDIR+= polyml 177SUBDIR+= polyml
177SUBDIR+= py-asttokens 178SUBDIR+= py-asttokens
178SUBDIR+= py-basicproperty 179SUBDIR+= py-basicproperty
179SUBDIR+= py-byterun 180SUBDIR+= py-byterun
180SUBDIR+= py-cxfreeze 181SUBDIR+= py-cxfreeze
181SUBDIR+= py-execjs 182SUBDIR+= py-execjs
182SUBDIR+= py-hy 183SUBDIR+= py-hy
183SUBDIR+= py-js2py 184SUBDIR+= py-js2py
184SUBDIR+= py-jsparser 185SUBDIR+= py-jsparser
185SUBDIR+= py-parso 186SUBDIR+= py-parso
186SUBDIR+= py-pyrex 187SUBDIR+= py-pyrex
187SUBDIR+= py-pythonz 188SUBDIR+= py-pythonz
188SUBDIR+= py-six 189SUBDIR+= py-six
189SUBDIR+= py27-html-docs 190SUBDIR+= py27-html-docs
190SUBDIR+= py34-html-docs 191SUBDIR+= py34-html-docs
191SUBDIR+= py35-html-docs 192SUBDIR+= py35-html-docs
192SUBDIR+= py36-html-docs 193SUBDIR+= py36-html-docs
193#SUBDIR+= python # only contains Makefile fragments 194#SUBDIR+= python # only contains Makefile fragments
194SUBDIR+= python27 195SUBDIR+= python27
195SUBDIR+= python34 196SUBDIR+= python34
196SUBDIR+= python35 197SUBDIR+= python35
197SUBDIR+= python36 198SUBDIR+= python36
198SUBDIR+= qore 199SUBDIR+= qore
199SUBDIR+= racket 200SUBDIR+= racket
200SUBDIR+= racket-textual 201SUBDIR+= racket-textual
201SUBDIR+= rakudo 202SUBDIR+= rakudo
202SUBDIR+= rakudo-star 203SUBDIR+= rakudo-star
203SUBDIR+= rcfunge 204SUBDIR+= rcfunge
204SUBDIR+= rexx-imc 205SUBDIR+= rexx-imc
205SUBDIR+= rexx-regina 206SUBDIR+= rexx-regina
206SUBDIR+= ruby 207SUBDIR+= ruby
207SUBDIR+= ruby-coffee-script 208SUBDIR+= ruby-coffee-script
208SUBDIR+= ruby-coffee-script-source 209SUBDIR+= ruby-coffee-script-source
209SUBDIR+= ruby-doc-stdlib 210SUBDIR+= ruby-doc-stdlib
210SUBDIR+= ruby-execjs 211SUBDIR+= ruby-execjs
211SUBDIR+= ruby-gherkin 212SUBDIR+= ruby-gherkin
212SUBDIR+= ruby-rkelly-remix 213SUBDIR+= ruby-rkelly-remix
213SUBDIR+= ruby22 214SUBDIR+= ruby22
214SUBDIR+= ruby22-base 215SUBDIR+= ruby22-base
215SUBDIR+= ruby23 216SUBDIR+= ruby23
216SUBDIR+= ruby23-base 217SUBDIR+= ruby23-base
217SUBDIR+= ruby24 218SUBDIR+= ruby24
218SUBDIR+= ruby24-base 219SUBDIR+= ruby24-base
219SUBDIR+= runawk 220SUBDIR+= runawk
220SUBDIR+= rust 221SUBDIR+= rust
221SUBDIR+= sablevm 222SUBDIR+= sablevm
222SUBDIR+= sablevm-classpath 223SUBDIR+= sablevm-classpath
223SUBDIR+= sablevm-classpath-gui 224SUBDIR+= sablevm-classpath-gui
224SUBDIR+= sather 225SUBDIR+= sather
225SUBDIR+= sbcl 226SUBDIR+= sbcl
226SUBDIR+= scala 227SUBDIR+= scala
227SUBDIR+= scheme48 228SUBDIR+= scheme48
228SUBDIR+= scm 229SUBDIR+= scm
229SUBDIR+= see 230SUBDIR+= see
230SUBDIR+= sigscheme 231SUBDIR+= sigscheme
231SUBDIR+= siod 232SUBDIR+= siod
232SUBDIR+= smalltalk 233SUBDIR+= smalltalk
233SUBDIR+= smlnj 234SUBDIR+= smlnj
234SUBDIR+= smlnj11072 235SUBDIR+= smlnj11072
235SUBDIR+= snobol 236SUBDIR+= snobol
236SUBDIR+= spidermonkey 237SUBDIR+= spidermonkey
237SUBDIR+= spidermonkey17 238SUBDIR+= spidermonkey17
238SUBDIR+= spidermonkey185 239SUBDIR+= spidermonkey185
239SUBDIR+= spl 240SUBDIR+= spl
240SUBDIR+= squeak 241SUBDIR+= squeak
241SUBDIR+= squeak-vm 242SUBDIR+= squeak-vm
242SUBDIR+= sr 243SUBDIR+= sr
243SUBDIR+= sr-examples 244SUBDIR+= sr-examples
244SUBDIR+= stalin 245SUBDIR+= stalin
245SUBDIR+= sun-jdk6 246SUBDIR+= sun-jdk6
246SUBDIR+= sun-jdk7 247SUBDIR+= sun-jdk7
247SUBDIR+= sun-jre6 248SUBDIR+= sun-jre6
248SUBDIR+= sun-jre7 249SUBDIR+= sun-jre7
249SUBDIR+= swi-prolog 250SUBDIR+= swi-prolog
250SUBDIR+= swi-prolog-jpl 251SUBDIR+= swi-prolog-jpl
251SUBDIR+= swi-prolog-lite 252SUBDIR+= swi-prolog-lite
252SUBDIR+= swi-prolog-packages 253SUBDIR+= swi-prolog-packages
253SUBDIR+= tcl 254SUBDIR+= tcl
254SUBDIR+= tcl-expect 255SUBDIR+= tcl-expect
255SUBDIR+= tcl-otcl 256SUBDIR+= tcl-otcl
256SUBDIR+= tcl85 257SUBDIR+= tcl85
257SUBDIR+= tinyscheme 258SUBDIR+= tinyscheme
258SUBDIR+= ucblogo 259SUBDIR+= ucblogo
259SUBDIR+= umb-scheme 260SUBDIR+= umb-scheme
260SUBDIR+= utilisp 261SUBDIR+= utilisp
261SUBDIR+= vala 262SUBDIR+= vala
262SUBDIR+= vscm 263SUBDIR+= vscm
263SUBDIR+= vslisp 264SUBDIR+= vslisp
264SUBDIR+= wsbasic 265SUBDIR+= wsbasic
265SUBDIR+= yabasic 266SUBDIR+= yabasic
266SUBDIR+= yap 267SUBDIR+= yap
267 268
268.include "../mk/misc/category.mk" 269.include "../mk/misc/category.mk"

cvs diff -r1.193 -r1.194 pkgsrc/lang/php/phpversion.mk (switch to unified diff)

--- pkgsrc/lang/php/phpversion.mk 2017/10/27 08:47:49 1.193
+++ pkgsrc/lang/php/phpversion.mk 2017/11/15 08:56:12 1.194
@@ -1,235 +1,246 @@ @@ -1,235 +1,246 @@
1# $NetBSD: phpversion.mk,v 1.193 2017/10/27 08:47:49 taca Exp $ 1# $NetBSD: phpversion.mk,v 1.194 2017/11/15 08:56:12 jdolecek Exp $
2# 2#
3# This file selects a PHP version, based on the user's preferences and 3# This file selects a PHP version, based on the user's preferences and
4# the installed packages. It does not add a dependency on the PHP 4# the installed packages. It does not add a dependency on the PHP
5# package. 5# package.
6# 6#
7# === User-settable variables === 7# === User-settable variables ===
8# 8#
9# PHP_VERSION_DEFAULT 9# PHP_VERSION_DEFAULT
10# The PHP version to choose when more than one is acceptable to 10# The PHP version to choose when more than one is acceptable to
11# the package. 11# the package.
12# 12#
13# Possible: 56 70 71 13# Possible: 56 70 71 72
14# Default: 56 14# Default: 56
15# 15#
16# === Infrastructure variables === 16# === Infrastructure variables ===
17# 17#
18# PHP_VERSION_REQD 18# PHP_VERSION_REQD
19# PHP version to use. This variable should not be set in 19# PHP version to use. This variable should not be set in
20# packages. Normally it is used by bulk build tools. 20# packages. Normally it is used by bulk build tools.
21# 21#
22# Possible: ${PHP_VERSIONS_ACCEPTED} 22# Possible: ${PHP_VERSIONS_ACCEPTED}
23# Default: ${PHP_VERSION_DEFAULT} 23# Default: ${PHP_VERSION_DEFAULT}
24# 24#
25# === Package-settable variables === 25# === Package-settable variables ===
26# 26#
27# PHP_VERSIONS_ACCEPTED 27# PHP_VERSIONS_ACCEPTED
28# The PHP versions that are accepted by the package. 28# The PHP versions that are accepted by the package.
29# 29#
30# Possible: 56 70 71 30# Possible: 56 70 71 72
31# Default: 56 31# Default: 56
32# 32#
33# PHP_VERSIONS_INCOMPATIBLE 33# PHP_VERSIONS_INCOMPATIBLE
34# The PHP versions that are not supported by the package. 34# The PHP versions that are not supported by the package.
35# 35#
36# Possible: 56 70 71 36# Possible: 56 70 71 72
37# Default: (empty) 37# Default: (empty)
38# 38#
39# PHP_CHECK_INSTALLED 39# PHP_CHECK_INSTALLED
40# Check installed version of PHP. Should be used by lang/php56, 40# Check installed version of PHP. Should be used by lang/php56,
41# lang/php70, or lang/php71 only. 41# lang/php70, or lang/php71 only.
42# 42#
43# Possible: Yes No 43# Possible: Yes No
44# Default: Yes 44# Default: Yes
45# 45#
46# === Variables defined by this file === 46# === Variables defined by this file ===
47# 47#
48# PKG_PHP_VERSION 48# PKG_PHP_VERSION
49# The selected PHP version. 49# The selected PHP version.
50# 50#
51# Possible: 56 70 71 51# Possible: 56 70 71 72
52# Default: ${PHP_VERSION_DEFAULT} 52# Default: ${PHP_VERSION_DEFAULT}
53# 53#
54# PHP_BASE_VERS 54# PHP_BASE_VERS
55# The selected PHP's full version depends on PKG_PHP_VERSION 55# The selected PHP's full version depends on PKG_PHP_VERSION
56# 56#
57# PKG_PHP_MAJOR_VERS 57# PKG_PHP_MAJOR_VERS
58# The selected PHP's major version. 58# The selected PHP's major version.
59# 59#
60# Possible: 5 7 60# Possible: 5 7
61# Default: 5 61# Default: 5
62# 62#
63# PKG_PHP 63# PKG_PHP
64# The same as ${PKG_PHP_VERSION}, prefixed with "php-". 64# The same as ${PKG_PHP_VERSION}, prefixed with "php-".
65# 65#
66# PHPPKGSRCDIR 66# PHPPKGSRCDIR
67# The directory of the PHP implementation, relative to the 67# The directory of the PHP implementation, relative to the
68# package directory. 68# package directory.
69# 69#
70# Example: ../../lang/php56 70# Example: ../../lang/php56
71# 71#
72# PHP_PKG_PREFIX 72# PHP_PKG_PREFIX
73# The prefix that is prepended to the package name. 73# The prefix that is prepended to the package name.
74# 74#
75# Example: php56 php70 php71 75# Example: php56 php70 php71 php72
76# 76#
77# PHP_EXTENSION_DIR 77# PHP_EXTENSION_DIR
78# Relative path to ${PREFIX} for PHP's extensions. It is derived from 78# Relative path to ${PREFIX} for PHP's extensions. It is derived from
79# initial release of major version. 79# initial release of major version.
80# 80#
81# Example: lib/php/20140828 81# Example: lib/php/20140828
82# 82#
83# Keywords: php 83# Keywords: php
84# 84#
85 85
86.if !defined(PHPVERSION_MK) 86.if !defined(PHPVERSION_MK)
87PHPVERSION_MK= defined 87PHPVERSION_MK= defined
88 88
89# Define each PHP's version. 89# Define each PHP's version.
90PHP56_VERSION= 5.6.32 90PHP56_VERSION= 5.6.32
91PHP70_VERSION= 7.0.25 91PHP70_VERSION= 7.0.25
92PHP71_VERSION= 7.1.11 92PHP71_VERSION= 7.1.11
 93PHP72_VERSION= 7.2.0RC6
93 94
94# Define initial release of major version. 95# Define initial release of major version.
95PHP56_RELDATE= 20140828 96PHP56_RELDATE= 20140828
96PHP70_RELDATE= 20151203 97PHP70_RELDATE= 20151203
97PHP71_RELDATE= 20160303 98PHP71_RELDATE= 20160303
 99PHP72_RELDATE= 20170718
98 100
99_VARGROUPS+= php 101_VARGROUPS+= php
100_USER_VARS.php= PHP_VERSION_DEFAULT 102_USER_VARS.php= PHP_VERSION_DEFAULT
101_PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD 103_PKG_VARS.php= PHP_VERSIONS_ACCEPTED PHP_VERSION_REQD
102_SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \ 104_SYS_VARS.php= PKG_PHP_VERSION PKG_PHP PHPPKGSRCDIR PHP_PKG_PREFIX \
103 PKG_PHP_MAJOR_VERS 105 PKG_PHP_MAJOR_VERS
104 106
105.include "../../mk/bsd.prefs.mk" 107.include "../../mk/bsd.prefs.mk"
106 108
107PHP_VERSION_DEFAULT?= 56 109PHP_VERSION_DEFAULT?= 56
108PHP_VERSIONS_ACCEPTED?= 56 70 71 110PHP_VERSIONS_ACCEPTED?= 56 70 71 72
109.for pv in ${PHP_VERSIONS_ACCEPTED} 111.for pv in ${PHP_VERSIONS_ACCEPTED}
110. if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv}) 112. if empty(PHP_VERSIONS_INCOMPATIBLE:M${pv})
111_PHP_VERSIONS_ACCEPTED+= ${pv} 113_PHP_VERSIONS_ACCEPTED+= ${pv}
112. endif 114. endif
113.endfor 115.endfor
114 116
115# transform the list into individual variables 117# transform the list into individual variables
116.for pv in ${_PHP_VERSIONS_ACCEPTED} 118.for pv in ${_PHP_VERSIONS_ACCEPTED}
117_PHP_VERSION_${pv}_OK= yes 119_PHP_VERSION_${pv}_OK= yes
118.endfor 120.endfor
119 121
120# check what is installed 122# check what is installed
121.if exists(${LOCALBASE}/lib/php/${PHP71_RELDATE}) 123.if exists(${LOCALBASE}/lib/php/${PHP72_RELDATE})
 124_PHP_VERSION_72_INSTALLED= yes
 125_PHP_INSTALLED= yes
 126.elif exists(${LOCALBASE}/lib/php/${PHP71_RELDATE})
122_PHP_VERSION_71_INSTALLED= yes 127_PHP_VERSION_71_INSTALLED= yes
123_PHP_INSTALLED= yes 128_PHP_INSTALLED= yes
124.elif exists(${LOCALBASE}/lib/php/${PHP70_RELDATE}) 129.elif exists(${LOCALBASE}/lib/php/${PHP70_RELDATE})
125_PHP_VERSION_70_INSTALLED= yes 130_PHP_VERSION_70_INSTALLED= yes
126_PHP_INSTALLED= yes 131_PHP_INSTALLED= yes
127.elif exists(${LOCALBASE}/lib/php/${PHP56_RELDATE}) 132.elif exists(${LOCALBASE}/lib/php/${PHP56_RELDATE})
128_PHP_VERSION_56_INSTALLED= yes 133_PHP_VERSION_56_INSTALLED= yes
129_PHP_INSTALLED= yes 134_PHP_INSTALLED= yes
130.endif 135.endif
131 136
132# if a version is explicitely required, take it 137# if a version is explicitely required, take it
133.if defined(PHP_VERSION_REQD) 138.if defined(PHP_VERSION_REQD)
134_PHP_VERSION= ${PHP_VERSION_REQD} 139_PHP_VERSION= ${PHP_VERSION_REQD}
135.endif 140.endif
136# if the default is already installed, it is first choice 141# if the default is already installed, it is first choice
137.if !defined(_PHP_VERSION) 142.if !defined(_PHP_VERSION)
138.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK) 143.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK)
139.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_INSTALLED) 144.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_INSTALLED)
140_PHP_VERSION= ${PHP_VERSION_DEFAULT} 145_PHP_VERSION= ${PHP_VERSION_DEFAULT}
141.endif 146.endif
142.endif 147.endif
143.endif 148.endif
144# prefer an already installed version, in order of "accepted" 149# prefer an already installed version, in order of "accepted"
145.if !defined(_PHP_VERSION) 150.if !defined(_PHP_VERSION)
146.for pv in ${_PHP_VERSIONS_ACCEPTED} 151.for pv in ${_PHP_VERSIONS_ACCEPTED}
147.if defined(_PHP_VERSION_${pv}_INSTALLED) 152.if defined(_PHP_VERSION_${pv}_INSTALLED)
148_PHP_VERSION?= ${pv} 153_PHP_VERSION?= ${pv}
149.else 154.else
150# keep information as last resort - see below 155# keep information as last resort - see below
151_PHP_VERSION_FIRSTACCEPTED?= ${pv} 156_PHP_VERSION_FIRSTACCEPTED?= ${pv}
152.endif 157.endif
153.endfor 158.endfor
154.endif 159.endif
155# if the default is OK for the addon pkg, take this 160# if the default is OK for the addon pkg, take this
156.if !defined(_PHP_VERSION) 161.if !defined(_PHP_VERSION)
157.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK) 162.if defined(_PHP_VERSION_${PHP_VERSION_DEFAULT}_OK)
158_PHP_VERSION= ${PHP_VERSION_DEFAULT} 163_PHP_VERSION= ${PHP_VERSION_DEFAULT}
159.endif 164.endif
160.endif 165.endif
161# take the first one accepted by the package 166# take the first one accepted by the package
162.if !defined(_PHP_VERSION) 167.if !defined(_PHP_VERSION)
163_PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED} 168_PHP_VERSION= ${_PHP_VERSION_FIRSTACCEPTED}
164.endif 169.endif
165 170
166# 171#
167# Variable assignment for multi-PHP packages 172# Variable assignment for multi-PHP packages
168MULTI+= PHP_VERSION_REQD=${_PHP_VERSION} 173MULTI+= PHP_VERSION_REQD=${_PHP_VERSION}
169 174
170# export some of internal variables 175# export some of internal variables
171PKG_PHP_VERSION:= ${_PHP_VERSION:C/\.[0-9]//} 176PKG_PHP_VERSION:= ${_PHP_VERSION:C/\.[0-9]//}
172PKG_PHP:= PHP${_PHP_VERSION:C/([0-9])([0-9])/\1.\2/} 177PKG_PHP:= PHP${_PHP_VERSION:C/([0-9])([0-9])/\1.\2/}
173 178
174# Major version 179# Major version
175PKG_PHP_MAJOR_VERS:= ${_PHP_VERSION:C/^([0-9]).*/\1/} 180PKG_PHP_MAJOR_VERS:= ${_PHP_VERSION:C/^([0-9]).*/\1/}
176 181
177PHP_CHECK_INSTALLED?= Yes 182PHP_CHECK_INSTALLED?= Yes
178 183
179# if installed PHP isn't compatible with required PHP, bail out 184# if installed PHP isn't compatible with required PHP, bail out
180.if empty(PHP_CHECK_INSTALLED:M[nN][oO]) 185.if empty(PHP_CHECK_INSTALLED:M[nN][oO])
181.if defined(_PHP_INSTALLED) && !defined(_PHP_VERSION_${_PHP_VERSION}_INSTALLED) 186.if defined(_PHP_INSTALLED) && !defined(_PHP_VERSION_${_PHP_VERSION}_INSTALLED)
182PKG_FAIL_REASON+= "Package accepts ${PKG_PHP}, but different version is installed" 187PKG_FAIL_REASON+= "Package accepts ${PKG_PHP}, but different version is installed"
183.endif 188.endif
184.endif 189.endif
185 190
186MESSAGE_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \ 191MESSAGE_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \
187 PKG_PHP=${PKG_PHP} 192 PKG_PHP=${PKG_PHP}
188PLIST_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \ 193PLIST_SUBST+= PKG_PHP_VERSION=${PKG_PHP_VERSION} \
189 PKG_PHP_MAJOR_VERS=${PKG_PHP_MAJOR_VERS} \ 194 PKG_PHP_MAJOR_VERS=${PKG_PHP_MAJOR_VERS} \
190 PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} 195 PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR}
191 196
192# force the selected PHP version for recursive builds 197# force the selected PHP version for recursive builds
193PHP_VERSION_REQD:= ${PKG_PHP_VERSION} 198PHP_VERSION_REQD:= ${PKG_PHP_VERSION}
194 199
195# 200#
196# set variables for the version we decided to use: 201# set variables for the version we decided to use:
197# 202#
198.if ${_PHP_VERSION} == "56" 203.if ${_PHP_VERSION} == "56"
199PHPPKGSRCDIR= ../../lang/php56 204PHPPKGSRCDIR= ../../lang/php56
200PHP_VERSION= ${PHP56_VERSION} 205PHP_VERSION= ${PHP56_VERSION}
201PHP_INITIAL_TEENY= 3 206PHP_INITIAL_TEENY= 3
202PHP_PKG_PREFIX= php56 207PHP_PKG_PREFIX= php56
203PHP_EXTENSION_DIR= lib/php/${PHP56_RELDATE} 208PHP_EXTENSION_DIR= lib/php/${PHP56_RELDATE}
204.elif ${_PHP_VERSION} == "70" 209.elif ${_PHP_VERSION} == "70"
205PHPPKGSRCDIR= ../../lang/php70 210PHPPKGSRCDIR= ../../lang/php70
206PHP_VERSION= ${PHP70_VERSION} 211PHP_VERSION= ${PHP70_VERSION}
207PHP_INITIAL_TEENY= 0 212PHP_INITIAL_TEENY= 0
208PHP_PKG_PREFIX= php70 213PHP_PKG_PREFIX= php70
209PHP_EXTENSION_DIR= lib/php/${PHP70_RELDATE} 214PHP_EXTENSION_DIR= lib/php/${PHP70_RELDATE}
210.elif ${_PHP_VERSION} == "71" 215.elif ${_PHP_VERSION} == "71"
211PHPPKGSRCDIR= ../../lang/php71 216PHPPKGSRCDIR= ../../lang/php71
212PHP_VERSION= ${PHP71_VERSION} 217PHP_VERSION= ${PHP71_VERSION}
213PHP_INITIAL_TEENY= 0 218PHP_INITIAL_TEENY= 0
214PHP_PKG_PREFIX= php71 219PHP_PKG_PREFIX= php71
215PHP_EXTENSION_DIR= lib/php/${PHP71_RELDATE} 220PHP_EXTENSION_DIR= lib/php/${PHP71_RELDATE}
 221.elif ${_PHP_VERSION} == "72"
 222PHPPKGSRCDIR= ../../lang/php72
 223PHP_VERSION= ${PHP72_VERSION}
 224PHP_INITIAL_TEENY= 0
 225PHP_PKG_PREFIX= php72
 226PHP_EXTENSION_DIR= lib/php/${PHP72_RELDATE}
216.else 227.else
217# force an error 228# force an error
218PKG_FAIL_REASON+= "${PKG_PHP} is not a valid package" 229PKG_FAIL_REASON+= "${PKG_PHP} is not a valid package"
219.endif 230.endif
220 231
221_PHP_VER_MAJOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/} 232_PHP_VER_MAJOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\1/}
222_PHP_VER_MINOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/} 233_PHP_VER_MINOR= ${PHP_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\2/}
223 234
224PHP_BASE_VERS= ${_PHP_VER_MAJOR}.${_PHP_VER_MINOR}.${PHP_INITIAL_TEENY} 235PHP_BASE_VERS= ${_PHP_VER_MAJOR}.${_PHP_VER_MINOR}.${PHP_INITIAL_TEENY}
225 236
226# 237#
227# check installed version aginst required: 238# check installed version aginst required:
228# 239#
229.if !empty(PHP_CHECK_INSTALLED:M[nN][oO]) 240.if !empty(PHP_CHECK_INSTALLED:M[nN][oO])
230.if defined(_PHP_VERSION_INSTALLED) && ${_PHP_VERSION} != ${_PHP_VERSION_INSTALLED} 241.if defined(_PHP_VERSION_INSTALLED) && ${_PHP_VERSION} != ${_PHP_VERSION_INSTALLED}
231PKG_FAIL_REASON+= "${PKGBASE} requires ${PKG_PHP}, but php-${_PHP_VERSION_INSTALLED} is already installed." 242PKG_FAIL_REASON+= "${PKGBASE} requires ${PKG_PHP}, but php-${_PHP_VERSION_INSTALLED} is already installed."
232.endif 243.endif
233.endif 244.endif
234 245
235.endif # PHPVERSION_MK 246.endif # PHPVERSION_MK

File Added: pkgsrc/lang/php72/Attic/DESCR
PHP is a widely-used open source general-purpose scripting language
that is especially suited for web development and can be embedded
into HTML. It is modular, and object-oriented. Much of its syntax
is borrowed from C, Java and Perl with a couple of unique PHP-specific
features thrown in.  The language is designed to allow web developers
to write dynamically generated pages quickly.

This package provides PHP version 7.2.x.

PHP 7.2.x builds upon 7.1.x, adding new features:

* Argument type declarations
* Object return type declarations
* Parameter Type Widening
* Trailing commas in list syntax
* Argon2 in password hash
* Libsodium as part of PHP Core
* Deprecated: __autoload, $php_errormsg, create_function(),
  mbstring.func_overload, parse_str() without second argument,
  gmp_random(), each(), assert(), $errcontext
* uniqid() patch to avoid usleep() integrated, 10000x improvement on NetBSD,
  about 10x on Linux

File Added: pkgsrc/lang/php72/Attic/MESSAGE
===========================================================================
$NetBSD: MESSAGE,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

To process PHP scripts, you will need a PHP-enabled HTTP server.  You may
either configure the HTTP server to use the PHP CGI binary located in

        ${CGIDIR}/php

or you may install a PHP module for your HTTP server, e.g. www/ap-php.

===========================================================================

File Added: pkgsrc/lang/php72/Attic/Makefile
# $NetBSD: Makefile,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

#
# We can't omit PKGNAME here to handle PKG_OPTIONS.
#
PKGNAME=		php-${PHP_VERSION:S/RC/rc/}
CATEGORIES=		lang
MASTER_SITES=   https://downloads.php.net/~pollita/

HOMEPAGE=		http://www.php.net/
COMMENT=		PHP Hypertext Preprocessor version 7.2
LICENSE=		php

TEST_TARGET=		test

USE_TOOLS+=		gmake lex pkg-config
LIBTOOL_OVERRIDE=	# empty
PHP_CHECK_INSTALLED=	No

PHP_VERSIONS_ACCEPTED=		72

.include "Makefile.php"

CGIDIR=			${PREFIX}/libexec/cgi-bin
EGDIR=			${PREFIX}/share/examples/php
MESSAGE_SUBST+=		CGIDIR=${CGIDIR}

CONFIGURE_ENV+=		lt_cv_path_SED=${SED:Q}
MAKE_ENV+=		INSTALL_ROOT=${DESTDIR}

CONF_FILES=		${EGDIR}/php.ini-production ${PKG_SYSCONFDIR}/php.ini
PLIST_SUBST+=		PHPEXTDIR="${PHP_EXTENSION_DIR}"

SUBST_CLASSES+=		path
SUBST_MESSAGE.path=	Fixing common paths.
SUBST_STAGE.path=	pre-configure
SUBST_FILES.path=	ext/phar/phar/phar.php
SUBST_FILES.path+=	php.ini-development php.ini-production run-tests.php
SUBST_FILES.path+=	sapi/cgi/Makefile.frag
SUBST_SED.path=		-e 's,@CGIDIR@,${CGIDIR},g'
SUBST_SED.path+=	-e 's,@PREFIX@,${PREFIX},g'

INSTALLATION_DIRS+=	${CGIDIR} ${PHP_EXTENSION_DIR} ${EGDIR} share/php

# segfault generating phar.phar for i386 & SPARC
# revisit this if builtin PCRE is updated beyond PCRE1 8.38
# https://bugs.php.net/bug.php?id=73880
.if ${MACHINE_ARCH} != "x86_64"
CONFIGURE_ARGS+=	--without-pcre-jit
.endif

# Make sure modules can link correctly
.if ${OPSYS} == "Darwin"
INSTALL_UNSTRIPPED=	yes
.endif

# Darwin < 9 (Mac OS X < 10.5 "Leopard") doesn't have gethostuuid(2)
# and lacks the zone memory allocator
.if !empty(MACHINE_PLATFORM:MDarwin-[0-8].*-*)
CFLAGS+=	-DSQLITE_ENABLE_LOCKING_STYLE=0 -DSQLITE_WITHOUT_ZONEMALLOC
.endif

post-install:
	${INSTALL_PROGRAM} ${WRKSRC}/sapi/cli/php ${DESTDIR}${PREFIX}/bin/php
	${INSTALL_DATA} ${WRKSRC}/sapi/cli/php.1 \
		${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/php.1
	${INSTALL_PROGRAM} ${WRKSRC}/sapi/cgi/php-cgi ${DESTDIR}${CGIDIR}/php
	cd ${WRKSRC}; ${INSTALL_DATA} php.ini-development php.ini-production \
		${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/php.gif ${DESTDIR}${PREFIX}/share/php

.include "../../mk/bsd.pkg.mk"

File Added: pkgsrc/lang/php72/Attic/Makefile.common
# $NetBSD: Makefile.common,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
# used by lang/php72/Makefile.php
# used by lang/php/ext.mk
# used by meta-pkgs/php72-extensions/Makefile

PHP_VERSION_REQD=	72

.include "../../lang/php/common.mk"

CATEGORIES+=		www
MAINTAINER?=		pkgsrc-users@NetBSD.org

# needed due to (broken?) configure checks in php-xmlrpc and php5-dom
CONFIGURE_ENV+=		PHP_LIBXML_SHARED="1"

.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
# configure test gets confused by wrappers dropping -R /usr/lib
CONFIGURE_ARGS+=	php_cv_cc_dashr=no
.endif

File Added: pkgsrc/lang/php72/Attic/Makefile.php
# $NetBSD: Makefile.php,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
# used by lang/php72/Makefile
# used by www/ap-php/Makefile
# used by www/php-fpm/Makefile

# PHP bug #74526 - segfaults on build with GCC 4.8.5 i386
.if ${MACHINE_ARCH} == "i386"
GCC_REQD+=              4.9
.endif

.include "../../lang/php72/Makefile.common"

DISTINFO_FILE=	${.CURDIR}/../../lang/php72/distinfo
PATCHDIR=	${.CURDIR}/../../lang/php72/patches

USE_LIBTOOL=		YES
USE_LANGUAGES=		c c++
GNU_CONFIGURE=		YES
BUILD_DEFS+=		VARBASE
PLIST_VARS+=		dtrace

CONFIGURE_ENV+=		EXTENSION_DIR="${PREFIX}/${PHP_EXTENSION_DIR}"

.include "../../mk/bsd.prefs.mk"

CONFIGURE_ARGS+=	--with-config-file-path=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--with-config-file-scan-dir=${PKG_SYSCONFDIR}/php.d
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+=	--localstatedir=${VARBASE}

CONFIGURE_ARGS+=	--without-mysqli
CONFIGURE_ARGS+=	--without-iconv
CONFIGURE_ARGS+=	--without-pear
#CONFIGURE_ARGS+=	--without-intl

CONFIGURE_ARGS+=	--disable-posix
CONFIGURE_ARGS+=	--disable-opcache
CONFIGURE_ARGS+=	--disable-pdo
CONFIGURE_ARGS+=	--disable-json

CONFIGURE_ARGS+=	--enable-cgi
CONFIGURE_ARGS+=	--enable-mysqlnd
CONFIGURE_ARGS+=	--enable-xml
CONFIGURE_ARGS+=	--with-libxml-dir=${PREFIX}
.include "../../textproc/libxml2/buildlink3.mk"

PKG_OPTIONS_VAR=	PKG_OPTIONS.${PHP_PKG_PREFIX}
PKG_SUPPORTED_OPTIONS+=	inet6 ssl maintainer-zts readline
PKG_SUGGESTED_OPTIONS+=	inet6 ssl readline

.if ${OPSYS} == "SunOS" || ${OPSYS} == "Darwin" || ${OPSYS} == "FreeBSD"
PKG_SUPPORTED_OPTIONS+=	dtrace
.endif

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.else
CONFIGURE_ARGS+=	--disable-ipv6
.endif

.if !empty(PKG_OPTIONS:Mssl)
.  include "../../security/openssl/buildlink3.mk"
.  if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+=	--with-openssl=yes
LIBS.SunOS+=		-lcrypto
.  else
CONFIGURE_ARGS+=	--with-openssl=${BUILDLINK_PREFIX.openssl}
.  endif
.else
CONFIGURE_ARGS+=	--without-openssl
.endif

.if !empty(PKG_OPTIONS:Mmaintainer-zts)
CONFIGURE_ARGS+=	--enable-maintainer-zts
.endif

.if !empty(PKG_OPTIONS:Mreadline)
USE_GNU_READLINE=	yes
.include "../../devel/readline/buildlink3.mk"
CONFIGURE_ARGS+=	--with-readline=${BUILDLINK_PREFIX.readline}
.else
CONFIGURE_ARGS+=	--without-readline
.endif

.if !empty(PKG_OPTIONS:Mdtrace)
PLIST.dtrace=		yes
CONFIGURE_ARGS+=	--enable-dtrace

# See https://bugs.php.net/bug.php?id=61268
INSTALL_MAKE_FLAGS+=	-r
.endif

DL_AUTO_VARS=		yes
.include "../../mk/dlopen.buildlink3.mk"

File Added: pkgsrc/lang/php72/Attic/PLIST
@comment $NetBSD: PLIST,v 1.1 2017/11/15 08:56:12 jdolecek Exp $
bin/phar
bin/phar.phar
bin/php
bin/php-config
bin/phpdbg
bin/phpize
include/php/TSRM/TSRM.h
include/php/TSRM/readdir.h
include/php/TSRM/tsrm_config.h
include/php/TSRM/tsrm_config.w32.h
include/php/TSRM/tsrm_config_common.h
include/php/TSRM/tsrm_strtok_r.h
include/php/TSRM/tsrm_win32.h
include/php/Zend/zend.h
include/php/Zend/zend_API.h
include/php/Zend/zend_alloc.h
include/php/Zend/zend_alloc_sizes.h
include/php/Zend/zend_arena.h
include/php/Zend/zend_ast.h
include/php/Zend/zend_bitset.h
include/php/Zend/zend_build.h
include/php/Zend/zend_builtin_functions.h
include/php/Zend/zend_closures.h
include/php/Zend/zend_compile.h
include/php/Zend/zend_config.h
include/php/Zend/zend_config.nw.h
include/php/Zend/zend_config.w32.h
include/php/Zend/zend_constants.h
include/php/Zend/zend_dtrace.h
${PLIST.dtrace}include/php/Zend/zend_dtrace_gen.h
include/php/Zend/zend_errors.h
include/php/Zend/zend_exceptions.h
include/php/Zend/zend_execute.h
include/php/Zend/zend_extensions.h
include/php/Zend/zend_float.h
include/php/Zend/zend_gc.h
include/php/Zend/zend_generators.h
include/php/Zend/zend_globals.h
include/php/Zend/zend_globals_macros.h
include/php/Zend/zend_hash.h
include/php/Zend/zend_highlight.h
include/php/Zend/zend_inheritance.h
include/php/Zend/zend_ini.h
include/php/Zend/zend_ini_parser.h
include/php/Zend/zend_ini_scanner.h
include/php/Zend/zend_ini_scanner_defs.h
include/php/Zend/zend_interfaces.h
include/php/Zend/zend_istdiostream.h
include/php/Zend/zend_iterators.h
include/php/Zend/zend_language_parser.h
include/php/Zend/zend_language_scanner.h
include/php/Zend/zend_language_scanner_defs.h
include/php/Zend/zend_list.h
include/php/Zend/zend_llist.h
include/php/Zend/zend_long.h
include/php/Zend/zend_modules.h
include/php/Zend/zend_multibyte.h
include/php/Zend/zend_multiply.h
include/php/Zend/zend_object_handlers.h
include/php/Zend/zend_objects.h
include/php/Zend/zend_objects_API.h
include/php/Zend/zend_operators.h
include/php/Zend/zend_portability.h
include/php/Zend/zend_ptr_stack.h
include/php/Zend/zend_range_check.h
include/php/Zend/zend_signal.h
include/php/Zend/zend_smart_str.h
include/php/Zend/zend_smart_str_public.h
include/php/Zend/zend_smart_string.h
include/php/Zend/zend_smart_string_public.h
include/php/Zend/zend_sort.h
include/php/Zend/zend_stack.h
include/php/Zend/zend_stream.h
include/php/Zend/zend_string.h
include/php/Zend/zend_strtod.h
include/php/Zend/zend_strtod_int.h
include/php/Zend/zend_ts_hash.h
include/php/Zend/zend_type_info.h
include/php/Zend/zend_types.h
include/php/Zend/zend_variables.h
include/php/Zend/zend_virtual_cwd.h
include/php/Zend/zend_vm.h
include/php/Zend/zend_vm_def.h
include/php/Zend/zend_vm_execute.h
include/php/Zend/zend_vm_opcodes.h
include/php/ext/date/lib/timelib.h
include/php/ext/date/lib/timelib_config.h
include/php/ext/date/php_date.h
include/php/ext/dom/xml_common.h
include/php/ext/filter/php_filter.h
include/php/ext/hash/php_hash.h
include/php/ext/hash/php_hash_adler32.h
include/php/ext/hash/php_hash_crc32.h
include/php/ext/hash/php_hash_fnv.h
include/php/ext/hash/php_hash_gost.h
include/php/ext/hash/php_hash_haval.h
include/php/ext/hash/php_hash_joaat.h
include/php/ext/hash/php_hash_md.h
include/php/ext/hash/php_hash_ripemd.h
include/php/ext/hash/php_hash_sha.h
include/php/ext/hash/php_hash_sha3.h
include/php/ext/hash/php_hash_snefru.h
include/php/ext/hash/php_hash_tiger.h
include/php/ext/hash/php_hash_whirlpool.h
include/php/ext/libxml/php_libxml.h
include/php/ext/mysqlnd/config-win.h
include/php/ext/mysqlnd/mysql_float_to_double.h
include/php/ext/mysqlnd/mysqlnd.h
include/php/ext/mysqlnd/mysqlnd_alloc.h
include/php/ext/mysqlnd/mysqlnd_auth.h
include/php/ext/mysqlnd/mysqlnd_block_alloc.h
include/php/ext/mysqlnd/mysqlnd_charset.h
include/php/ext/mysqlnd/mysqlnd_commands.h
include/php/ext/mysqlnd/mysqlnd_connection.h
include/php/ext/mysqlnd/mysqlnd_debug.h
include/php/ext/mysqlnd/mysqlnd_enum_n_def.h
include/php/ext/mysqlnd/mysqlnd_ext_plugin.h
include/php/ext/mysqlnd/mysqlnd_libmysql_compat.h
include/php/ext/mysqlnd/mysqlnd_plugin.h
include/php/ext/mysqlnd/mysqlnd_portability.h
include/php/ext/mysqlnd/mysqlnd_priv.h
include/php/ext/mysqlnd/mysqlnd_protocol_frame_codec.h
include/php/ext/mysqlnd/mysqlnd_ps.h
include/php/ext/mysqlnd/mysqlnd_read_buffer.h
include/php/ext/mysqlnd/mysqlnd_result.h
include/php/ext/mysqlnd/mysqlnd_result_meta.h
include/php/ext/mysqlnd/mysqlnd_reverse_api.h
include/php/ext/mysqlnd/mysqlnd_statistics.h
include/php/ext/mysqlnd/mysqlnd_structs.h
include/php/ext/mysqlnd/mysqlnd_vio.h
include/php/ext/mysqlnd/mysqlnd_wireprotocol.h
include/php/ext/mysqlnd/php_mysqlnd.h
include/php/ext/pcre/pcrelib/config.h
include/php/ext/pcre/pcrelib/pcre.h
include/php/ext/pcre/pcrelib/pcre_internal.h
include/php/ext/pcre/pcrelib/pcreposix.h
include/php/ext/pcre/pcrelib/ucp.h
include/php/ext/pcre/php_pcre.h
include/php/ext/phar/php_phar.h
include/php/ext/session/mod_files.h
include/php/ext/session/mod_user.h
include/php/ext/session/php_session.h
include/php/ext/simplexml/php_simplexml.h
include/php/ext/simplexml/php_simplexml_exports.h
include/php/ext/spl/php_spl.h
include/php/ext/spl/spl_array.h
include/php/ext/spl/spl_directory.h
include/php/ext/spl/spl_dllist.h
include/php/ext/spl/spl_engine.h
include/php/ext/spl/spl_exceptions.h
include/php/ext/spl/spl_fixedarray.h
include/php/ext/spl/spl_functions.h
include/php/ext/spl/spl_heap.h
include/php/ext/spl/spl_iterators.h
include/php/ext/spl/spl_observer.h
include/php/ext/standard/base64.h
include/php/ext/standard/basic_functions.h
include/php/ext/standard/crc32.h
include/php/ext/standard/credits.h
include/php/ext/standard/credits_ext.h
include/php/ext/standard/credits_sapi.h
include/php/ext/standard/crypt_blowfish.h
include/php/ext/standard/crypt_freesec.h
include/php/ext/standard/css.h
include/php/ext/standard/cyr_convert.h
include/php/ext/standard/datetime.h
include/php/ext/standard/dl.h
include/php/ext/standard/exec.h
include/php/ext/standard/file.h
include/php/ext/standard/flock_compat.h
include/php/ext/standard/fsock.h
include/php/ext/standard/head.h
include/php/ext/standard/html.h
include/php/ext/standard/html_tables.h
include/php/ext/standard/info.h
include/php/ext/standard/md5.h
include/php/ext/standard/microtime.h
include/php/ext/standard/pack.h
include/php/ext/standard/pageinfo.h
include/php/ext/standard/php_array.h
include/php/ext/standard/php_assert.h
include/php/ext/standard/php_browscap.h
include/php/ext/standard/php_crypt.h
include/php/ext/standard/php_crypt_r.h
include/php/ext/standard/php_dir.h
include/php/ext/standard/php_dns.h
include/php/ext/standard/php_ext_syslog.h
include/php/ext/standard/php_filestat.h
include/php/ext/standard/php_fopen_wrappers.h
include/php/ext/standard/php_ftok.h
include/php/ext/standard/php_http.h
include/php/ext/standard/php_image.h
include/php/ext/standard/php_incomplete_class.h
include/php/ext/standard/php_iptc.h
include/php/ext/standard/php_lcg.h
include/php/ext/standard/php_link.h
include/php/ext/standard/php_mail.h
include/php/ext/standard/php_math.h
include/php/ext/standard/php_metaphone.h
include/php/ext/standard/php_mt_rand.h
include/php/ext/standard/php_password.h
include/php/ext/standard/php_rand.h
include/php/ext/standard/php_random.h
include/php/ext/standard/php_smart_string.h
include/php/ext/standard/php_smart_string_public.h
include/php/ext/standard/php_standard.h
include/php/ext/standard/php_string.h
include/php/ext/standard/php_type.h
include/php/ext/standard/php_uuencode.h
include/php/ext/standard/php_var.h
include/php/ext/standard/php_versioning.h
include/php/ext/standard/proc_open.h
include/php/ext/standard/quot_print.h
include/php/ext/standard/scanf.h
include/php/ext/standard/sha1.h
include/php/ext/standard/streamsfuncs.h
include/php/ext/standard/uniqid.h
include/php/ext/standard/url.h
include/php/ext/standard/url_scanner_ex.h
include/php/ext/standard/winver.h
include/php/ext/xml/expat_compat.h
include/php/ext/xml/php_xml.h
include/php/main/SAPI.h
include/php/main/build-defs.h
include/php/main/fastcgi.h
include/php/main/fopen_wrappers.h
include/php/main/http_status_codes.h
include/php/main/php.h
include/php/main/php_compat.h
include/php/main/php_config.h
include/php/main/php_content_types.h
include/php/main/php_getopt.h
include/php/main/php_globals.h
include/php/main/php_ini.h
include/php/main/php_main.h
include/php/main/php_memory_streams.h
include/php/main/php_network.h
include/php/main/php_open_temporary_file.h
include/php/main/php_output.h
include/php/main/php_reentrancy.h
include/php/main/php_scandir.h
include/php/main/php_stdint.h
include/php/main/php_streams.h
include/php/main/php_syslog.h
include/php/main/php_ticks.h
include/php/main/php_variables.h
include/php/main/php_version.h
include/php/main/rfc1867.h
include/php/main/snprintf.h
include/php/main/spprintf.h
include/php/main/streams/php_stream_context.h
include/php/main/streams/php_stream_filter_api.h
include/php/main/streams/php_stream_glob_wrapper.h
include/php/main/streams/php_stream_mmap.h
include/php/main/streams/php_stream_plain_wrapper.h
include/php/main/streams/php_stream_transport.h
include/php/main/streams/php_stream_userspace.h
include/php/main/streams/php_streams_int.h
include/php/sapi/cli/cli.h
lib/php/build/Makefile.global
lib/php/build/acinclude.m4
lib/php/build/ax_check_compile_flag.m4
lib/php/build/config.guess
lib/php/build/config.sub
lib/php/build/libtool.m4
lib/php/build/ltmain.sh
lib/php/build/mkdep.awk
lib/php/build/phpize.m4
lib/php/build/run-tests.php
lib/php/build/scan_makefile_in.awk
lib/php/build/shtool
libexec/cgi-bin/php
man/man1/phar.1
man/man1/phar.phar.1
man/man1/php-cgi.1
man/man1/php-config.1
man/man1/php.1
man/man1/phpdbg.1
man/man1/phpize.1
share/examples/php/php.ini-development
share/examples/php/php.ini-production
share/php/php.gif
@pkgdir ${PHPEXTDIR}

File Added: pkgsrc/lang/php72/Attic/buildlink3.mk
# $NetBSD: buildlink3.mk,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

BUILDLINK_TREE+=	php

.if !defined(PHP_BUILDLINK3_MK)
PHP_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.php+=	php>=7.2.0rc1<7.3
BUILDLINK_ABI_DEPENDS.php+=	php>=7.2.0rc1<7.3
BUILDLINK_PKGSRCDIR.php?=	../../lang/php72

.include "../../textproc/libxml2/buildlink3.mk"
.endif # PHP_BUILDLINK3_MK

BUILDLINK_TREE+=	-php

File Added: pkgsrc/lang/php72/Attic/distinfo
$NetBSD: distinfo,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

SHA1 (php-7.2.0RC6.tar.bz2) = dfc81aa8965ec73f3d24725d207ad9f6b362a238
RMD160 (php-7.2.0RC6.tar.bz2) = 8b4dac9c5247b3d63b8d7a785bb5015555f37fee
SHA512 (php-7.2.0RC6.tar.bz2) = 35cf7e4aaf461c360885aaa4bb7997ae60eb7d8a8134c8ab4c42412576a9c36b56f1acc24358be3e7722142a10f330719907f254d6bf174fb22a6d61d3fe3fde
Size (php-7.2.0RC6.tar.bz2) = 14953026 bytes
SHA1 (patch-acinclude.m4) = b682280fd89950c082c2226bdb7364b0dc475bad
SHA1 (patch-configure) = a129e19ef87338f6e53ccc967c40ddcde7c7357c
SHA1 (patch-ext_gd_config.m4) = 93b62daad93b9ee6dc28e06016f739bc26b0dc9f
SHA1 (patch-ext_imap_config.m4) = f4e10ab81697b72019313f63bc630627a08efd92
SHA1 (patch-ext_intl_config.m4) = 1ea3d3e6f05d5fed0bd4ca4518440199aec0954d
SHA1 (patch-ext_pcre_pcrelib_config.h) = c5fba95856628f68639fe63feeef04a5f83d3916
SHA1 (patch-ext_pdo__mysql_config.m4) = b1ef91be5a729040197e9af50da0f5fd1f6c90a8
SHA1 (patch-ext_pdo_config.m4) = 522281775cc0e70a135b1f813158988ef1f3e244
SHA1 (patch-ext_phar_Makefile.frag) = 558869b60f8ed6674a3ba1d595a65f010df4c426
SHA1 (patch-ext_phar_phar_phar.php) = f630e3946b21b76d4fe857a43e00e25c9445f2c8
SHA1 (patch-ext_recode_recode.c) = a97a1815d6a41410f68c289debbb9396128a2159
SHA1 (patch-ext_sqlite3_libsqlite_sqlite3.c) = 8a529a1b3f7c97731f2e719d006f67c3a7259bb5
SHA1 (patch-ext_standard_basic__functions.c) = f97a2748c7b15fbd9a2d3c21e56079088cc05d56
SHA1 (patch-ext_standard_uniqid.c) = 154ed6e6d4796a52c6664b52994d6cad4ed22f30
SHA1 (patch-ext_xsl_php__xsl.h) = a9877bff7bacc77926a4541a0ac171c00ad1a627
SHA1 (patch-makedist) = 2ac0e0391c031c4fcf4993e2269cde4c6bfddfd5
SHA1 (patch-php.ini-development) = dd65962000ec06439fae3c9bf252fa46be4e33fd
SHA1 (patch-php.ini-production) = ae61dffedf574b688fe576b0b2af748b7a28cd89
SHA1 (patch-run-tests.php) = 86c4d3f03eb8e31b5a35820f426533c9478571fb
SHA1 (patch-sapi_cgi_Makefile.frag) = 18769900f588ff81cc34474542afa1d65c070e65
SHA1 (patch-sapi_cli_Makefile.frag) = 1cd29d09042863acbf5330e406410fdcf75d06b3
SHA1 (patch-sapi_fpm_fpm_events_port.c) = 0f10fdb32fb7cab58e2abda49fb1fc658c410150
SHA1 (patch-sapi_fpm_php-fpm.conf.in) = b3c4fd499cbfd2dffd9176abb54e298ea542a5d7

File Added: pkgsrc/lang/php72/patches/Attic/patch-acinclude.m4
$NetBSD: patch-acinclude.m4,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- acinclude.m4.orig	2015-06-23 17:33:33.000000000 +0000
+++ acinclude.m4
@@ -2354,7 +2354,7 @@ AC_DEFUN([PHP_SETUP_OPENSSL],[
   if test "$found_openssl" = "no"; then
   
     if test "$PHP_OPENSSL_DIR" = "yes"; then
-      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
+      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /"
     fi
 
     for i in $PHP_OPENSSL_DIR; do

File Added: pkgsrc/lang/php72/patches/Attic/patch-configure
$NetBSD: patch-configure,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- configure.orig	2016-04-28 18:12:26.000000000 +0000
+++ configure
@@ -6930,27 +6930,6 @@ EOF
     ;;
   esac
 
-  if test "$APACHE_VERSION" -lt 2004001; then
-    APXS_MPM=`$APXS -q MPM_NAME`
-    if test "$APXS_MPM" != "prefork" && test "$APXS_MPM" != "peruser" && test "$APXS_MPM" != "itk"; then
-
-  enable_maintainer_zts=yes
-  if test "$pthreads_working" != "yes"; then
-    as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
-  fi
-
-    fi
-  else
-    APACHE_THREADED_MPM=`$APXS_HTTPD -V | grep 'threaded:.*yes'`
-    if test -n "$APACHE_THREADED_MPM"; then
-
-  enable_maintainer_zts=yes
-  if test "$pthreads_working" != "yes"; then
-    as_fn_error $? "ZTS currently requires working POSIX threads. We were unable to verify that your system supports Pthreads." "$LINENO" 5
-  fi
-
-    fi
-  fi
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
 
@@ -18408,7 +18387,7 @@ fi
     if test "$found_openssl" = "no"; then
 
     if test "$PHP_OPENSSL_DIR" = "yes"; then
-      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
+      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /"
     fi
 
     for i in $PHP_OPENSSL_DIR; do
@@ -20572,7 +20551,7 @@ $as_echo "yes" >&6; }
     PHP_SQLITE3_CFLAGS="-I@ext_srcdir@/libsqlite $other_flags $threadsafe_flags $debug_flags"
 
 
-    for header_file in ext/sqlite3/libsqlite/sqlite3.h; do
+    for header_file; do
 
 
   unique=`echo $header_file|$SED 's/[^a-zA-Z0-9]/_/g'`
@@ -31742,7 +31721,7 @@ fi
     if test "$found_openssl" = "no"; then
 
     if test "$PHP_OPENSSL_DIR" = "yes"; then
-      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
+      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /"
     fi
 
     for i in $PHP_OPENSSL_DIR; do
@@ -42631,7 +42610,7 @@ fi
     if test "$found_openssl" = "no"; then
 
     if test "$PHP_OPENSSL_DIR" = "yes"; then
-      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
+      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /"
     fi
 
     for i in $PHP_OPENSSL_DIR; do
@@ -92806,7 +92785,7 @@ fi
     if test "$found_openssl" = "no"; then
 
     if test "$PHP_OPENSSL_DIR" = "yes"; then
-      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl"
+      PHP_OPENSSL_DIR="/usr/local/ssl /usr/local /usr /usr/local/openssl /"
     fi
 
     for i in $PHP_OPENSSL_DIR; do
@@ -96439,12 +96418,7 @@ old_CC=$CC
 if test "$PHP_THREAD_SAFETY" = "yes" && test -n "$ac_cv_pthreads_cflags"; then
   CXXFLAGS="$CXXFLAGS $ac_cv_pthreads_cflags"
   INLINE_CFLAGS="$INLINE_CFLAGS $ac_cv_pthreads_cflags"
-  cat >meta_ccld<<EOF
-#! /bin/sh
-exec $CC $ac_cv_pthreads_cflags \$@
-EOF
-  CC="$abs_builddir/meta_ccld"
-  chmod +x meta_ccld
+  CPPFLAGS="$CPPFLAGS $ac_cv_pthreads_cflags"
 fi
 
 if test "$PHP_THREAD_SAFETY" = "yes" && test "$PHP_MYSQL" = "yes"; then

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_imap_config.m4
$NetBSD: patch-ext_imap_config.m4,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/imap/config.m4.orig	2015-06-23 17:33:33.000000000 +0000
+++ ext/imap/config.m4
@@ -48,6 +48,14 @@ AC_DEFUN([PHP_IMAP_TEST_BUILD], [
   ])
 ])
 
+dsl Must be before --with-kerberos, affects the check
+PHP_ARG_WITH(imap-linkage,use IMAP c-client linkage,
+[  --with-imap-linkage     Use IMAP c-client linkage to determine supported items.])
+
+if test "$PHP_IMAP_LINKAGE" != "no"; then  
+	AC_DEFINE(HAVE_IMAP_LINKAGE, 1, [ ])
+fi
+
 AC_DEFUN([PHP_IMAP_KRB_CHK], [
   if test "$PHP_KERBEROS" != "no"; then
     PHP_SETUP_KERBEROS(IMAP_SHARED_LIBADD,
@@ -59,7 +67,7 @@ AC_DEFUN([PHP_IMAP_KRB_CHK], [
       Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr )
       ])
     ])
-  else
+  elif test "$PHP_IMAP_LINKAGE" != "yes"; then
     AC_EGREP_HEADER(auth_gss, $IMAP_INC_DIR/linkage.h, [
       AC_MSG_ERROR([This c-client library is built with Kerberos support. 
 

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_intl_config.m4
$NetBSD: patch-ext_intl_config.m4,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

Work around for build problem.

--- ext/intl/config.m4.orig	2017-02-14 18:35:43.000000000 +0000
+++ ext/intl/config.m4
@@ -86,7 +86,7 @@ if test "$PHP_INTL" != "no"; then
     breakiterator/codepointiterator_methods.cpp \
     uchar/uchar.c \
     idn/idn.c \
-    $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1,cxx)
+    $icu_spoof_src, $ext_shared,,$ICU_INCS -Wno-write-strings -D__STDC_LIMIT_MACROS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
   PHP_ADD_BUILD_DIR($ext_builddir/collator)
   PHP_ADD_BUILD_DIR($ext_builddir/converter)
   PHP_ADD_BUILD_DIR($ext_builddir/common)

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_pcre_pcrelib_config.h
$NetBSD: patch-ext_pcre_pcrelib_config.h,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/pcre/pcrelib/config.h.orig	2016-09-29 02:15:39.000000000 +0000
+++ ext/pcre/pcrelib/config.h
@@ -400,8 +400,21 @@ them both to 0; an emulation function wi
 
 /* Define to any value to enable support for Just-In-Time compiling. */
 #if HAVE_PCRE_JIT_SUPPORT
-#define SUPPORT_JIT
+#if defined(__i386__) || defined(__i386) \
+|| defined(__x86_64__) \
+|| defined(__arm__) || defined(__ARM__) \
+|| defined (__aarch64__) \
+|| defined(__ppc64__) || defined(__powerpc64__) || defined(_ARCH_PPC64) \
+|| (defined(_POWER) && defined(__64BIT__)) \
+|| defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC) \
+|| defined(_ARCH_PWR) || defined(_ARCH_PWR2) || defined(_POWER) \
+|| (defined(__mips__) && !defined(_LP64)) \
+|| defined(__mips64) \
+|| defined(__sparc__) || defined(__sparc) \
+|| defined(__tilegx__)
+  #define SUPPORT_JIT
 #endif
+#endif /* HAVE_PCRE_JIT_SUPPORT */
 
 /* Define to any value to allow pcregrep to be linked with libbz2, so that it
    is able to handle .bz2 files. */

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_pdo__mysql_config.m4
$NetBSD: patch-ext_pdo__mysql_config.m4,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/pdo_mysql/config.m4.orig	2015-06-23 17:33:33.000000000 +0000
+++ ext/pdo_mysql/config.m4
@@ -156,7 +156,7 @@ if test "$PHP_PDO_MYSQL" != "no"; then
   fi
 
   dnl fix after renaming to pdo_mysql
-  PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,,-I$pdo_cv_inc_path -I -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
+  PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,,-DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
   ifdef([PHP_ADD_EXTENSION_DEP],
   [
     PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo)

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_pdo_config.m4
$NetBSD: patch-ext_pdo_config.m4,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/pdo/config.m4.orig	2015-06-23 17:33:33.000000000 +0000
+++ ext/pdo/config.m4
@@ -37,20 +37,6 @@ if test "$PHP_PDO" != "no"; then
 
   PHP_PDO_PEAR_CHECK
 
-  if test "$ext_shared" = "yes" ; then
-    case $host_alias in
-      *darwin*)
-          AC_MSG_ERROR([
-Due to the way that loadable modules work on OSX/Darwin, you need to
-compile the PDO package statically into the PHP core.
-
-Please follow the instructions at: http://netevil.org/node.php?nid=202
-for more detail on this issue.
-          ])
-        ext_shared=no
-        ;;
-    esac
-  fi
   PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
   ifdef([PHP_ADD_EXTENSION_DEP],
   [

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_phar_Makefile.frag
$NetBSD: patch-ext_phar_Makefile.frag,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/phar/Makefile.frag.orig	2015-06-23 17:33:33.000000000 +0000
+++ ext/phar/Makefile.frag
@@ -18,7 +18,7 @@ PHP_PHARCMD_EXECUTABLE = ` \
 	else \
 		$(top_srcdir)/build/shtool echo -n -- "$(PHP_EXECUTABLE)"; \
 	fi;`
-PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(INSTALL_ROOT)$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";`
+PHP_PHARCMD_BANG = `$(top_srcdir)/build/shtool echo -n -- "$(bindir)/$(program_prefix)php$(program_suffix)$(EXEEXT)";`
 
 $(builddir)/phar/phar.inc: $(srcdir)/phar/phar.inc
 	-@test -d $(builddir)/phar || mkdir $(builddir)/phar

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_phar_phar_phar.php
$NetBSD: patch-ext_phar_phar_phar.php,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/phar/phar/phar.php.orig	2015-06-23 17:33:33.000000000 +0000
+++ ext/phar/phar/phar.php
@@ -1,4 +1,4 @@
-#!/usr/local/bin/php
+#!@PREFIX@/bin/php
 <?php
 
 /** @file phar.php

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_recode_recode.c
$NetBSD: patch-ext_recode_recode.c,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

program_name is expected variable, is required by recode 3.5 and recode 3.6 to actually work.

The config.m4 test for it is broken at least for some platforms -  it only tests if program without it compiles, but on Solaris and MacOS/Darwin at least it only fails when run.

--- ext/recode/recode.c.orig	2016-07-24 13:07:47.000000000 +0000
+++ ext/recode/recode.c
@@ -29,11 +29,8 @@
 
 #if HAVE_LIBRECODE
 
-/* For recode 3.5 */
-#if HAVE_BROKEN_RECODE
-extern char *program_name;
-char *program_name = "php";
-#endif
+extern const char *program_name;
+const char *program_name = "php";
 
 #ifdef HAVE_STDBOOL_H
 # include <stdbool.h>

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_sqlite3_libsqlite_sqlite3.c
$NetBSD: patch-ext_sqlite3_libsqlite_sqlite3.c,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- ext/sqlite3/libsqlite/sqlite3.c.orig	2015-06-23 17:33:33.000000000 +0000
+++ ext/sqlite3/libsqlite/sqlite3.c
@@ -8408,7 +8408,7 @@ struct sqlite3_rtree_query_info {
 ** But _XOPEN_SOURCE define causes problems for Mac OS X, so omit
 ** it.
 */
-#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__)
+#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__sun)
 #  define _XOPEN_SOURCE 600
 #endif
 

File Added: pkgsrc/lang/php72/patches/Attic/patch-ext_xsl_php__xsl.h
$NetBSD: patch-ext_xsl_php__xsl.h,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

The dom header is now supplied by the main php bl3.

--- ext/xsl/php_xsl.h.orig	2017-03-14 13:17:46.000000000 +0000
+++ ext/xsl/php_xsl.h
@@ -41,7 +41,7 @@ extern zend_module_entry xsl_module_entr
 #include <libexslt/exsltconfig.h>
 #endif
 
-#include "../dom/xml_common.h"
+#include "dom/xml_common.h"
 #include "xsl_fe.h"
 
 #include <libxslt/extensions.h>

File Added: pkgsrc/lang/php72/patches/Attic/patch-makedist
$NetBSD: patch-makedist,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- makedist.orig	2015-06-23 17:33:33.000000000 +0000
+++ makedist
@@ -35,7 +35,7 @@ if test "${1}" = "1" -a "${2}" -lt "28";
 fi
 IFS="$old_IFS"
 
-if test "x$PHPROOT" == "x"; then
+if test "x$PHPROOT" = "x"; then
     PHPROOT=git@git.php.net:php-src.git;
 fi
 

File Added: pkgsrc/lang/php72/patches/Attic/patch-php.ini-development
$NetBSD: patch-php.ini-development,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- php.ini-development.orig	2015-06-23 17:33:33.000000000 +0000
+++ php.ini-development
@@ -697,7 +697,7 @@ default_charset = "UTF-8"
 ;;;;;;;;;;;;;;;;;;;;;;;;;
 
 ; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
+include_path = ".:@PREFIX@/lib/php"
 ;
 ; Windows: "\path1;\path2"
 ;include_path = ".;c:\php\includes"
@@ -718,8 +718,8 @@ doc_root =
 ; http://php.net/user-dir
 user_dir =
 
-; Directory in which the loadable extensions (modules) reside.
-; http://php.net/extension-dir
+; Directory in which the loadable extensions (modules) reside. If not
+; defined, then use the extension directory specified at compile-time.
 ; extension_dir = "./"
 ; On windows:
 ; extension_dir = "ext"
@@ -792,7 +792,7 @@ file_uploads = On
 ; Temporary directory for HTTP uploaded files (will use system default if not
 ; specified).
 ; http://php.net/upload-tmp-dir
-;upload_tmp_dir =
+upload_tmp_dir = /tmp
 
 ; Maximum allowed size for uploaded files.
 ; http://php.net/upload-max-filesize

File Added: pkgsrc/lang/php72/patches/Attic/patch-php.ini-production
$NetBSD: patch-php.ini-production,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- php.ini-production.orig	2015-06-23 17:33:33.000000000 +0000
+++ php.ini-production
@@ -697,7 +697,7 @@ default_charset = "UTF-8"
 ;;;;;;;;;;;;;;;;;;;;;;;;;
 
 ; UNIX: "/path1:/path2"
-;include_path = ".:/php/includes"
+include_path = ".:@PREFIX@/lib/php"
 ;
 ; Windows: "\path1;\path2"
 ;include_path = ".;c:\php\includes"
@@ -718,8 +718,8 @@ doc_root =
 ; http://php.net/user-dir
 user_dir =
 
-; Directory in which the loadable extensions (modules) reside.
-; http://php.net/extension-dir
+; Directory in which the loadable extensions (modules) reside. If not
+; defined, then use the extension directory specified at compile-time.
 ; extension_dir = "./"
 ; On windows:
 ; extension_dir = "ext"
@@ -792,7 +792,7 @@ file_uploads = On
 ; Temporary directory for HTTP uploaded files (will use system default if not
 ; specified).
 ; http://php.net/upload-tmp-dir
-;upload_tmp_dir =
+upload_tmp_dir = /tmp
 
 ; Maximum allowed size for uploaded files.
 ; http://php.net/upload-max-filesize

File Added: pkgsrc/lang/php72/patches/Attic/patch-run-tests.php
$NetBSD: patch-run-tests.php,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- run-tests.php.orig	2015-06-23 17:33:33.000000000 +0000
+++ run-tests.php
@@ -1,4 +1,4 @@
-#!/usr/bin/env php
+#!@PREFIX@/bin/php
 <?php
 /*
    +----------------------------------------------------------------------+

File Added: pkgsrc/lang/php72/patches/Attic/patch-sapi_cgi_Makefile.frag
$NetBSD: patch-sapi_cgi_Makefile.frag,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- sapi/cgi/Makefile.frag.orig	2015-06-23 17:33:33.000000000 +0000
+++ sapi/cgi/Makefile.frag
@@ -4,9 +4,9 @@ $(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(P
 	$(BUILD_CGI)
 
 install-cgi: $(SAPI_CGI_PATH)
-	@echo "Installing PHP CGI binary:        $(INSTALL_ROOT)$(bindir)/"
+	@echo "Installing PHP CGI binary:        $(INSTALL_ROOT)@CGIDIR@/"
 	@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
-	@$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)
+	@$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)@CGIDIR@/$(program_prefix)php$(program_suffix)$(EXEEXT)
 	@echo "Installing PHP CGI man page:      $(INSTALL_ROOT)$(mandir)/man1/"
 	@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
 	@$(INSTALL_DATA) sapi/cgi/php-cgi.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php-cgi$(program_suffix).1

File Added: pkgsrc/lang/php72/patches/Attic/patch-sapi_cli_Makefile.frag
$NetBSD: patch-sapi_cli_Makefile.frag,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

Needed on NetBSD with PaX MPROTEXT, otherwise core dump with:
#1  0x00000000004d0d87 in _pcre_jit_exec ()
#2  0x00000000004a53f1 in php_pcre_exec ()
https://bugs.php.net/bug.php?id=72281

--- sapi/cli/Makefile.frag.orig	2016-04-28 18:12:27.000000000 +0000
+++ sapi/cli/Makefile.frag
@@ -2,6 +2,9 @@ cli: $(SAPI_CLI_PATH)
 
 $(SAPI_CLI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CLI_OBJS)
 	$(BUILD_CLI)
+	@if test -x /usr/sbin/paxctl; then \
+		/usr/sbin/paxctl +m $(SAPI_CLI_PATH); \
+	fi
 
 install-cli: $(SAPI_CLI_PATH)
 	@echo "Installing PHP CLI binary:        $(INSTALL_ROOT)$(bindir)/"

File Added: pkgsrc/lang/php72/patches/Attic/patch-sapi_fpm_fpm_events_port.c
$NetBSD: patch-sapi_fpm_fpm_events_port.c,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- sapi/fpm/fpm/events/port.c.orig	2015-06-23 17:33:33.000000000 +0000
+++ sapi/fpm/fpm/events/port.c
@@ -124,6 +124,7 @@ static int fpm_event_port_wait(struct fp
 	t.tv_nsec = (timeout % 1000) * 1000 * 1000;
 
 	/* wait for inconming event or timeout. We want at least one event or timeout */
+again:
 	nget = 1;
 	ret = port_getn(pfd, events, nevents, &nget, &t);
 	if (ret < 0) {
@@ -133,17 +134,31 @@ static int fpm_event_port_wait(struct fp
 			zlog(ZLOG_WARNING, "poll() returns %d", errno);
 			return -1;
 		}
+
+		if (errno == EINTR)
+			goto again;
+
+		return 0;
 	}
 
 	for (i = 0; i < nget; i++) {
+		struct fpm_event_s *ev;
 
 		/* do we have a ptr to the event ? */
 		if (!events[i].portev_user) {
 			continue;
 		}
 
+		ev = (struct fpm_event_s *)events[i].portev_user;
+
+		if (port_associate(pfd, PORT_SOURCE_FD,
+		    ev->fd, POLLIN, (void *)ev) < 0) {
+			zlog(ZLOG_ERROR, "port: unable to add the event");
+			return -1;
+		}
+
 		/* fire the event */
-		fpm_event_fire((struct fpm_event_s *)events[i].portev_user);
+		fpm_event_fire(ev);
 
 		/* sanity check */
 		if (fpm_globals.parent_pid != getpid()) {

File Added: pkgsrc/lang/php72/patches/Attic/patch-sapi_fpm_php-fpm.conf.in
$NetBSD: patch-sapi_fpm_php-fpm.conf.in,v 1.1 2017/11/15 08:56:12 jdolecek Exp $

--- sapi/fpm/php-fpm.conf.in.orig	2015-06-23 17:33:33.000000000 +0000
+++ sapi/fpm/php-fpm.conf.in
@@ -14,7 +14,7 @@
 ; Pid file
 ; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@
 ; Default Value: none
-;pid = run/php-fpm.pid
+pid = run/php-fpm.pid
 
 ; Error log file
 ; If it's set to "syslog", log is sent to syslogd instead of being written