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