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