1menu "Extensions"
2
3config BR2_PACKAGE_PHP_EXT_CALENDAR
4	bool "Calendar"
5	help
6	  Calendar and event support
7
8config BR2_PACKAGE_PHP_EXT_FILEINFO
9	bool "Fileinfo"
10	help
11	  File Information support
12
13comment "OPcache needs a toolchain w/ dynamic library"
14	depends on BR2_STATIC_LIBS
15
16config BR2_PACKAGE_PHP_EXT_OPCACHE
17	bool "OPcache"
18	depends on !BR2_STATIC_LIBS
19	help
20	  Enable the Zend OPcache accelerator.
21
22comment "Readline needs a toolchain w/ dynamic library"
23	depends on BR2_STATIC_LIBS
24
25config BR2_PACKAGE_PHP_EXT_READLINE
26	bool "Readline"
27	depends on !BR2_STATIC_LIBS
28	select BR2_PACKAGE_NCURSES
29	select BR2_PACKAGE_READLINE
30	help
31	  Readline support
32
33config BR2_PACKAGE_PHP_EXT_SESSION
34	bool "Session"
35	default y
36	help
37	  Session support
38
39comment "Compression extensions"
40
41config BR2_PACKAGE_PHP_EXT_BZIP2
42	bool "bzip2"
43	select BR2_PACKAGE_BZIP2
44	help
45	  bzip2 read/write support
46
47config BR2_PACKAGE_PHP_EXT_PHAR
48	bool "phar"
49	help
50	  PHP Archive support
51
52comment "zip needs a toolchain w/ dynamic library"
53	depends on BR2_STATIC_LIBS
54
55config BR2_PACKAGE_PHP_EXT_ZIP
56	bool "zip"
57	depends on !BR2_STATIC_LIBS # libzip
58	select BR2_PACKAGE_ZLIB
59	select BR2_PACKAGE_LIBZIP
60	help
61	  Zip read/write support
62
63config BR2_PACKAGE_PHP_EXT_ZLIB
64	bool "zlib"
65	default y
66	select BR2_PACKAGE_ZLIB
67	help
68	  zlib support
69
70comment "Cryptography extensions"
71
72comment "libargon2 needs a toolchain w/ dynamic library"
73	depends on BR2_USE_MMU
74	depends on BR2_STATIC_LIBS
75
76config BR2_PACKAGE_PHP_EXT_LIBARGON2
77	bool "libargon2"
78	depends on BR2_USE_MMU # libargon2
79	depends on !BR2_STATIC_LIBS # libargon2
80	select BR2_PACKAGE_LIBARGON2
81	help
82	  libargon2 support
83
84config BR2_PACKAGE_PHP_EXT_LIBSODIUM
85	bool "libsodium"
86	select BR2_PACKAGE_LIBSODIUM
87	help
88	  libsodium support
89
90config BR2_PACKAGE_PHP_EXT_OPENSSL
91	bool "openssl"
92	select BR2_PACKAGE_OPENSSL
93	select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
94	select BR2_PACKAGE_LIBOPENSSL_ENABLE_MD4 if BR2_PACKAGE_LIBOPENSSL
95	select BR2_PACKAGE_LIBOPENSSL_ENABLE_RC4 if BR2_PACKAGE_LIBOPENSSL
96	select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL
97	help
98	  openssl support
99
100comment "Database extensions"
101
102config BR2_PACKAGE_PHP_EXT_DBA
103	bool "DBA"
104	help
105	  Database Abstraction Layer
106
107if BR2_PACKAGE_PHP_EXT_DBA
108
109config BR2_PACKAGE_PHP_EXT_DBA_CDB
110	bool "cdb"
111	help
112	  CDB handler
113
114config BR2_PACKAGE_PHP_EXT_DBA_DB4
115	bool "db4/5"
116	select BR2_PACKAGE_BERKELEYDB
117	help
118	  BerkeleyDB version 4/5 handler
119
120config BR2_PACKAGE_PHP_EXT_DBA_FLAT
121	bool "flat"
122	default y
123	help
124	  Flat file handler
125
126config BR2_PACKAGE_PHP_EXT_DBA_INI
127	bool "ini"
128	default y
129	help
130	  INI file handler
131
132endif
133
134config BR2_PACKAGE_PHP_EXT_MYSQLI
135	bool "Mysqli"
136	help
137	  MySQL Improved extension support
138
139config BR2_PACKAGE_PHP_EXT_PGSQL
140	bool "PostgreSQL"
141	depends on BR2_USE_MMU # postgresql
142	depends on !BR2_STATIC_LIBS
143	depends on BR2_USE_WCHAR # postgresql
144	depends on !BR2_OPTIMIZE_FAST # postgresql
145	select BR2_PACKAGE_POSTGRESQL
146	help
147	  PostgreSQL support
148
149comment "PostgreSQL extension needs a toolchain w/ dynamic library, wchar"
150	depends on BR2_USE_MMU
151	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
152
153comment "PostgreSQL extension can't be built with Optimize for fast"
154	depends on BR2_OPTIMIZE_FAST
155
156config BR2_PACKAGE_PHP_EXT_SQLITE
157	bool "SQLite3"
158	select BR2_PACKAGE_SQLITE
159	help
160	  SQLite3 support
161
162config BR2_PACKAGE_PHP_EXT_PDO
163	bool "PDO"
164	help
165	  PHP Data Objects support
166
167if BR2_PACKAGE_PHP_EXT_PDO
168
169config BR2_PACKAGE_PHP_EXT_PDO_MYSQL
170	bool "MySQL"
171	help
172	  PDO driver for MySQL
173
174config BR2_PACKAGE_PHP_EXT_PDO_POSTGRESQL
175	bool "PostgreSQL"
176	depends on BR2_USE_MMU # postgresql
177	depends on !BR2_STATIC_LIBS
178	depends on BR2_USE_WCHAR # postgresql
179	depends on !BR2_OPTIMIZE_FAST # postgresql
180	select BR2_PACKAGE_POSTGRESQL
181	help
182	  PDO driver for PostgreSQL
183
184comment "PostgreSQL drivers need a toolchain w/ wchar, dynamic library"
185	depends on BR2_USE_MMU
186	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR
187
188comment "PostgreSQL drivers can't be built with Optimize for fast"
189	depends on BR2_OPTIMIZE_FAST
190
191config BR2_PACKAGE_PHP_EXT_PDO_SQLITE
192	bool "SQLite3"
193	select BR2_PACKAGE_SQLITE
194	help
195	  SQLite3 driver for PDO
196
197config BR2_PACKAGE_PHP_EXT_PDO_UNIXODBC
198	bool "unixODBC"
199	depends on !BR2_STATIC_LIBS # unixodbc
200	select BR2_PACKAGE_UNIXODBC
201	help
202	  unixODBC driver for PDO
203
204comment "unixodbc driver needs a toolchain w/ dynamic library"
205	depends on BR2_STATIC_LIBS
206
207endif
208
209comment "Human language and character encoding support"
210
211config BR2_PACKAGE_PHP_EXT_GETTEXT
212	bool "Gettext"
213	depends on BR2_SYSTEM_ENABLE_NLS
214	help
215	  Gettext support
216
217comment "Gettext support needs NLS enabled"
218	depends on !BR2_SYSTEM_ENABLE_NLS
219
220config BR2_PACKAGE_PHP_EXT_ICONV
221	bool "iconv"
222	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
223	help
224	  iconv character set conversion support
225
226config BR2_PACKAGE_PHP_EXT_INTL
227	bool "intl"
228	depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
229	depends on BR2_INSTALL_LIBSTDCPP
230	depends on BR2_USE_WCHAR
231	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
232	depends on !BR2_BINFMT_FLAT # icu
233	depends on BR2_TOOLCHAIN_HAS_THREADS # icu
234	depends on !BR2_STATIC_LIBS
235	select BR2_PACKAGE_ICU
236	help
237	  Internationalization support
238
239comment "intl support needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.9, host gcc >= 4.9"
240	depends on !BR2_BINFMT_FLAT
241	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
242		!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
243		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
244		!BR2_HOST_GCC_AT_LEAST_4_9
245
246config BR2_PACKAGE_PHP_EXT_MBSTRING
247	bool "mbstring"
248	select BR2_PACKAGE_ONIGURUMA
249	help
250	  multibyte string support
251
252comment "Image processing"
253
254config BR2_PACKAGE_PHP_EXT_EXIF
255	bool "EXIF"
256	help
257	  EXIF support
258
259config BR2_PACKAGE_PHP_EXT_GD
260	bool "GD"
261	select BR2_PACKAGE_FREETYPE
262	select BR2_PACKAGE_JPEG
263	select BR2_PACKAGE_LIBPNG
264	select BR2_PACKAGE_ZLIB
265	help
266	  GD support
267
268comment "Mathematical extensions"
269
270config BR2_PACKAGE_PHP_EXT_BCMATH
271	bool "BC math"
272	help
273	  BCMath arbitrary precision mathematics support
274
275config BR2_PACKAGE_PHP_EXT_GMP
276	bool "GMP"
277	select BR2_PACKAGE_GMP
278	help
279	  GNU Multiple Precision support
280
281comment "Other basic extensions"
282
283config BR2_PACKAGE_PHP_EXT_TOKENIZER
284	bool "Tokenizer"
285	help
286	  Tokenizer functions support
287
288comment "Other services"
289
290config BR2_PACKAGE_PHP_EXT_CURL
291	bool "cURL"
292	select BR2_PACKAGE_LIBCURL
293	help
294	  cURL for URL streams
295
296config BR2_PACKAGE_PHP_EXT_FTP
297	bool "FTP"
298	help
299	  FTP support
300
301config BR2_PACKAGE_PHP_EXT_SNMP
302	bool "SNMP"
303	depends on BR2_USE_MMU # netsnmp fork()
304	select BR2_PACKAGE_NETSNMP
305	select BR2_PACKAGE_NETSNMP_ENABLE_MIBS
306	help
307	  SNMP support
308
309config BR2_PACKAGE_PHP_EXT_SOCKETS
310	bool "sockets"
311	help
312	  Sockets support
313
314comment "Process Control"
315
316config BR2_PACKAGE_PHP_EXT_PCNTL
317	bool "PCNTL"
318	depends on BR2_USE_MMU # fork()
319	help
320	  Process control support
321
322config BR2_PACKAGE_PHP_EXT_POSIX
323	bool "Posix"
324	default y
325	help
326	  POSIX.1 (IEEE 1003.1) function support
327
328config BR2_PACKAGE_PHP_EXT_SHMOP
329	bool "shmop"
330	help
331	  Shared memory support
332
333config BR2_PACKAGE_PHP_EXT_SYSVMSG
334	bool "sysvmsg"
335	help
336	  System V message queue support
337
338config BR2_PACKAGE_PHP_EXT_SYSVSEM
339	bool "sysvsem"
340	help
341	  System V semaphore support
342
343config BR2_PACKAGE_PHP_EXT_SYSVSHM
344	bool "sysvshm"
345	help
346	  System V shared memory support
347
348comment "Variable and Type related"
349
350config BR2_PACKAGE_PHP_EXT_CTYPE
351	bool "Ctype"
352	help
353	  Character type checking support
354
355config BR2_PACKAGE_PHP_EXT_FILTER
356	bool "Filter"
357	help
358	  Input filter support
359
360comment "Web services"
361
362config BR2_PACKAGE_PHP_EXT_SOAP
363	bool "SOAP"
364	select BR2_PACKAGE_PHP_EXT_LIBXML2
365	help
366	  SOAP support
367
368comment "XML manipulation"
369
370config BR2_PACKAGE_PHP_EXT_DOM
371	bool "DOM"
372	select BR2_PACKAGE_PHP_EXT_LIBXML2
373	help
374	  Document Object Model support
375
376config BR2_PACKAGE_PHP_EXT_LIBXML2
377	bool "libxml"
378	select BR2_PACKAGE_LIBXML2
379	help
380	  libxml2 support
381
382config BR2_PACKAGE_PHP_EXT_SIMPLEXML
383	bool "SimpleXML"
384	select BR2_PACKAGE_PHP_EXT_LIBXML2
385	help
386	  SimpleXML support
387
388config BR2_PACKAGE_PHP_EXT_XML
389	bool "XML Parser"
390	select BR2_PACKAGE_PHP_EXT_LIBXML2
391	help
392	  XML Parser support
393
394config BR2_PACKAGE_PHP_EXT_XMLREADER
395	bool "XMLReader"
396	select BR2_PACKAGE_PHP_EXT_LIBXML2
397	help
398	  XMLReader support
399
400config BR2_PACKAGE_PHP_EXT_XMLWRITER
401	bool "XMLWriter"
402	select BR2_PACKAGE_PHP_EXT_LIBXML2
403	help
404	  XMLWriter support
405
406config BR2_PACKAGE_PHP_EXT_XSL
407	bool "XSL"
408	select BR2_PACKAGE_PHP_EXT_DOM
409	select BR2_PACKAGE_PHP_EXT_LIBXML2
410	select BR2_PACKAGE_LIBXSLT
411	help
412	  XSL transformation support
413
414config BR2_PACKAGE_PHP_EXT_FFI
415	bool "FFI"
416	depends on !BR2_STATIC_LIBS
417	depends on BR2_TOOLCHAIN_HAS_THREADS
418	select BR2_PACKAGE_LIBFFI
419	help
420	  Foreign Function Interface support
421
422comment "PHP FFI extension needs a toolchain w/ threads, dynamic library"
423	depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
424
425endmenu
426