2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.php.net
/distributions
/
16 PKG_MD5SUM
:=2c069d8f690933e3bf6a8741ed818150
18 PKG_FIXUP
:=libtool no-autoreconf
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/nls.mk
24 define Package
/php5
/Default
28 TITLE
:=PHP5 Hypertext preprocessor
29 URL
:=http
://www.php.net
/
32 define Package
/php5
/Default
/description
33 PHP is a widely-used general-purpose scripting language that is especially
34 suited for Web development and can be embedded into HTML.
37 define Package
/php5
/config
39 bool
"PHP5 APC support"
40 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
43 bool
"PHP5 Filter support"
44 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
47 bool
"PHP5 LIBXML support"
48 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
51 bool
"PHP5 Semaphore, Shared Memory and IPC support"
52 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
56 $(call Package
/php5
/Default
)
57 DEPENDS
:=+libpcre
+zlib
58 ifneq ($(CONFIG_PHP5_LIBXML
),)
63 define Package
/php5
/description
64 $(call Package
/php5
/Default
/description
)
65 This package contains only the PHP config file. You must actually choose
66 your PHP flavour
(cli
, cgi or fastcgi
).
69 define Package
/php5-cli
70 $(call Package
/php5
/Default
)
75 define Package
/php5-cli
/description
76 $(call Package
/php5
/Default
/description
)
77 This package contains the CLI version of the PHP5 interpreter.
80 define Package
/php5-cgi
81 $(call Package
/php5
/Default
)
83 TITLE
+= (CGI
& FastCGI
)
86 define Package
/php5-cgi
/description
87 $(call Package
/php5
/Default
/description
)
88 This package contains the CGI version of the PHP5 interpreter.
91 define Package
/php5-fastcgi
92 $(call Package
/php5
/Default
)
93 DEPENDS
:=php5
+php5-cgi
94 TITLE
:=FastCGI startup script
97 define Package
/php5-cgi
/description
98 As FastCGI support is now a core feature the php5-fastcgi package now depends
99 on the php5-cgi package
, containing just the startup script.
102 define Package
/php5-mod-ctype
103 $(call Package
/php5
/Default
)
105 TITLE
:=ctype shared module
107 define Package
/php5-mod-ctype
/config
108 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
111 define Package
/php5-mod-curl
112 $(call Package
/php5
/Default
)
113 DEPENDS
:=php5
+libcurl
114 TITLE
:=cURL shared module
116 define Package
/php5-mod-curl
/config
117 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
120 define Package
/php5-mod-fileinfo
121 $(call Package
/php5
/Default
)
122 DEPENDS
:=php5
+libmagic
123 TITLE
:=Fileinfo shared module
125 define Package
/php5-mod-fileinfo
/config
126 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
129 define Package
/php5-mod-dom
130 $(call Package
/php5
/Default
)
131 DEPENDS
:=php5
+libxml2
132 TITLE
:=DOM shared module
134 define Package
/php5-mod-dom
/config
135 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
136 depends on PHP5_LIBXML
139 define Package
/php5-mod-exif
140 $(call Package
/php5
/Default
)
142 TITLE
:=EXIF shared module
144 define Package
/php5-mod-exif
/config
145 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
148 define Package
/php5-mod-ftp
149 $(call Package
/php5
/Default
)
151 TITLE
:=FTP shared module
153 define Package
/php5-mod-ftp
/config
154 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
157 define Package
/php5-mod-gd
158 $(call Package
/php5
/Default
)
160 TITLE
:=GD graphics shared module
162 define Package
/php5-mod-gd
/config
163 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
166 define Package
/php5-mod-gmp
167 $(call Package
/php5
/Default
)
168 DEPENDS
:=php5
+libgmp
169 TITLE
:=GMP shared module
171 define Package
/php5-mod-gmp
/config
172 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
175 define Package
/php5-mod-hash
176 $(call Package
/php5
/Default
)
178 TITLE
:=Hash shared module
180 define Package
/php5-mod-hash
/config
181 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
184 define Package
/php5-mod-iconv
185 $(call Package
/php5
/Default
)
186 DEPENDS
:=php5
$(ICONV_DEPENDS
)
187 TITLE
:=iConv shared module
189 define Package
/php5-mod-iconv
/config
190 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
193 define Package
/php5-mod-json
194 $(call Package
/php5
/Default
)
196 TITLE
:=JSON shared module
198 define Package
/php5-mod-json
/config
199 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
202 define Package
/php5-mod-ldap
203 $(call Package
/php5
/Default
)
204 DEPENDS
:=php5
+libopenldap
+libsasl2
205 TITLE
:=LDAP shared module
207 define Package
/php5-mod-ldap
/config
208 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
211 define Package
/php5-mod-mbstring
212 $(call Package
/php5
/Default
)
214 TITLE
:=MBString shared module
216 define Package
/php5-mod-mbstring
/config
217 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
220 define Package
/php5-mod-mcrypt
221 $(call Package
/php5
/Default
)
222 DEPENDS
:=php5
+libmcrypt
+libltdl
223 TITLE
:=mcrypt shared module
225 define Package
/php5-mod-mcrypt
/config
226 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
229 define Package
/php5-mod-mysql
230 $(call Package
/php5
/Default
)
231 DEPENDS
:=php5
+libmysqlclient
232 TITLE
:=MySQL shared module
234 define Package
/php5-mod-mysql
/config
235 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
238 define Package
/php5-mod-openssl
239 $(call Package
/php5
/Default
)
240 DEPENDS
:=php5
+libopenssl
241 TITLE
:=OpenSSL shared module
243 define Package
/php5-mod-openssl
/config
244 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
247 define Package
/php5-mod-pdo
248 $(call Package
/php5
/Default
)
250 TITLE
:=PHP Data Objects shared module
252 define Package
/php5-mod-pdo
/config
253 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
256 define Package
/php5-mod-pdo-mysql
257 $(call Package
/php5
/Default
)
258 DEPENDS
:=php5-mod-pdo
+libmysqlclient
259 TITLE
:=PDO driver for MySQL
262 define Package
/php5-mod-pdo-pgsql
263 $(call Package
/php5
/Default
)
264 DEPENDS
:=php5-mod-pdo
+libpq
265 TITLE
:=PDO driver for PostgreSQL
268 define Package
/php5-mod-pdo-sqlite
269 $(call Package
/php5
/Default
)
270 DEPENDS
:=php5-mod-pdo
+libsqlite3
+libpthread
271 TITLE
:=PDO driver for SQLite
(3.x
)
274 define Package
/php5-mod-pgsql
275 $(call Package
/php5
/Default
)
277 TITLE
:=PostgreSQL shared module
279 define Package
/php5-mod-pgsql
/config
280 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
283 define Package
/php5-mod-session
284 $(call Package
/php5
/Default
)
286 TITLE
:=Session shared module
288 define Package
/php5-mod-session
/config
289 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
292 define Package
/php5-mod-soap
293 $(call Package
/php5
/Default
)
294 DEPENDS
:=php5
+libxml2
295 TITLE
:=SOAP shared module
297 define Package
/php5-mod-soap
/config
298 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
299 depends on PHP5_LIBXML
302 define Package
/php5-mod-sockets
303 $(call Package
/php5
/Default
)
305 TITLE
:=Sockets shared module
307 define Package
/php5-mod-sockets
/config
308 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
311 define Package
/php5-mod-sqlite
312 $(call Package
/php5
/Default
)
313 DEPENDS
:=php5
+libsqlite2
314 TITLE
:=SQLite shared module
(2.x
)
316 define Package
/php5-mod-sqlite
/config
317 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
320 define Package
/php5-mod-sqlite3
321 $(call Package
/php5
/Default
)
322 DEPENDS
:=php5
+libsqlite3
+libpthread
323 TITLE
:=SQLite3 shared module
(3.x
)
325 define Package
/php5-mod-sqlite3
/config
326 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
329 define Package
/php5-mod-tokenizer
330 $(call Package
/php5
/Default
)
332 TITLE
:=Tokenizer shared module
334 define Package
/php5-mod-tokenizer
/config
335 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
338 define Package
/php5-mod-xml
339 $(call Package
/php5
/Default
)
341 ifneq ($(CONFIG_PHP5_LIBXML
),)
346 TITLE
:=XML shared module
348 define Package
/php5-mod-xml
/config
349 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
352 define Package
/php5-mod-xmlreader
353 $(call Package
/php5
/Default
)
354 DEPENDS
:=php5
+libxml2
$(ICONV_DEPENDS
)
355 TITLE
:=XMLReader shared module
357 define Package
/php5-mod-xmlreader
/config
358 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
359 depends on PHP5_LIBXML
362 define Package
/php5-mod-xmlwriter
363 $(call Package
/php5
/Default
)
364 DEPENDS
:=php5
+libxml2
$(ICONV_DEPENDS
)
365 TITLE
:=XMLWriter shared module
367 define Package
/php5-mod-xmlwriter
/config
368 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
369 depends on PHP5_LIBXML
373 ac_cv_c_bigendian_php
=$(if
$(CONFIG_BIG_ENDIAN
),yes
,no
)
375 PKG_CONFIGURE_OPTS
:= \
382 --with-config-file-path
=/etc \
383 --enable-magic-quotes \
384 --disable-short-tags \
387 --disable-simplexml \
388 --with-zlib
="$(STAGING_DIR)/usr" \
389 --with-zlib-dir
="$(STAGING_DIR)/usr" \
390 --with-pcre-regex
="$(STAGING_DIR)/usr" \
394 PKG_BUILD_DEPENDS
+=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libpthread libsqlite3 libpcre libxml2
395 # force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
396 CONFIG_PACKAGE_php5-cli
:=m
397 CONFIG_PACKAGE_php5-cgi
:=m
398 CONFIG_PACKAGE_php5-fastcgi
:=m
399 CONFIG_PACKAGE_php5-mod-curl
:=m
400 CONFIG_PACKAGE_php5-mod-gd
:=m
401 CONFIG_PACKAGE_php5-mod-gmp
:=m
402 CONFIG_PACKAGE_php5-mod-ldap
:=m
403 CONFIG_PACKAGE_php5-mod-mysql
:=m
404 CONFIG_PACKAGE_php5-mod-pgsql
:=m
405 CONFIG_PACKAGE_php5-mod-sqlite
:=m
406 CONFIG_PACKAGE_php5-mod-sqlite3
:=m
407 CONFIG_PACKAGE_php5-mod-xml
:=m
410 ifneq ($(CONFIG_PACKAGE_php5-mod-ctype
),)
411 PKG_CONFIGURE_OPTS
+= --enable-ctype
=shared
413 PKG_CONFIGURE_OPTS
+= --disable-ctype
416 ifneq ($(CONFIG_PACKAGE_php5-mod-curl
),)
417 PKG_CONFIGURE_OPTS
+= --with-curl
=shared
,"$(STAGING_DIR)/usr"
419 PKG_CONFIGURE_OPTS
+= --without-curl
422 ifneq ($(CONFIG_PACKAGE_php5-mod-fileinfo
),)
423 PKG_CONFIGURE_OPTS
+= --enable-fileinfo
=shared
425 PKG_CONFIGURE_OPTS
+= --disable-fileinfo
428 ifneq ($(CONFIG_PACKAGE_php5-mod-dom
),)
429 PKG_CONFIGURE_OPTS
+= --enable-dom
=shared
431 PKG_CONFIGURE_OPTS
+= --disable-dom
434 ifneq ($(CONFIG_PACKAGE_php5-mod-exif
),)
435 PKG_CONFIGURE_OPTS
+= --enable-exif
=shared
437 PKG_CONFIGURE_OPTS
+= --disable-exif
440 ifneq ($(CONFIG_PACKAGE_php5-mod-ftp
),)
441 PKG_CONFIGURE_OPTS
+= --enable-ftp
=shared
443 PKG_CONFIGURE_OPTS
+= --disable-ftp
446 ifneq ($(CONFIG_PACKAGE_php5-mod-gd
),)
447 PKG_CONFIGURE_OPTS
+= --with-gd
=shared
,"$(STAGING_DIR)/usr" \
448 --without-freetype-dir \
449 --with-jpeg-dir
="$(STAGING_DIR)/usr" \
450 --with-png-dir
="$(STAGING_DIR)/usr" \
454 --enable-gd-native-ttf \
455 --disable-gd-jis-conv
457 PKG_CONFIGURE_OPTS
+= --without-gd
460 ifneq ($(CONFIG_PACKAGE_php5-mod-gmp
),)
461 PKG_CONFIGURE_OPTS
+= --with-gmp
=shared
,"$(STAGING_DIR)/usr"
463 PKG_CONFIGURE_OPTS
+= --without-gmp
466 ifneq ($(CONFIG_PACKAGE_php5-mod-hash
),)
467 PKG_CONFIGURE_OPTS
+= --enable-hash
=shared
469 PKG_CONFIGURE_OPTS
+= --disable-hash
472 ifneq ($(CONFIG_PACKAGE_php5-mod-iconv
),)
473 PKG_CONFIGURE_OPTS
+= --with-iconv
=shared
,"$(ICONV_PREFIX)"
475 PKG_CONFIGURE_OPTS
+= --without-iconv
478 ifneq ($(CONFIG_PACKAGE_php5-mod-json
),)
479 PKG_CONFIGURE_OPTS
+= --enable-json
=shared
481 PKG_CONFIGURE_OPTS
+= --disable-json
484 ifneq ($(CONFIG_PACKAGE_php5-mod-ldap
),)
485 PKG_CONFIGURE_OPTS
+= --with-ldap
=shared
,"$(STAGING_DIR)/usr" \
486 --with-ldap-sasl
="$(STAGING_DIR)/usr"
488 PKG_CONFIGURE_OPTS
+= --without-ldap
491 ifneq ($(CONFIG_PACKAGE_php5-mod-mbstring
),)
492 PKG_CONFIGURE_OPTS
+= --enable-mbstring
=shared
--enable-mbregex
494 PKG_CONFIGURE_OPTS
+= --disable-mbstring
497 ifneq ($(CONFIG_PACKAGE_php5-mod-mcrypt
),)
498 PKG_CONFIGURE_OPTS
+= --with-mcrypt
=shared
,"$(STAGING_DIR)/usr"
500 PKG_CONFIGURE_OPTS
+= --without-mcrypt
503 ifneq ($(CONFIG_PACKAGE_php5-mod-mysql
),)
504 PKG_CONFIGURE_OPTS
+= --with-mysql
=shared
,"$(STAGING_DIR)/usr"
506 PKG_CONFIGURE_OPTS
+= --without-mysql
509 ifneq ($(CONFIG_PACKAGE_php5-mod-openssl
),)
510 PKG_CONFIGURE_OPTS
+= --with-openssl
=shared
,"$(STAGING_DIR)/usr"
511 PKG_CONFIGURE_OPTS
+= --with-kerberos
=no
512 PKG_CONFIGURE_OPTS
+= --with-openssl-dir
="$(STAGING_DIR)/usr"
514 PKG_CONFIGURE_OPTS
+= --without-openssl
517 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo
),)
518 PKG_CONFIGURE_OPTS
+= --enable-pdo
=shared
519 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-mysql
),)
520 PKG_CONFIGURE_OPTS
+= --with-pdo-mysql
=shared
,"$(STAGING_DIR)/usr"
522 PKG_CONFIGURE_OPTS
+= --without-pdo-mysql
524 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-pgsql
),)
525 PKG_CONFIGURE_OPTS
+= --with-pdo-pgsql
=shared
,"$(STAGING_DIR)/usr"
527 PKG_CONFIGURE_OPTS
+= --without-pdo-pgsql
529 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite
),)
530 PKG_CONFIGURE_OPTS
+= --with-pdo-sqlite
=shared
,"$(STAGING_DIR)/usr"
531 PKG_CONFIGURE_LIBS
+= -lsqlite3
-lpthread
533 PKG_CONFIGURE_OPTS
+= --without-pdo-sqlite
536 PKG_CONFIGURE_OPTS
+= --disable-pdo
539 ifneq ($(CONFIG_PACKAGE_php5-mod-pgsql
),)
540 PKG_CONFIGURE_OPTS
+= --with-pgsql
=shared
,"$(STAGING_DIR)/usr"
542 PKG_CONFIGURE_OPTS
+= --without-pgsql
545 ifneq ($(CONFIG_PACKAGE_php5-mod-session
),)
546 PKG_CONFIGURE_OPTS
+= --enable-session
=shared
548 PKG_CONFIGURE_OPTS
+= --disable-session
551 ifneq ($(CONFIG_PACKAGE_php5-mod-soap
),)
552 PKG_CONFIGURE_OPTS
+= --enable-soap
=shared
554 PKG_CONFIGURE_OPTS
+= --disable-soap
557 ifneq ($(CONFIG_PACKAGE_php5-mod-sockets
),)
558 PKG_CONFIGURE_OPTS
+= --enable-sockets
=shared
560 PKG_CONFIGURE_OPTS
+= --disable-sockets
563 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite
),)
564 PKG_CONFIGURE_OPTS
+= --with-sqlite
=shared
,"$(STAGING_DIR)/usr"
566 PKG_CONFIGURE_OPTS
+= --without-sqlite
569 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3
),)
570 PKG_CONFIGURE_OPTS
+= --with-sqlite3
=shared
,"$(STAGING_DIR)/usr"
571 PKG_CONFIGURE_LIBS
+= -lsqlite3
-lpthread
573 PKG_CONFIGURE_OPTS
+= --without-sqlite3
576 ifneq ($(CONFIG_PACKAGE_php5-mod-tokenizer
),)
577 PKG_CONFIGURE_OPTS
+= --enable-tokenizer
=shared
579 PKG_CONFIGURE_OPTS
+= --disable-tokenizer
582 ifneq ($(CONFIG_PACKAGE_php5-mod-xml
),)
583 PKG_CONFIGURE_OPTS
+= --enable-xml
=shared
,"$(STAGING_DIR)/usr"
584 ifneq ($(CONFIG_PHP5_LIBXML
),)
585 PKG_CONFIGURE_OPTS
+= --with-libxml-dir
="$(STAGING_DIR)/usr/include/libxml2"
587 PKG_CONFIGURE_OPTS
+= --with-libexpat-dir
="$(STAGING_DIR)/usr"
590 PKG_CONFIGURE_OPTS
+= --disable-xml
593 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlreader
),)
594 PKG_CONFIGURE_OPTS
+= --enable-xmlreader
=shared
,"$(STAGING_DIR)/usr"
596 PKG_CONFIGURE_OPTS
+= --disable-xmlreader
599 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlwriter
),)
600 PKG_CONFIGURE_OPTS
+= --enable-xmlwriter
=shared
,"$(STAGING_DIR)/usr"
602 PKG_CONFIGURE_OPTS
+= --disable-xmlwriter
605 ifneq ($(CONFIG_PHP5_APC
),)
606 PKG_CONFIGURE_OPTS
+= --enable-apc
--disable-apc-mmap
--disable-apc-pthreadmutex
607 PKG_CONFIGURE_LIBS
+= -lrt
609 PKG_CONFIGURE_OPTS
+= --disable-apc
612 ifneq ($(CONFIG_PHP5_FILTER
),)
613 PKG_CONFIGURE_OPTS
+= --enable-filter
615 PKG_CONFIGURE_OPTS
+= --disable-filter
618 ifneq ($(CONFIG_PHP5_LIBXML
),)
619 PKG_CONFIGURE_OPTS
+= --enable-libxml
620 PKG_CONFIGURE_OPTS
+= --with-libxml-dir
="$(STAGING_DIR)/usr/include/libxml2"
622 PKG_CONFIGURE_OPTS
+= --disable-libxml
625 ifneq ($(CONFIG_PHP5_SYSVIPC
),)
626 PKG_CONFIGURE_OPTS
+= --enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
628 PKG_CONFIGURE_OPTS
+= --disable-sysvsem
--disable-sysvshm
--disable-sysvmsg
631 define Build
/Configure
634 ifneq ($(CONFIG_PACKAGE_php5-cli
),)
635 define Build
/Compile
/php5-cli
636 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
637 $(call Build
/Configure
/Default
, \
638 $(PKG_CONFIGURE_OPTS
) \
642 LIBS
="$(PKG_CONFIGURE_LIBS)" \
643 php_cv_cc_rpath
="no" \
644 iconv_impl_name
="gnu_libiconv" \
645 ac_cv_php_xml2_config_path
="$(STAGING_DIR)/host/bin/xml2-config" \
647 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)
648 mv
$(PKG_BUILD_DIR
)/sapi
/cli
/php
$(PKG_BUILD_DIR
)/php-cli
652 ifneq ($(CONFIG_PACKAGE_php5-cgi
),)
653 define Build
/Compile
/php5-cgi
654 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
655 $(call Build
/Configure
/Default
, \
656 $(PKG_CONFIGURE_OPTS
) \
660 LIBS
="$(PKG_CONFIGURE_LIBS)" \
661 php_cv_cc_rpath
="no" \
662 iconv_impl_name
="gnu_libiconv" \
663 ac_cv_php_xml2_config_path
="$(STAGING_DIR)/host/bin/xml2-config" \
665 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)
666 mv
$(PKG_BUILD_DIR
)/sapi
/cgi
/php-cgi
$(PKG_BUILD_DIR
)/php-cgi
671 $(call Build
/Compile
/php5-cli
)
672 $(call Build
/Compile
/php5-cgi
)
675 define Package
/php5
/conffiles
679 define Package
/php5
/install
680 $(INSTALL_DIR
) $(1)/etc
681 $(INSTALL_DATA
) .
/files
/php.ini
$(1)/etc
/
684 define Package
/php5-cli
/install
685 $(INSTALL_DIR
) $(1)/usr
/bin
686 $(CP
) $(PKG_BUILD_DIR
)/php-cli
$(1)/usr
/bin
/php-cli
689 define Package
/php5-cgi
/install
690 $(INSTALL_DIR
) $(1)/usr
/bin
691 $(CP
) $(PKG_BUILD_DIR
)/php-cgi
$(1)/usr
/bin
/php-cgi
692 ln
-sf php-cgi
$(1)/usr
/bin
/php-fcgi
695 define Package
/php5-fastcgi
/install
696 $(INSTALL_DIR
) $(1)/etc
/init.d
697 $(INSTALL_BIN
) .
/files
/php.init
$(1)/etc
/init.d
/php
701 define Package
/$(1)/install
702 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/php
704 [ -z
"$(CONFIG_PACKAGE_$(1))" ] \
705 ||
$(INSTALL_BIN
) $(PKG_BUILD_DIR
)/modules
/$$$$$$$${m}.so
$$(1)/usr
/lib
/php
/ ; \
709 $$(eval
$$(call BuildPackage
,$(1)))
712 $(eval
$(call BuildPackage
,php5
))
713 $(eval
$(call BuildPackage
,php5-cli
))
714 $(eval
$(call BuildPackage
,php5-cgi
))
715 $(eval
$(call BuildPackage
,php5-fastcgi
))
716 $(eval
$(call BuildPlugin
,php5-mod-ctype
,ctype
))
717 $(eval
$(call BuildPlugin
,php5-mod-curl
,curl
))
718 $(eval
$(call BuildPlugin
,php5-mod-fileinfo
,fileinfo
))
719 $(eval
$(call BuildPlugin
,php5-mod-dom
,dom
))
720 $(eval
$(call BuildPlugin
,php5-mod-exif
,exif
))
721 $(eval
$(call BuildPlugin
,php5-mod-ftp
,ftp
))
722 $(eval
$(call BuildPlugin
,php5-mod-gd
,gd
))
723 $(eval
$(call BuildPlugin
,php5-mod-gmp
,gmp
))
724 $(eval
$(call BuildPlugin
,php5-mod-hash
,hash
))
725 $(eval
$(call BuildPlugin
,php5-mod-iconv
,iconv
))
726 $(eval
$(call BuildPlugin
,php5-mod-json
,json
))
727 $(eval
$(call BuildPlugin
,php5-mod-ldap
,ldap
))
728 $(eval
$(call BuildPlugin
,php5-mod-mbstring
,mbstring
))
729 $(eval
$(call BuildPlugin
,php5-mod-mcrypt
,mcrypt
))
730 $(eval
$(call BuildPlugin
,php5-mod-mysql
,mysql
))
731 $(eval
$(call BuildPlugin
,php5-mod-openssl
,openssl
))
732 $(eval
$(call BuildPlugin
,php5-mod-pdo
,pdo
))
733 $(eval
$(call BuildPlugin
,php5-mod-pdo-mysql
,pdo_mysql
))
734 $(eval
$(call BuildPlugin
,php5-mod-pdo-pgsql
,pdo_pgsql
))
735 $(eval
$(call BuildPlugin
,php5-mod-pdo-sqlite
,pdo_sqlite
))
736 $(eval
$(call BuildPlugin
,php5-mod-pgsql
,pgsql
))
737 $(eval
$(call BuildPlugin
,php5-mod-session
,session
))
738 $(eval
$(call BuildPlugin
,php5-mod-soap
,soap
))
739 $(eval
$(call BuildPlugin
,php5-mod-sockets
,sockets
))
740 $(eval
$(call BuildPlugin
,php5-mod-sqlite
,sqlite
))
741 $(eval
$(call BuildPlugin
,php5-mod-sqlite3
,sqlite3
))
742 $(eval
$(call BuildPlugin
,php5-mod-tokenizer
,tokenizer
))
743 $(eval
$(call BuildPlugin
,php5-mod-xml
,xml
))
744 $(eval
$(call BuildPlugin
,php5-mod-xmlreader
,xmlreader
))
745 $(eval
$(call BuildPlugin
,php5-mod-xmlwriter
,xmlwriter
))