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
:=63e97ad450f0f7259e785100b634c797
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/php5
/Default
26 TITLE
:=PHP5 Hypertext preprocessor
27 URL
:=http
://www.php.net
/
30 define Package
/php5
/Default
/description
31 PHP is a widely-used general-purpose scripting language that is especially
32 suited for Web development and can be embedded into HTML.
35 define Package
/php5
/config
37 bool
"PHP5 APC support"
38 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
41 bool
"PHP5 Filter support"
42 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
45 bool
"PHP5 LIBXML support"
46 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
49 bool
"PHP5 Semaphore, Shared Memory and IPC support"
50 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
54 $(call Package
/php5
/Default
)
55 DEPENDS
:=+libpcre
+zlib
56 ifneq ($(CONFIG_PHP5_LIBXML
),)
61 define Package
/php5
/description
62 $(call Package
/php5
/Default
/description
)
63 This package contains only the PHP config file. You must actually choose
64 your PHP flavour
(cli
, cgi or fastcgi
).
67 define Package
/php5-cli
68 $(call Package
/php5
/Default
)
73 define Package
/php5-cli
/description
74 $(call Package
/php5
/Default
/description
)
75 This package contains the CLI version of the PHP5 interpreter.
78 define Package
/php5-cgi
79 $(call Package
/php5
/Default
)
81 TITLE
+= (CGI
& FastCGI
)
84 define Package
/php5-cgi
/description
85 $(call Package
/php5
/Default
/description
)
86 This package contains the CGI version of the PHP5 interpreter.
89 define Package
/php5-fastcgi
90 $(call Package
/php5
/Default
)
91 DEPENDS
:=php5
+php5-cgi
92 TITLE
:=FastCGI startup script
95 define Package
/php5-cgi
/description
96 As FastCGI support is now a core feature the php5-fastcgi package now depends
97 on the php5-cgi package
, containing just the startup script.
100 define Package
/php5-mod-ctype
101 $(call Package
/php5
/Default
)
103 TITLE
:=ctype shared module
105 define Package
/php5-mod-ctype
/config
106 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
109 define Package
/php5-mod-curl
110 $(call Package
/php5
/Default
)
111 DEPENDS
:=php5
+libcurl
112 TITLE
:=cURL shared module
114 define Package
/php5-mod-curl
/config
115 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
118 define Package
/php5-mod-fileinfo
119 $(call Package
/php5
/Default
)
120 DEPENDS
:=php5
+libmagic
121 TITLE
:=Fileinfo shared module
123 define Package
/php5-mod-fileinfo
/config
124 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
127 define Package
/php5-mod-dom
128 $(call Package
/php5
/Default
)
129 DEPENDS
:=php5
+libxml2
130 TITLE
:=DOM shared module
132 define Package
/php5-mod-dom
/config
133 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
134 depends on PHP5_LIBXML
137 define Package
/php5-mod-exif
138 $(call Package
/php5
/Default
)
140 TITLE
:=EXIF shared module
142 define Package
/php5-mod-exif
/config
143 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
146 define Package
/php5-mod-ftp
147 $(call Package
/php5
/Default
)
149 TITLE
:=FTP shared module
151 define Package
/php5-mod-ftp
/config
152 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
155 define Package
/php5-mod-gd
156 $(call Package
/php5
/Default
)
158 TITLE
:=GD graphics shared module
160 define Package
/php5-mod-gd
/config
161 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
164 define Package
/php5-mod-gmp
165 $(call Package
/php5
/Default
)
166 DEPENDS
:=php5
+libgmp
167 TITLE
:=GMP shared module
169 define Package
/php5-mod-gmp
/config
170 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
173 define Package
/php5-mod-hash
174 $(call Package
/php5
/Default
)
176 TITLE
:=Hash shared module
178 define Package
/php5-mod-hash
/config
179 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
182 define Package
/php5-mod-iconv
183 $(call Package
/php5
/Default
)
184 DEPENDS
:=php5
+libiconv
185 TITLE
:=iConv shared module
187 define Package
/php5-mod-iconv
/config
188 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
191 define Package
/php5-mod-json
192 $(call Package
/php5
/Default
)
194 TITLE
:=JSON shared module
196 define Package
/php5-mod-json
/config
197 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
200 define Package
/php5-mod-ldap
201 $(call Package
/php5
/Default
)
202 DEPENDS
:=php5
+libopenldap
+libsasl2
203 TITLE
:=LDAP shared module
205 define Package
/php5-mod-ldap
/config
206 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
209 define Package
/php5-mod-mbstring
210 $(call Package
/php5
/Default
)
212 TITLE
:=MBString shared module
214 define Package
/php5-mod-mbstring
/config
215 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
218 define Package
/php5-mod-mcrypt
219 $(call Package
/php5
/Default
)
220 DEPENDS
:=php5
+libmcrypt
+libltdl
221 TITLE
:=mcrypt shared module
223 define Package
/php5-mod-mcrypt
/config
224 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
227 define Package
/php5-mod-mysql
228 $(call Package
/php5
/Default
)
229 DEPENDS
:=php5
+libmysqlclient
230 TITLE
:=MySQL shared module
232 define Package
/php5-mod-mysql
/config
233 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
236 define Package
/php5-mod-openssl
237 $(call Package
/php5
/Default
)
238 DEPENDS
:=php5
+libopenssl
239 TITLE
:=OpenSSL shared module
241 define Package
/php5-mod-openssl
/config
242 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
245 define Package
/php5-mod-pdo
246 $(call Package
/php5
/Default
)
248 TITLE
:=PHP Data Objects shared module
250 define Package
/php5-mod-pdo
/config
251 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
254 define Package
/php5-mod-pdo-mysql
255 $(call Package
/php5
/Default
)
256 DEPENDS
:=php5-mod-pdo
+libmysqlclient
257 TITLE
:=PDO driver for MySQL
260 define Package
/php5-mod-pdo-pgsql
261 $(call Package
/php5
/Default
)
262 DEPENDS
:=php5-mod-pdo
+libpq
263 TITLE
:=PDO driver for PostgreSQL
266 define Package
/php5-mod-pdo-sqlite
267 $(call Package
/php5
/Default
)
268 DEPENDS
:=php5-mod-pdo
+libsqlite3
269 TITLE
:=PDO driver for SQLite
(3.x
)
272 define Package
/php5-mod-pgsql
273 $(call Package
/php5
/Default
)
275 TITLE
:=PostgreSQL shared module
277 define Package
/php5-mod-pgsql
/config
278 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
281 define Package
/php5-mod-session
282 $(call Package
/php5
/Default
)
284 TITLE
:=Session shared module
286 define Package
/php5-mod-session
/config
287 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
290 define Package
/php5-mod-soap
291 $(call Package
/php5
/Default
)
292 DEPENDS
:=php5
+libxml2
293 TITLE
:=SOAP shared module
295 define Package
/php5-mod-soap
/config
296 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
297 depends on PHP5_LIBXML
300 define Package
/php5-mod-sockets
301 $(call Package
/php5
/Default
)
303 TITLE
:=Sockets shared module
305 define Package
/php5-mod-sockets
/config
306 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
309 define Package
/php5-mod-sqlite
310 $(call Package
/php5
/Default
)
311 DEPENDS
:=php5
+libsqlite2
312 TITLE
:=SQLite shared module
(2.x
)
314 define Package
/php5-mod-sqlite
/config
315 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
318 define Package
/php5-mod-sqlite3
319 $(call Package
/php5
/Default
)
320 DEPENDS
:=php5
+libsqlite3
321 TITLE
:=SQLite3 shared module
(3.x
)
323 define Package
/php5-mod-sqlite3
/config
324 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
327 define Package
/php5-mod-tokenizer
328 $(call Package
/php5
/Default
)
330 TITLE
:=Tokenizer shared module
332 define Package
/php5-mod-tokenizer
/config
333 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
336 define Package
/php5-mod-xml
337 $(call Package
/php5
/Default
)
339 ifneq ($(CONFIG_PHP5_LIBXML
),)
344 TITLE
:=XML shared module
346 define Package
/php5-mod-xml
/config
347 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
350 define Package
/php5-mod-xmlreader
351 $(call Package
/php5
/Default
)
352 DEPENDS
:=php5
+libxml2
+libiconv
353 TITLE
:=XMLReader shared module
355 define Package
/php5-mod-xmlreader
/config
356 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
357 depends on PHP5_LIBXML
360 define Package
/php5-mod-xmlwriter
361 $(call Package
/php5
/Default
)
362 DEPENDS
:=php5
+libxml2
+libiconv
363 TITLE
:=XMLWriter shared module
365 define Package
/php5-mod-xmlwriter
/config
366 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
367 depends on PHP5_LIBXML
371 ac_cv_c_bigendian_php
=$(if
$(CONFIG_BIG_ENDIAN
),yes
,no
)
373 PKG_CONFIGURE_OPTS
:= \
380 --with-config-file-path
=/etc \
381 --enable-magic-quotes \
382 --disable-short-tags \
385 --disable-simplexml \
386 --with-zlib
="$(STAGING_DIR)/usr" \
387 --with-zlib-dir
="$(STAGING_DIR)/usr" \
388 --with-pcre-regex
="$(STAGING_DIR)/usr" \
392 PKG_BUILD_DEPENDS
:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libsqlite3 libpcre libxml2
393 # force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
394 CONFIG_PACKAGE_php5-cli
:=m
395 CONFIG_PACKAGE_php5-cgi
:=m
396 CONFIG_PACKAGE_php5-fastcgi
:=m
397 CONFIG_PACKAGE_php5-mod-curl
:=m
398 CONFIG_PACKAGE_php5-mod-gd
:=m
399 CONFIG_PACKAGE_php5-mod-gmp
:=m
400 CONFIG_PACKAGE_php5-mod-ldap
:=m
401 CONFIG_PACKAGE_php5-mod-mysql
:=m
402 CONFIG_PACKAGE_php5-mod-pgsql
:=m
403 CONFIG_PACKAGE_php5-mod-sqlite
:=m
404 CONFIG_PACKAGE_php5-mod-sqlite3
:=m
405 CONFIG_PACKAGE_php5-mod-xml
:=m
408 ifneq ($(CONFIG_PACKAGE_php5-mod-ctype
),)
409 PKG_CONFIGURE_OPTS
+= --enable-ctype
=shared
411 PKG_CONFIGURE_OPTS
+= --disable-ctype
414 ifneq ($(CONFIG_PACKAGE_php5-mod-curl
),)
415 PKG_CONFIGURE_OPTS
+= --with-curl
=shared
,"$(STAGING_DIR)/usr"
417 PKG_CONFIGURE_OPTS
+= --without-curl
420 ifneq ($(CONFIG_PACKAGE_php5-mod-fileinfo
),)
421 PKG_CONFIGURE_OPTS
+= --enable-fileinfo
=shared
423 PKG_CONFIGURE_OPTS
+= --disable-fileinfo
426 ifneq ($(CONFIG_PACKAGE_php5-mod-dom
),)
427 PKG_CONFIGURE_OPTS
+= --enable-dom
=shared
429 PKG_CONFIGURE_OPTS
+= --disable-dom
432 ifneq ($(CONFIG_PACKAGE_php5-mod-exif
),)
433 PKG_CONFIGURE_OPTS
+= --enable-exif
=shared
435 PKG_CONFIGURE_OPTS
+= --disable-exif
438 ifneq ($(CONFIG_PACKAGE_php5-mod-ftp
),)
439 PKG_CONFIGURE_OPTS
+= --enable-ftp
=shared
441 PKG_CONFIGURE_OPTS
+= --disable-ftp
444 ifneq ($(CONFIG_PACKAGE_php5-mod-gd
),)
445 PKG_CONFIGURE_OPTS
+= --with-gd
=shared
,"$(STAGING_DIR)/usr" \
446 --without-freetype-dir \
447 --with-jpeg-dir
="$(STAGING_DIR)/usr" \
448 --with-png-dir
="$(STAGING_DIR)/usr" \
452 --enable-gd-native-ttf \
453 --disable-gd-jis-conv
455 PKG_CONFIGURE_OPTS
+= --without-gd
458 ifneq ($(CONFIG_PACKAGE_php5-mod-gmp
),)
459 PKG_CONFIGURE_OPTS
+= --with-gmp
=shared
,"$(STAGING_DIR)/usr"
461 PKG_CONFIGURE_OPTS
+= --without-gmp
464 ifneq ($(CONFIG_PACKAGE_php5-mod-hash
),)
465 PKG_CONFIGURE_OPTS
+= --enable-hash
=shared
467 PKG_CONFIGURE_OPTS
+= --disable-hash
470 ifneq ($(CONFIG_PACKAGE_php5-mod-iconv
),)
471 PKG_CONFIGURE_OPTS
+= --with-iconv
=shared
,"$(STAGING_DIR)/usr/lib/libiconv"
473 PKG_CONFIGURE_OPTS
+= --without-iconv
476 ifneq ($(CONFIG_PACKAGE_php5-mod-json
),)
477 PKG_CONFIGURE_OPTS
+= --enable-json
=shared
479 PKG_CONFIGURE_OPTS
+= --disable-json
482 ifneq ($(CONFIG_PACKAGE_php5-mod-ldap
),)
483 PKG_CONFIGURE_OPTS
+= --with-ldap
=shared
,"$(STAGING_DIR)/usr" \
484 --with-ldap-sasl
="$(STAGING_DIR)/usr"
486 PKG_CONFIGURE_OPTS
+= --without-ldap
489 ifneq ($(CONFIG_PACKAGE_php5-mod-mbstring
),)
490 PKG_CONFIGURE_OPTS
+= --enable-mbstring
=shared
--enable-mbregex
492 PKG_CONFIGURE_OPTS
+= --disable-mbstring
495 ifneq ($(CONFIG_PACKAGE_php5-mod-mcrypt
),)
496 PKG_CONFIGURE_OPTS
+= --with-mcrypt
=shared
,"$(STAGING_DIR)/usr"
498 PKG_CONFIGURE_OPTS
+= --without-mcrypt
501 ifneq ($(CONFIG_PACKAGE_php5-mod-mysql
),)
502 PKG_CONFIGURE_OPTS
+= --with-mysql
=shared
,"$(STAGING_DIR)/usr"
504 PKG_CONFIGURE_OPTS
+= --without-mysql
507 ifneq ($(CONFIG_PACKAGE_php5-mod-openssl
),)
508 PKG_CONFIGURE_OPTS
+= --with-openssl
=shared
,"$(STAGING_DIR)/usr"
509 PKG_CONFIGURE_OPTS
+= --with-kerberos
=no
510 PKG_CONFIGURE_OPTS
+= --with-openssl-dir
="$(STAGING_DIR)/usr"
512 PKG_CONFIGURE_OPTS
+= --without-openssl
515 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo
),)
516 PKG_CONFIGURE_OPTS
+= --enable-pdo
=shared
517 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-mysql
),)
518 PKG_CONFIGURE_OPTS
+= --with-pdo-mysql
=shared
,"$(STAGING_DIR)/usr"
520 PKG_CONFIGURE_OPTS
+= --without-pdo-mysql
522 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-pgsql
),)
523 PKG_CONFIGURE_OPTS
+= --with-pdo-pgsql
=shared
,"$(STAGING_DIR)/usr"
525 PKG_CONFIGURE_OPTS
+= --without-pdo-pgsql
527 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite
),)
528 PKG_CONFIGURE_OPTS
+= --with-pdo-sqlite
=shared
,"$(STAGING_DIR)/usr"
529 PKG_CONFIGURE_LIBS
+= -lsqlite3
531 PKG_CONFIGURE_OPTS
+= --without-pdo-sqlite
534 PKG_CONFIGURE_OPTS
+= --disable-pdo
537 ifneq ($(CONFIG_PACKAGE_php5-mod-pgsql
),)
538 PKG_CONFIGURE_OPTS
+= --with-pgsql
=shared
,"$(STAGING_DIR)/usr"
540 PKG_CONFIGURE_OPTS
+= --without-pgsql
543 ifneq ($(CONFIG_PACKAGE_php5-mod-session
),)
544 PKG_CONFIGURE_OPTS
+= --enable-session
=shared
546 PKG_CONFIGURE_OPTS
+= --disable-session
549 ifneq ($(CONFIG_PACKAGE_php5-mod-soap
),)
550 PKG_CONFIGURE_OPTS
+= --enable-soap
=shared
552 PKG_CONFIGURE_OPTS
+= --disable-soap
555 ifneq ($(CONFIG_PACKAGE_php5-mod-sockets
),)
556 PKG_CONFIGURE_OPTS
+= --enable-sockets
=shared
558 PKG_CONFIGURE_OPTS
+= --disable-sockets
561 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite
),)
562 PKG_CONFIGURE_OPTS
+= --with-sqlite
=shared
,"$(STAGING_DIR)/usr"
564 PKG_CONFIGURE_OPTS
+= --without-sqlite
567 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3
),)
568 PKG_CONFIGURE_OPTS
+= --with-sqlite3
=shared
,"$(STAGING_DIR)/usr"
569 PKG_CONFIGURE_LIBS
+= -lsqlite3
571 PKG_CONFIGURE_OPTS
+= --without-sqlite3
574 ifneq ($(CONFIG_PACKAGE_php5-mod-tokenizer
),)
575 PKG_CONFIGURE_OPTS
+= --enable-tokenizer
=shared
577 PKG_CONFIGURE_OPTS
+= --disable-tokenizer
580 ifneq ($(CONFIG_PACKAGE_php5-mod-xml
),)
581 PKG_CONFIGURE_OPTS
+= --enable-xml
=shared
,"$(STAGING_DIR)/usr"
582 ifneq ($(CONFIG_PHP5_LIBXML
),)
583 PKG_CONFIGURE_OPTS
+= --with-libxml-dir
="$(STAGING_DIR)/usr/include/libxml2"
585 PKG_CONFIGURE_OPTS
+= --with-libexpat-dir
="$(STAGING_DIR)/usr"
588 PKG_CONFIGURE_OPTS
+= --disable-xml
591 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlreader
),)
592 PKG_CONFIGURE_OPTS
+= --enable-xmlreader
=shared
,"$(STAGING_DIR)/usr"
594 PKG_CONFIGURE_OPTS
+= --disable-xmlreader
597 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlwriter
),)
598 PKG_CONFIGURE_OPTS
+= --enable-xmlwriter
=shared
,"$(STAGING_DIR)/usr"
600 PKG_CONFIGURE_OPTS
+= --disable-xmlwriter
603 ifneq ($(CONFIG_PHP5_APC
),)
604 PKG_CONFIGURE_OPTS
+= --enable-apc
--disable-apc-mmap
--disable-apc-pthreadmutex
605 PKG_CONFIGURE_LIBS
+= -lrt
607 PKG_CONFIGURE_OPTS
+= --disable-apc
610 ifneq ($(CONFIG_PHP5_FILTER
),)
611 PKG_CONFIGURE_OPTS
+= --enable-filter
613 PKG_CONFIGURE_OPTS
+= --disable-filter
616 ifneq ($(CONFIG_PHP5_LIBXML
),)
617 PKG_CONFIGURE_OPTS
+= --enable-libxml
618 PKG_CONFIGURE_OPTS
+= --with-libxml-dir
="$(STAGING_DIR)/usr/include/libxml2"
620 PKG_CONFIGURE_OPTS
+= --disable-libxml
623 ifneq ($(CONFIG_PHP5_SYSVIPC
),)
624 PKG_CONFIGURE_OPTS
+= --enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
626 PKG_CONFIGURE_OPTS
+= --disable-sysvsem
--disable-sysvshm
--disable-sysvmsg
629 define Build
/Configure
632 ifneq ($(CONFIG_PACKAGE_php5-cli
),)
633 define Build
/Compile
/php5-cli
634 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
635 $(call Build
/Configure
/Default
, \
636 $(PKG_CONFIGURE_OPTS
) \
640 LIBS
="$(PKG_CONFIGURE_LIBS)" \
641 php_cv_cc_rpath
="no" \
642 iconv_impl_name
="gnu_libiconv" \
643 ac_cv_php_xml2_config_path
="$(STAGING_DIR)/host/bin/xml2-config" \
645 $(MAKE
) -C
$(PKG_BUILD_DIR
)
646 mv
$(PKG_BUILD_DIR
)/sapi
/cli
/php
$(PKG_BUILD_DIR
)/php-cli
650 ifneq ($(CONFIG_PACKAGE_php5-cgi
),)
651 define Build
/Compile
/php5-cgi
652 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
653 $(call Build
/Configure
/Default
, \
654 $(PKG_CONFIGURE_OPTS
) \
658 LIBS
="$(PKG_CONFIGURE_LIBS)" \
659 php_cv_cc_rpath
="no" \
660 iconv_impl_name
="gnu_libiconv" \
661 ac_cv_php_xml2_config_path
="$(STAGING_DIR)/host/bin/xml2-config" \
663 $(MAKE
) -C
$(PKG_BUILD_DIR
)
664 mv
$(PKG_BUILD_DIR
)/sapi
/cgi
/php-cgi
$(PKG_BUILD_DIR
)/php-cgi
669 $(call Build
/Compile
/php5-cli
)
670 $(call Build
/Compile
/php5-cgi
)
673 define Package
/php5
/conffiles
677 define Package
/php5
/install
678 $(INSTALL_DIR
) $(1)/etc
679 $(INSTALL_DATA
) .
/files
/php.ini
$(1)/etc
/
682 define Package
/php5-cli
/install
683 $(INSTALL_DIR
) $(1)/usr
/bin
684 $(CP
) $(PKG_BUILD_DIR
)/php-cli
$(1)/usr
/bin
/php-cli
687 define Package
/php5-cgi
/install
688 $(INSTALL_DIR
) $(1)/usr
/bin
689 $(CP
) $(PKG_BUILD_DIR
)/php-cgi
$(1)/usr
/bin
/php-cgi
690 ln
-sf php-cgi
$(1)/usr
/bin
/php-fcgi
693 define Package
/php5-fastcgi
/install
694 $(INSTALL_DIR
) $(1)/etc
/init.d
695 $(INSTALL_BIN
) .
/files
/php.init
$(1)/etc
/init.d
/php
699 define Package
/$(1)/install
700 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/php
702 [ -z
"$(CONFIG_PACKAGE_$(1))" ] \
703 ||
$(INSTALL_BIN
) $(PKG_BUILD_DIR
)/modules
/$$$$$$$${m}.so
$$(1)/usr
/lib
/php
/ ; \
707 $$(eval
$$(call BuildPackage
,$(1)))
710 $(eval
$(call BuildPackage
,php5
))
711 $(eval
$(call BuildPackage
,php5-cli
))
712 $(eval
$(call BuildPackage
,php5-cgi
))
713 $(eval
$(call BuildPackage
,php5-fastcgi
))
714 $(eval
$(call BuildPlugin
,php5-mod-ctype
,ctype
))
715 $(eval
$(call BuildPlugin
,php5-mod-curl
,curl
))
716 $(eval
$(call BuildPlugin
,php5-mod-fileinfo
,fileinfo
))
717 $(eval
$(call BuildPlugin
,php5-mod-dom
,dom
))
718 $(eval
$(call BuildPlugin
,php5-mod-exif
,exif
))
719 $(eval
$(call BuildPlugin
,php5-mod-ftp
,ftp
))
720 $(eval
$(call BuildPlugin
,php5-mod-gd
,gd
))
721 $(eval
$(call BuildPlugin
,php5-mod-gmp
,gmp
))
722 $(eval
$(call BuildPlugin
,php5-mod-hash
,hash
))
723 $(eval
$(call BuildPlugin
,php5-mod-iconv
,iconv
))
724 $(eval
$(call BuildPlugin
,php5-mod-json
,json
))
725 $(eval
$(call BuildPlugin
,php5-mod-ldap
,ldap
))
726 $(eval
$(call BuildPlugin
,php5-mod-mbstring
,mbstring
))
727 $(eval
$(call BuildPlugin
,php5-mod-mcrypt
,mcrypt
))
728 $(eval
$(call BuildPlugin
,php5-mod-mysql
,mysql
))
729 $(eval
$(call BuildPlugin
,php5-mod-openssl
,openssl
))
730 $(eval
$(call BuildPlugin
,php5-mod-pdo
,pdo
))
731 $(eval
$(call BuildPlugin
,php5-mod-pdo-mysql
,pdo_mysql
))
732 $(eval
$(call BuildPlugin
,php5-mod-pdo-pgsql
,pdo_pgsql
))
733 $(eval
$(call BuildPlugin
,php5-mod-pdo-sqlite
,pdo_sqlite
))
734 $(eval
$(call BuildPlugin
,php5-mod-pgsql
,pgsql
))
735 $(eval
$(call BuildPlugin
,php5-mod-session
,session
))
736 $(eval
$(call BuildPlugin
,php5-mod-soap
,soap
))
737 $(eval
$(call BuildPlugin
,php5-mod-sockets
,sockets
))
738 $(eval
$(call BuildPlugin
,php5-mod-sqlite
,sqlite
))
739 $(eval
$(call BuildPlugin
,php5-mod-sqlite3
,sqlite3
))
740 $(eval
$(call BuildPlugin
,php5-mod-tokenizer
,tokenizer
))
741 $(eval
$(call BuildPlugin
,php5-mod-xml
,xml
))
742 $(eval
$(call BuildPlugin
,php5-mod-xmlreader
,xmlreader
))
743 $(eval
$(call BuildPlugin
,php5-mod-xmlwriter
,xmlwriter
))