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