php7: update to 7.0.11
[feed/packages.git] / lang / php7 / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=php
9 PKG_VERSION:=7.0.11
10 PKG_RELEASE:=1
11
12 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
13
14 PKG_LICENSE:=PHPv3.01
15 PKG_LICENSE_FILES:=LICENSE
16
17 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
18 PKG_SOURCE_URL:=http://www.php.net/distributions/
19 PKG_MD5SUM:=9a6013a5e9f258bbfb62ae5ac66b72da
20
21 PKG_FIXUP:=libtool autoreconf
22 PKG_BUILD_PARALLEL:=1
23 PKG_USE_MIPS16:=0
24
25 PHP7_MODULES = \
26 calendar ctype curl \
27 fileinfo \
28 dom \
29 exif \
30 ftp \
31 gettext gd gmp \
32 hash \
33 iconv intl \
34 json \
35 ldap \
36 mbstring mcrypt mysqli \
37 opcache openssl \
38 pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql phar \
39 session shmop simplexml soap sockets sqlite3 sysvmsg sysvsem sysvshm \
40 tokenizer \
41 xml xmlreader xmlwriter zip \
42
43 PKG_CONFIG_DEPENDS:= \
44 $(patsubst %,CONFIG_PACKAGE_php7-mod-%,$(PHP7_MODULES)) \
45 CONFIG_PHP7_FILTER CONFIG_PHP7_LIBXML CONFIG_PHP7_SYSTEMTZDATA
46
47 include $(INCLUDE_DIR)/package.mk
48 include $(INCLUDE_DIR)/nls.mk
49
50 define Package/php7/Default
51 SUBMENU:=PHP
52 SECTION:=lang
53 CATEGORY:=Languages
54 TITLE:=PHP7 Hypertext preprocessor
55 URL:=http://www.php.net/
56 DEPENDS:=php7
57 endef
58
59 define Package/php7/Default/description
60 PHP is a widely-used general-purpose scripting language that is especially
61 suited for Web development and can be embedded into HTML.
62 endef
63
64 define Package/php7/config
65 config PHP7_FILTER
66 bool "PHP7 Filter support"
67 depends on PACKAGE_php7-cli || PACKAGE_php7-cgi
68
69 config PHP7_LIBXML
70 bool "PHP7 LIBXML support"
71 depends on PACKAGE_php7-cli || PACKAGE_php7-cgi
72
73 config PHP7_SYSTEMTZDATA
74 bool "Use system timezone data instead of php's built-in database"
75 depends on PACKAGE_php7-cli || PACKAGE_php7-cgi
76 select PACKAGE_zoneinfo-core
77 default y
78 help
79 Enabling this feature automatically selects the zoneinfo-core package
80 which contains data for UTC timezone. To use other timezones you have
81 to install the corresponding zoneinfo-... package(s).
82 endef
83
84 define Package/php7
85 $(call Package/php7/Default)
86
87 DEPENDS:=+libpcre +zlib \
88 +PHP7_LIBXML:libxml2
89 endef
90
91 define Package/php7/description
92 $(call Package/php7/Default/description)
93 This package contains only the PHP config file. You must actually choose
94 your PHP flavour (cli, cgi or fastcgi).
95
96 Please note, that installing php5 and php7 in parallel on the same target
97 is not supported in OpenWrt/LEDE.
98 endef
99
100 define Package/php7-cli
101 $(call Package/php7/Default)
102 DEPENDS+= +PACKAGE_php7-mod-intl:libstdcpp
103 TITLE+= (CLI)
104 endef
105
106 define Package/php7-cli/description
107 $(call Package/php7/Default/description)
108 This package contains the CLI version of the PHP7 interpreter.
109 endef
110
111 define Package/php7-cgi
112 $(call Package/php7/Default)
113 DEPENDS+= +PACKAGE_php7-mod-intl:libstdcpp
114 TITLE+= (CGI & FastCGI)
115 endef
116
117 define Package/php7-cgi/description
118 $(call Package/php7/Default/description)
119 This package contains the CGI version of the PHP7 interpreter.
120 endef
121
122 define Package/php7-fastcgi
123 $(call Package/php7/Default)
124 DEPENDS+= +php7-cgi
125 TITLE:=FastCGI startup script
126 endef
127
128 define Package/php7-fastcgi/description
129 As FastCGI support is now a core feature the php7-fastcgi package now depends
130 on the php7-cgi package, containing just the startup script.
131 endef
132
133 define Package/php7-fpm
134 $(call Package/php7/Default)
135 DEPENDS+= +php7-cgi
136 TITLE+= (FPM)
137 endef
138
139 define Package/php7-fpm/description
140 $(call Package/php7/Default/description)
141 This package contains the FastCGI Process Manager of the PHP7 interpreter.
142 endef
143
144 CONFIGURE_ARGS+= \
145 --enable-cli \
146 --enable-cgi \
147 --enable-fpm \
148 --enable-shared \
149 --disable-static \
150 --disable-rpath \
151 --disable-debug \
152 --disable-phpdbg \
153 --without-pear \
154 \
155 --with-config-file-path=/etc \
156 --with-config-file-scan-dir=/etc/php7 \
157 --disable-short-tags \
158 \
159 --with-zlib="$(STAGING_DIR)/usr" \
160 --with-zlib-dir="$(STAGING_DIR)/usr"
161
162 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-calendar),)
163 CONFIGURE_ARGS+= --enable-calendar=shared
164 else
165 CONFIGURE_ARGS+= --disable-calendar
166 endif
167
168 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-ctype),)
169 CONFIGURE_ARGS+= --enable-ctype=shared
170 else
171 CONFIGURE_ARGS+= --disable-ctype
172 endif
173
174 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-curl),)
175 CONFIGURE_ARGS+= --with-curl=shared,"$(STAGING_DIR)/usr"
176 else
177 CONFIGURE_ARGS+= --without-curl
178 endif
179
180 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-fileinfo),)
181 CONFIGURE_ARGS+= --enable-fileinfo=shared
182 else
183 CONFIGURE_ARGS+= --disable-fileinfo
184 endif
185
186 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-gettext),)
187 CONFIGURE_ARGS+= --with-gettext=shared,"$(STAGING_DIR)/usr/lib/libintl-full"
188 else
189 CONFIGURE_ARGS+= --without-gettext
190 endif
191
192 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-dom),)
193 CONFIGURE_ARGS+= --enable-dom=shared
194 else
195 CONFIGURE_ARGS+= --disable-dom
196 endif
197
198 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-exif),)
199 CONFIGURE_ARGS+= --enable-exif=shared
200 else
201 CONFIGURE_ARGS+= --disable-exif
202 endif
203
204 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-ftp),)
205 CONFIGURE_ARGS+= --enable-ftp=shared
206 else
207 CONFIGURE_ARGS+= --disable-ftp
208 endif
209
210 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-gd),)
211 CONFIGURE_ARGS+= \
212 --with-gd=shared \
213 --without-freetype-dir \
214 --with-jpeg-dir="$(STAGING_DIR)/usr" \
215 --with-png-dir="$(STAGING_DIR)/usr" \
216 --without-xpm-dir \
217 --without-t1lib \
218 --enable-gd-native-ttf \
219 --disable-gd-jis-conv
220 else
221 CONFIGURE_ARGS+= --without-gd
222 endif
223
224 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-gmp),)
225 CONFIGURE_ARGS+= --with-gmp=shared,"$(STAGING_DIR)/usr"
226 else
227 CONFIGURE_ARGS+= --without-gmp
228 endif
229
230 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-hash),)
231 CONFIGURE_ARGS+= --enable-hash=shared
232 else
233 CONFIGURE_ARGS+= --disable-hash
234 endif
235
236 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-iconv),)
237 CONFIGURE_ARGS+= --with-iconv=shared,"$(ICONV_PREFIX)"
238 else
239 CONFIGURE_ARGS+= --without-iconv
240 endif
241
242 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-intl),)
243 CONFIGURE_ARGS+= --enable-intl=shared
244 else
245 CONFIGURE_ARGS+= --disable-intl
246 endif
247
248 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-json),)
249 CONFIGURE_ARGS+= --enable-json=shared
250 else
251 CONFIGURE_ARGS+= --disable-json
252 endif
253
254 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-ldap),)
255 CONFIGURE_ARGS+= \
256 --with-ldap=shared,"$(STAGING_DIR)/usr" \
257 --with-ldap-sasl="$(STAGING_DIR)/usr"
258 else
259 CONFIGURE_ARGS+= --without-ldap
260 endif
261
262 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-mbstring),)
263 CONFIGURE_ARGS+= --enable-mbstring=shared --enable-mbregex
264 else
265 CONFIGURE_ARGS+= --disable-mbstring
266 endif
267
268 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-mcrypt),)
269 CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr"
270 else
271 CONFIGURE_ARGS+= --without-mcrypt
272 endif
273
274 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-mysqli),)
275 CONFIGURE_ARGS+= --with-mysqli=shared,"$(STAGING_DIR)/usr/bin/mysql_config"
276 else
277 CONFIGURE_ARGS+= --without-mysqli
278 endif
279
280 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-opcache),)
281 CONFIGURE_ARGS+= --enable-opcache=shared
282 else
283 CONFIGURE_ARGS+= --disable-opcache
284 endif
285
286 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-openssl),)
287 CONFIGURE_ARGS+= \
288 --with-openssl=shared,"$(STAGING_DIR)/usr" \
289 --with-kerberos=no \
290 --with-openssl-dir="$(STAGING_DIR)/usr"
291 else
292 CONFIGURE_ARGS+= --without-openssl
293 endif
294
295 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pcntl),)
296 CONFIGURE_ARGS+= --enable-pcntl=shared
297 else
298 CONFIGURE_ARGS+= --disable-pcntl
299 endif
300
301 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo),)
302 CONFIGURE_ARGS+= --enable-pdo=shared
303 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo-mysql),)
304 CONFIGURE_ARGS+= --with-pdo-mysql=shared,"$(STAGING_DIR)/usr"
305 else
306 CONFIGURE_ARGS+= --without-pdo-mysql
307 endif
308 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo-pgsql),)
309 CONFIGURE_ARGS+= --with-pdo-pgsql=shared,"$(STAGING_DIR)/usr"
310 else
311 CONFIGURE_ARGS+= --without-pdo-pgsql
312 endif
313 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pdo-sqlite),)
314 CONFIGURE_ARGS+= --with-pdo-sqlite=shared,"$(STAGING_DIR)/usr"
315 else
316 CONFIGURE_ARGS+= --without-pdo-sqlite
317 endif
318 else
319 CONFIGURE_ARGS+= --disable-pdo
320 endif
321
322 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-pgsql),)
323 CONFIGURE_ARGS+= --with-pgsql=shared,"$(STAGING_DIR)/usr"
324 else
325 CONFIGURE_ARGS+= --without-pgsql
326 endif
327
328 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-phar),)
329 CONFIGURE_ARGS+= --enable-phar=shared
330 else
331 CONFIGURE_ARGS+= --disable-phar
332 endif
333
334 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-session),)
335 CONFIGURE_ARGS+= --enable-session=shared
336 else
337 CONFIGURE_ARGS+= --disable-session
338 endif
339
340 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-shmop),)
341 CONFIGURE_ARGS+= --enable-shmop=shared
342 else
343 CONFIGURE_ARGS+= --disable-shmop
344 endif
345
346 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-simplexml),)
347 CONFIGURE_ARGS+= --enable-simplexml=shared
348 else
349 CONFIGURE_ARGS+= --disable-simplexml
350 endif
351
352 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-soap),)
353 CONFIGURE_ARGS+= --enable-soap=shared
354 else
355 CONFIGURE_ARGS+= --disable-soap
356 endif
357
358 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sockets),)
359 CONFIGURE_ARGS+= --enable-sockets=shared
360 else
361 CONFIGURE_ARGS+= --disable-sockets
362 endif
363
364 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sqlite3),)
365 CONFIGURE_ARGS+= --with-sqlite3=shared,"$(STAGING_DIR)/usr"
366 else
367 CONFIGURE_ARGS+= --without-sqlite3
368 endif
369
370 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sysvmsg),)
371 CONFIGURE_ARGS+= --enable-sysvmsg=shared
372 else
373 CONFIGURE_ARGS+= --disable-sysvmsg
374 endif
375
376 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sysvsem),)
377 CONFIGURE_ARGS+= --enable-sysvsem=shared
378 else
379 CONFIGURE_ARGS+= --disable-sysvsem
380 endif
381
382 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-sysvshm),)
383 CONFIGURE_ARGS+= --enable-sysvshm=shared
384 else
385 CONFIGURE_ARGS+= --disable-sysvshm
386 endif
387
388 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-tokenizer),)
389 CONFIGURE_ARGS+= --enable-tokenizer=shared
390 else
391 CONFIGURE_ARGS+= --disable-tokenizer
392 endif
393
394 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-xml),)
395 CONFIGURE_ARGS+= --enable-xml=shared,"$(STAGING_DIR)/usr"
396 ifneq ($(CONFIG_PHP7_LIBXML),)
397 CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
398 else
399 CONFIGURE_ARGS+= --with-libexpat-dir="$(STAGING_DIR)/usr"
400 endif
401 else
402 CONFIGURE_ARGS+= --disable-xml
403 endif
404
405 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-xmlreader),)
406 CONFIGURE_ARGS+= --enable-xmlreader=shared,"$(STAGING_DIR)/usr"
407 else
408 CONFIGURE_ARGS+= --disable-xmlreader
409 endif
410
411 ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-xmlwriter),)
412 CONFIGURE_ARGS+= --enable-xmlwriter=shared,"$(STAGING_DIR)/usr"
413 else
414 CONFIGURE_ARGS+= --disable-xmlwriter
415 endif
416
417 ifneq ($(CONFIG_PACKAGE_php7-mod-zip),)
418 CONFIGURE_ARGS+= --enable-zip=shared
419 else
420 CONFIGURE_ARGS+= --disable-zip
421 endif
422
423 ifneq ($(SDK)$(CONFIG_PHP7_FILTER),)
424 CONFIGURE_ARGS+= --enable-filter
425 else
426 CONFIGURE_ARGS+= --disable-filter
427 endif
428
429 ifneq ($(SDK)$(CONFIG_PHP7_LIBXML),)
430 CONFIGURE_ARGS+= --enable-libxml
431 CONFIGURE_ARGS+= --with-libxml-dir="$(STAGING_DIR)/usr/include/libxml2"
432 else
433 CONFIGURE_ARGS+= --disable-libxml
434 endif
435
436 #ifneq ($(CONFIG_PHP7_SYSTEMTZDATA),)
437 # CONFIGURE_ARGS+= --with-system-tzdata
438 #else
439 # CONFIGURE_ARGS+= --without-system-tzdata
440 #endif
441
442 CONFIGURE_VARS+= \
443 ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
444 php_cv_cc_rpath="no" \
445 iconv_impl_name="gnu_libiconv" \
446 ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
447
448 define Package/php7/conffiles
449 /etc/php.ini
450 endef
451
452 define Package/php7/install
453 $(INSTALL_DIR) $(1)/etc
454 $(INSTALL_DATA) ./files/php.ini $(1)/etc/
455 endef
456
457 define Package/php7-cli/install
458 $(INSTALL_DIR) $(1)/usr/bin
459 $(CP) $(PKG_BUILD_DIR)/sapi/cli/php $(1)/usr/bin/php-cli
460 endef
461
462 define Package/php7-cgi/install
463 $(INSTALL_DIR) $(1)/usr/bin
464 $(CP) $(PKG_BUILD_DIR)/sapi/cgi/php-cgi $(1)/usr/bin/php-cgi
465 ln -sf php-cgi $(1)/usr/bin/php-fcgi
466 endef
467
468 define Package/php7-fastcgi/install
469 $(INSTALL_DIR) $(1)/etc/config
470 $(INSTALL_DATA) ./files/php7-fastcgi.config $(1)/etc/config/php7-fastcgi
471
472 $(INSTALL_DIR) $(1)/etc/init.d
473 $(INSTALL_BIN) ./files/php7-fastcgi.init $(1)/etc/init.d/php7-fastcgi
474 endef
475
476 define Package/php7-fpm/install
477 $(INSTALL_DIR) $(1)/usr/bin
478 $(INSTALL_BIN) $(PKG_BUILD_DIR)/sapi/fpm/php-fpm $(1)/usr/bin/php-fpm
479
480 $(INSTALL_DIR) $(1)/etc
481 $(INSTALL_DATA) ./files/php7-fpm.conf $(1)/etc/php7-fpm.conf
482
483 $(INSTALL_DIR) $(1)/etc/config
484 $(INSTALL_DATA) ./files/php7-fpm.config $(1)/etc/config/php7-fpm
485
486 $(INSTALL_DIR) $(1)/etc/php7-fpm.d
487 $(INSTALL_DATA) ./files/php7-fpm-www.conf $(1)/etc/php7-fpm.d/www.conf
488
489 $(INSTALL_DIR) $(1)/etc/init.d
490 $(INSTALL_BIN) ./files/php7-fpm.init $(1)/etc/init.d/php7-fpm
491 endef
492
493 define Build/Prepare
494 $(call Build/Prepare/Default)
495 ( cd $(PKG_BUILD_DIR); touch configure.in; ./buildconf --force )
496 endef
497
498 define Build/InstallDev
499 rm -rf $(PKG_BUILD_DIR)/staging
500 make -C $(PKG_BUILD_DIR) install INSTALL_ROOT=$(PKG_BUILD_DIR)/staging
501 rm -rf $(PKG_BUILD_DIR)/staging/usr/{share,man,sbin}
502 rm -f $(PKG_BUILD_DIR)/staging/usr/bin/{php,php-cgi,php-cli}
503 mv $(PKG_BUILD_DIR)/staging/usr/bin/phpize $(PKG_BUILD_DIR)/staging/usr/bin/phpize7
504 mv $(PKG_BUILD_DIR)/staging/usr/bin/php-config $(PKG_BUILD_DIR)/staging/usr/bin/php7-config
505 mv $(PKG_BUILD_DIR)/staging/usr/include/php $(PKG_BUILD_DIR)/staging/usr/include/php7
506 mv $(PKG_BUILD_DIR)/staging/usr/lib/php $(PKG_BUILD_DIR)/staging/usr/lib/php7
507
508 $(CP) $(PKG_BUILD_DIR)/staging/usr $(STAGING_DIR)/
509
510 sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR)/usr'#" $(STAGING_DIR)/usr/bin/phpize7
511 sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR)/usr'#" $(STAGING_DIR)/usr/bin/phpize7
512 sed -i -e "s#/include\`/php\"#/include\`/php7\"#" $(STAGING_DIR)/usr/bin/phpize7
513 sed -i -e "s#/lib/php\`/build\"#/lib/php7\`/build\"#" $(STAGING_DIR)/usr/bin/phpize7
514
515 sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR)/usr\"#" $(STAGING_DIR)/usr/bin/php7-config
516 sed -i -e "s#/include/php\"#/include/php7\"#" $(STAGING_DIR)/usr/bin/php7-config
517 endef
518
519 define BuildModule
520
521 define Package/php7-mod-$(1)
522 $(call Package/php7/Default)
523
524 ifneq ($(3),)
525 DEPENDS+=$(3)
526 endif
527
528 TITLE:=$(2) shared module
529 endef
530
531 define Package/php7-mod-$(1)/install
532 $(INSTALL_DIR) $$(1)/usr/lib/php
533 $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
534 $(INSTALL_DIR) $$(1)/etc/php7
535 ifeq ($(5),zend)
536 echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
537 else
538 echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
539 endif
540 endef
541
542 $$(eval $$(call BuildPackage,php7-mod-$(1)))
543
544 endef
545
546 $(eval $(call BuildPackage,php7))
547 $(eval $(call BuildPackage,php7-cgi))
548 $(eval $(call BuildPackage,php7-cli))
549 $(eval $(call BuildPackage,php7-fastcgi))
550 $(eval $(call BuildPackage,php7-fpm))
551
552 #$(eval $(call BuildModule,NAME,TITLE[,PKG DEPENDS]))
553 $(eval $(call BuildModule,calendar,Calendar))
554 $(eval $(call BuildModule,ctype,Ctype))
555 $(eval $(call BuildModule,curl,cURL,+PACKAGE_php7-mod-curl:libcurl))
556 $(eval $(call BuildModule,dom,DOM,+@PHP7_LIBXML +PACKAGE_php7-mod-dom:libxml2))
557 $(eval $(call BuildModule,exif,EXIF))
558 $(eval $(call BuildModule,fileinfo,Fileinfo))
559 $(eval $(call BuildModule,ftp,FTP,+PACKAGE_php7-mod-ftp:libopenssl))
560 $(eval $(call BuildModule,gd,GD graphics,+PACKAGE_php7-mod-gd:libjpeg +PACKAGE_php7-mod-gd:libpng))
561 $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php7-mod-gettext:libintl-full))
562 $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php7-mod-gmp:libgmp))
563 $(eval $(call BuildModule,hash,Hash))
564 $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
565 $(eval $(call BuildModule,intl,Internationalization Functions,+PACKAGE_php7-mod-intl:icu))
566 $(eval $(call BuildModule,json,JSON))
567 $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php7-mod-ldap:libopenldap +PACKAGE_php7-mod-ldap:libsasl2))
568 $(eval $(call BuildModule,mbstring,MBString))
569 $(eval $(call BuildModule,mcrypt,Mcrypt,+PACKAGE_php7-mod-mcrypt:libmcrypt +PACKAGE_php7-mod-mcrypt:libltdl))
570 $(eval $(call BuildModule,mysqli,MySQL Improved Extension,+PACKAGE_php7-mod-mysqli:libmysqlclient))
571 $(eval $(call BuildModule,opcache,OPcache,,,zend))
572 $(eval $(call BuildModule,openssl,OpenSSL,+PACKAGE_php7-mod-openssl:libopenssl))
573 $(eval $(call BuildModule,pcntl,PCNTL))
574 $(eval $(call BuildModule,pdo,PHP Data Objects))
575 $(eval $(call BuildModule,pdo-mysql,PDO driver for MySQL,+php7-mod-pdo +PACKAGE_php7-mod-pdo-mysql:libmysqlclient))
576 $(eval $(call BuildModule,pdo-pgsql,PDO driver for PostgreSQL,+php7-mod-pdo +PACKAGE_php7-mod-pdo-pgsql:libpq))
577 $(eval $(call BuildModule,pdo-sqlite,PDO driver for SQLite 3.x,+php7-mod-pdo +PACKAGE_php7-mod-pdo-sqlite:libsqlite3 +PACKAGE_php7-mod-pdo-sqlite:librt))
578 $(eval $(call BuildModule,pgsql,PostgreSQL,+PACKAGE_php7-mod-pgsql:libpq))
579 $(eval $(call BuildModule,phar,Phar Archives,+php7-mod-hash))
580 $(eval $(call BuildModule,session,Session))
581 $(eval $(call BuildModule,shmop,Shared Memory))
582 $(eval $(call BuildModule,simplexml,SimpleXML,+@PHP7_LIBXML +PACKAGE_php7-mod-simplexml:libxml2))
583 $(eval $(call BuildModule,soap,SOAP,+@PHP7_LIBXML +PACKAGE_php7-mod-soap:libxml2))
584 $(eval $(call BuildModule,sockets,Sockets))
585 $(eval $(call BuildModule,sqlite3,SQLite3,+PACKAGE_php7-mod-sqlite3:libsqlite3))
586 $(eval $(call BuildModule,sysvmsg,System V messages))
587 $(eval $(call BuildModule,sysvsem,System V shared memory))
588 $(eval $(call BuildModule,sysvshm,System V semaphore))
589 $(eval $(call BuildModule,tokenizer,Tokenizer))
590 $(eval $(call BuildModule,xml,XML,+PHP7_LIBXML:libxml2 +!PHP7_LIBXML:libexpat))
591 $(eval $(call BuildModule,xmlreader,XMLReader,+@PHP7_LIBXML +PACKAGE_php7-mod-xmlreader:libxml2))
592 $(eval $(call BuildModule,xmlwriter,XMLWriter,+@PHP7_LIBXML +PACKAGE_php7-mod-xmlwriter:libxml2))
593 $(eval $(call BuildModule,zip,ZIP,+PACKAGE_php7-mod-zip:zlib))