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