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