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
18 PKG_FIXUP
:=libtool no-autoreconf
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/php5
/Default
27 TITLE
:=PHP5 Hypertext preprocessor
28 URL
:=http
://www.php.net
/
31 define Package
/php5
/Default
/description
32 PHP is a widely-used general-purpose scripting language that is especially
33 suited for Web development and can be embedded into HTML.
36 define Package
/php5
/config
38 bool
"PHP5 APC support"
39 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
42 bool
"PHP5 Filter support"
43 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
46 bool
"PHP5 LIBXML support"
47 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
50 bool
"PHP5 Semaphore, Shared Memory and IPC support"
51 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
55 $(call Package
/php5
/Default
)
56 DEPENDS
:=+libpcre
+zlib
57 ifneq ($(CONFIG_PHP5_LIBXML
),)
62 define Package
/php5
/description
63 $(call Package
/php5
/Default
/description
)
64 This package contains only the PHP config file. You must actually choose
65 your PHP flavour
(cli
, cgi or fastcgi
).
68 define Package
/php5-cli
69 $(call Package
/php5
/Default
)
74 define Package
/php5-cli
/description
75 $(call Package
/php5
/Default
/description
)
76 This package contains the CLI version of the PHP5 interpreter.
79 define Package
/php5-cgi
80 $(call Package
/php5
/Default
)
82 TITLE
+= (CGI
& FastCGI
)
85 define Package
/php5-cgi
/description
86 $(call Package
/php5
/Default
/description
)
87 This package contains the CGI version of the PHP5 interpreter.
90 define Package
/php5-fastcgi
91 $(call Package
/php5
/Default
)
92 DEPENDS
:=php5
+php5-cgi
93 TITLE
:=FastCGI startup script
96 define Package
/php5-cgi
/description
97 As FastCGI support is now a core feature the php5-fastcgi package now depends
98 on the php5-cgi package
, containing just the startup script.
101 define Package
/php5-mod-ctype
102 $(call Package
/php5
/Default
)
104 TITLE
:=ctype shared module
106 define Package
/php5-mod-ctype
/config
107 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
110 define Package
/php5-mod-curl
111 $(call Package
/php5
/Default
)
112 DEPENDS
:=php5
+libcurl
113 TITLE
:=cURL shared module
115 define Package
/php5-mod-curl
/config
116 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
119 define Package
/php5-mod-fileinfo
120 $(call Package
/php5
/Default
)
121 DEPENDS
:=php5
+libmagic
122 TITLE
:=Fileinfo shared module
124 define Package
/php5-mod-fileinfo
/config
125 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
128 define Package
/php5-mod-dom
129 $(call Package
/php5
/Default
)
130 DEPENDS
:=php5
+libxml2
131 TITLE
:=DOM shared module
133 define Package
/php5-mod-dom
/config
134 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
135 depends on PHP5_LIBXML
138 define Package
/php5-mod-exif
139 $(call Package
/php5
/Default
)
141 TITLE
:=EXIF shared module
143 define Package
/php5-mod-exif
/config
144 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
147 define Package
/php5-mod-ftp
148 $(call Package
/php5
/Default
)
150 TITLE
:=FTP shared module
152 define Package
/php5-mod-ftp
/config
153 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
156 define Package
/php5-mod-gd
157 $(call Package
/php5
/Default
)
159 TITLE
:=GD graphics shared module
161 define Package
/php5-mod-gd
/config
162 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
165 define Package
/php5-mod-gmp
166 $(call Package
/php5
/Default
)
167 DEPENDS
:=php5
+libgmp
168 TITLE
:=GMP shared module
170 define Package
/php5-mod-gmp
/config
171 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
174 define Package
/php5-mod-hash
175 $(call Package
/php5
/Default
)
177 TITLE
:=Hash shared module
179 define Package
/php5-mod-hash
/config
180 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
183 define Package
/php5-mod-iconv
184 $(call Package
/php5
/Default
)
185 DEPENDS
:=php5
+libiconv
186 TITLE
:=iConv shared module
188 define Package
/php5-mod-iconv
/config
189 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
192 define Package
/php5-mod-json
193 $(call Package
/php5
/Default
)
195 TITLE
:=JSON shared module
197 define Package
/php5-mod-json
/config
198 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
201 define Package
/php5-mod-ldap
202 $(call Package
/php5
/Default
)
203 DEPENDS
:=php5
+libopenldap
+libsasl2
204 TITLE
:=LDAP shared module
206 define Package
/php5-mod-ldap
/config
207 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
210 define Package
/php5-mod-mbstring
211 $(call Package
/php5
/Default
)
213 TITLE
:=MBString shared module
215 define Package
/php5-mod-mbstring
/config
216 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
219 define Package
/php5-mod-mcrypt
220 $(call Package
/php5
/Default
)
221 DEPENDS
:=php5
+libmcrypt
+libltdl
222 TITLE
:=mcrypt shared module
224 define Package
/php5-mod-mcrypt
/config
225 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
228 define Package
/php5-mod-mysql
229 $(call Package
/php5
/Default
)
230 DEPENDS
:=php5
+libmysqlclient
231 TITLE
:=MySQL shared module
233 define Package
/php5-mod-mysql
/config
234 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
237 define Package
/php5-mod-openssl
238 $(call Package
/php5
/Default
)
239 DEPENDS
:=php5
+libopenssl
240 TITLE
:=OpenSSL shared module
242 define Package
/php5-mod-openssl
/config
243 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
246 define Package
/php5-mod-pdo
247 $(call Package
/php5
/Default
)
249 TITLE
:=PHP Data Objects shared module
251 define Package
/php5-mod-pdo
/config
252 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
255 define Package
/php5-mod-pdo-mysql
256 $(call Package
/php5
/Default
)
257 DEPENDS
:=php5-mod-pdo
+libmysqlclient
258 TITLE
:=PDO driver for MySQL
261 define Package
/php5-mod-pdo-pgsql
262 $(call Package
/php5
/Default
)
263 DEPENDS
:=php5-mod-pdo
+libpq
264 TITLE
:=PDO driver for PostgreSQL
267 define Package
/php5-mod-pdo-sqlite
268 $(call Package
/php5
/Default
)
269 DEPENDS
:=php5-mod-pdo
+libsqlite3
+libpthread
270 TITLE
:=PDO driver for SQLite
(3.x
)
273 define Package
/php5-mod-pgsql
274 $(call Package
/php5
/Default
)
276 TITLE
:=PostgreSQL shared module
278 define Package
/php5-mod-pgsql
/config
279 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
282 define Package
/php5-mod-session
283 $(call Package
/php5
/Default
)
285 TITLE
:=Session shared module
287 define Package
/php5-mod-session
/config
288 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
291 define Package
/php5-mod-soap
292 $(call Package
/php5
/Default
)
293 DEPENDS
:=php5
+libxml2
294 TITLE
:=SOAP shared module
296 define Package
/php5-mod-soap
/config
297 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
298 depends on PHP5_LIBXML
301 define Package
/php5-mod-sockets
302 $(call Package
/php5
/Default
)
304 TITLE
:=Sockets shared module
306 define Package
/php5-mod-sockets
/config
307 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
310 define Package
/php5-mod-sqlite
311 $(call Package
/php5
/Default
)
312 DEPENDS
:=php5
+libsqlite2
313 TITLE
:=SQLite shared module
(2.x
)
315 define Package
/php5-mod-sqlite
/config
316 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
319 define Package
/php5-mod-sqlite3
320 $(call Package
/php5
/Default
)
321 DEPENDS
:=php5
+libsqlite3
+libpthread
322 TITLE
:=SQLite3 shared module
(3.x
)
324 define Package
/php5-mod-sqlite3
/config
325 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
328 define Package
/php5-mod-tokenizer
329 $(call Package
/php5
/Default
)
331 TITLE
:=Tokenizer shared module
333 define Package
/php5-mod-tokenizer
/config
334 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
337 define Package
/php5-mod-xml
338 $(call Package
/php5
/Default
)
340 ifneq ($(CONFIG_PHP5_LIBXML
),)
345 TITLE
:=XML shared module
347 define Package
/php5-mod-xml
/config
348 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
351 define Package
/php5-mod-xmlreader
352 $(call Package
/php5
/Default
)
353 DEPENDS
:=php5
+libxml2
+libiconv
354 TITLE
:=XMLReader shared module
356 define Package
/php5-mod-xmlreader
/config
357 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
358 depends on PHP5_LIBXML
361 define Package
/php5-mod-xmlwriter
362 $(call Package
/php5
/Default
)
363 DEPENDS
:=php5
+libxml2
+libiconv
364 TITLE
:=XMLWriter shared module
366 define Package
/php5-mod-xmlwriter
/config
367 depends on PACKAGE_php5-cli || PACKAGE_php5-cgi
368 depends on PHP5_LIBXML
372 ac_cv_c_bigendian_php
=$(if
$(CONFIG_BIG_ENDIAN
),yes
,no
)
374 PKG_CONFIGURE_OPTS
:= \
381 --with-config-file-path
=/etc \
382 --enable-magic-quotes \
383 --disable-short-tags \
386 --disable-simplexml \
387 --with-zlib
="$(STAGING_DIR)/usr" \
388 --with-zlib-dir
="$(STAGING_DIR)/usr" \
389 --with-pcre-regex
="$(STAGING_DIR)/usr" \
393 PKG_BUILD_DEPENDS
:=libopenssl zlib libcurl libgd libgmp libopenldap libmysqlclient libpq libsqlite2 libpthread libsqlite3 libpcre libxml2
394 # force PKG_CONFIGURE_{LIBS,OPTS} below when built in the SDK
395 CONFIG_PACKAGE_php5-cli
:=m
396 CONFIG_PACKAGE_php5-cgi
:=m
397 CONFIG_PACKAGE_php5-fastcgi
:=m
398 CONFIG_PACKAGE_php5-mod-curl
:=m
399 CONFIG_PACKAGE_php5-mod-gd
:=m
400 CONFIG_PACKAGE_php5-mod-gmp
:=m
401 CONFIG_PACKAGE_php5-mod-ldap
:=m
402 CONFIG_PACKAGE_php5-mod-mysql
:=m
403 CONFIG_PACKAGE_php5-mod-pgsql
:=m
404 CONFIG_PACKAGE_php5-mod-sqlite
:=m
405 CONFIG_PACKAGE_php5-mod-sqlite3
:=m
406 CONFIG_PACKAGE_php5-mod-xml
:=m
409 ifneq ($(CONFIG_PACKAGE_php5-mod-ctype
),)
410 PKG_CONFIGURE_OPTS
+= --enable-ctype
=shared
412 PKG_CONFIGURE_OPTS
+= --disable-ctype
415 ifneq ($(CONFIG_PACKAGE_php5-mod-curl
),)
416 PKG_CONFIGURE_OPTS
+= --with-curl
=shared
,"$(STAGING_DIR)/usr"
418 PKG_CONFIGURE_OPTS
+= --without-curl
421 ifneq ($(CONFIG_PACKAGE_php5-mod-fileinfo
),)
422 PKG_CONFIGURE_OPTS
+= --enable-fileinfo
=shared
424 PKG_CONFIGURE_OPTS
+= --disable-fileinfo
427 ifneq ($(CONFIG_PACKAGE_php5-mod-dom
),)
428 PKG_CONFIGURE_OPTS
+= --enable-dom
=shared
430 PKG_CONFIGURE_OPTS
+= --disable-dom
433 ifneq ($(CONFIG_PACKAGE_php5-mod-exif
),)
434 PKG_CONFIGURE_OPTS
+= --enable-exif
=shared
436 PKG_CONFIGURE_OPTS
+= --disable-exif
439 ifneq ($(CONFIG_PACKAGE_php5-mod-ftp
),)
440 PKG_CONFIGURE_OPTS
+= --enable-ftp
=shared
442 PKG_CONFIGURE_OPTS
+= --disable-ftp
445 ifneq ($(CONFIG_PACKAGE_php5-mod-gd
),)
446 PKG_CONFIGURE_OPTS
+= --with-gd
=shared
,"$(STAGING_DIR)/usr" \
447 --without-freetype-dir \
448 --with-jpeg-dir
="$(STAGING_DIR)/usr" \
449 --with-png-dir
="$(STAGING_DIR)/usr" \
453 --enable-gd-native-ttf \
454 --disable-gd-jis-conv
456 PKG_CONFIGURE_OPTS
+= --without-gd
459 ifneq ($(CONFIG_PACKAGE_php5-mod-gmp
),)
460 PKG_CONFIGURE_OPTS
+= --with-gmp
=shared
,"$(STAGING_DIR)/usr"
462 PKG_CONFIGURE_OPTS
+= --without-gmp
465 ifneq ($(CONFIG_PACKAGE_php5-mod-hash
),)
466 PKG_CONFIGURE_OPTS
+= --enable-hash
=shared
468 PKG_CONFIGURE_OPTS
+= --disable-hash
471 ifneq ($(CONFIG_PACKAGE_php5-mod-iconv
),)
472 PKG_CONFIGURE_OPTS
+= --with-iconv
=shared
,"$(STAGING_DIR)/usr/lib/libiconv"
474 PKG_CONFIGURE_OPTS
+= --without-iconv
477 ifneq ($(CONFIG_PACKAGE_php5-mod-json
),)
478 PKG_CONFIGURE_OPTS
+= --enable-json
=shared
480 PKG_CONFIGURE_OPTS
+= --disable-json
483 ifneq ($(CONFIG_PACKAGE_php5-mod-ldap
),)
484 PKG_CONFIGURE_OPTS
+= --with-ldap
=shared
,"$(STAGING_DIR)/usr" \
485 --with-ldap-sasl
="$(STAGING_DIR)/usr"
487 PKG_CONFIGURE_OPTS
+= --without-ldap
490 ifneq ($(CONFIG_PACKAGE_php5-mod-mbstring
),)
491 PKG_CONFIGURE_OPTS
+= --enable-mbstring
=shared
--enable-mbregex
493 PKG_CONFIGURE_OPTS
+= --disable-mbstring
496 ifneq ($(CONFIG_PACKAGE_php5-mod-mcrypt
),)
497 PKG_CONFIGURE_OPTS
+= --with-mcrypt
=shared
,"$(STAGING_DIR)/usr"
499 PKG_CONFIGURE_OPTS
+= --without-mcrypt
502 ifneq ($(CONFIG_PACKAGE_php5-mod-mysql
),)
503 PKG_CONFIGURE_OPTS
+= --with-mysql
=shared
,"$(STAGING_DIR)/usr"
505 PKG_CONFIGURE_OPTS
+= --without-mysql
508 ifneq ($(CONFIG_PACKAGE_php5-mod-openssl
),)
509 PKG_CONFIGURE_OPTS
+= --with-openssl
=shared
,"$(STAGING_DIR)/usr"
510 PKG_CONFIGURE_OPTS
+= --with-kerberos
=no
511 PKG_CONFIGURE_OPTS
+= --with-openssl-dir
="$(STAGING_DIR)/usr"
513 PKG_CONFIGURE_OPTS
+= --without-openssl
516 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo
),)
517 PKG_CONFIGURE_OPTS
+= --enable-pdo
=shared
518 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-mysql
),)
519 PKG_CONFIGURE_OPTS
+= --with-pdo-mysql
=shared
,"$(STAGING_DIR)/usr"
521 PKG_CONFIGURE_OPTS
+= --without-pdo-mysql
523 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-pgsql
),)
524 PKG_CONFIGURE_OPTS
+= --with-pdo-pgsql
=shared
,"$(STAGING_DIR)/usr"
526 PKG_CONFIGURE_OPTS
+= --without-pdo-pgsql
528 ifneq ($(CONFIG_PACKAGE_php5-mod-pdo-sqlite
),)
529 PKG_CONFIGURE_OPTS
+= --with-pdo-sqlite
=shared
,"$(STAGING_DIR)/usr"
530 PKG_CONFIGURE_LIBS
+= -lsqlite3
-lpthread
532 PKG_CONFIGURE_OPTS
+= --without-pdo-sqlite
535 PKG_CONFIGURE_OPTS
+= --disable-pdo
538 ifneq ($(CONFIG_PACKAGE_php5-mod-pgsql
),)
539 PKG_CONFIGURE_OPTS
+= --with-pgsql
=shared
,"$(STAGING_DIR)/usr"
541 PKG_CONFIGURE_OPTS
+= --without-pgsql
544 ifneq ($(CONFIG_PACKAGE_php5-mod-session
),)
545 PKG_CONFIGURE_OPTS
+= --enable-session
=shared
547 PKG_CONFIGURE_OPTS
+= --disable-session
550 ifneq ($(CONFIG_PACKAGE_php5-mod-soap
),)
551 PKG_CONFIGURE_OPTS
+= --enable-soap
=shared
553 PKG_CONFIGURE_OPTS
+= --disable-soap
556 ifneq ($(CONFIG_PACKAGE_php5-mod-sockets
),)
557 PKG_CONFIGURE_OPTS
+= --enable-sockets
=shared
559 PKG_CONFIGURE_OPTS
+= --disable-sockets
562 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite
),)
563 PKG_CONFIGURE_OPTS
+= --with-sqlite
=shared
,"$(STAGING_DIR)/usr"
565 PKG_CONFIGURE_OPTS
+= --without-sqlite
568 ifneq ($(CONFIG_PACKAGE_php5-mod-sqlite3
),)
569 PKG_CONFIGURE_OPTS
+= --with-sqlite3
=shared
,"$(STAGING_DIR)/usr"
570 PKG_CONFIGURE_LIBS
+= -lsqlite3
-lpthread
572 PKG_CONFIGURE_OPTS
+= --without-sqlite3
575 ifneq ($(CONFIG_PACKAGE_php5-mod-tokenizer
),)
576 PKG_CONFIGURE_OPTS
+= --enable-tokenizer
=shared
578 PKG_CONFIGURE_OPTS
+= --disable-tokenizer
581 ifneq ($(CONFIG_PACKAGE_php5-mod-xml
),)
582 PKG_CONFIGURE_OPTS
+= --enable-xml
=shared
,"$(STAGING_DIR)/usr"
583 ifneq ($(CONFIG_PHP5_LIBXML
),)
584 PKG_CONFIGURE_OPTS
+= --with-libxml-dir
="$(STAGING_DIR)/usr/include/libxml2"
586 PKG_CONFIGURE_OPTS
+= --with-libexpat-dir
="$(STAGING_DIR)/usr"
589 PKG_CONFIGURE_OPTS
+= --disable-xml
592 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlreader
),)
593 PKG_CONFIGURE_OPTS
+= --enable-xmlreader
=shared
,"$(STAGING_DIR)/usr"
595 PKG_CONFIGURE_OPTS
+= --disable-xmlreader
598 ifneq ($(CONFIG_PACKAGE_php5-mod-xmlwriter
),)
599 PKG_CONFIGURE_OPTS
+= --enable-xmlwriter
=shared
,"$(STAGING_DIR)/usr"
601 PKG_CONFIGURE_OPTS
+= --disable-xmlwriter
604 ifneq ($(CONFIG_PHP5_APC
),)
605 PKG_CONFIGURE_OPTS
+= --enable-apc
--disable-apc-mmap
--disable-apc-pthreadmutex
606 PKG_CONFIGURE_LIBS
+= -lrt
608 PKG_CONFIGURE_OPTS
+= --disable-apc
611 ifneq ($(CONFIG_PHP5_FILTER
),)
612 PKG_CONFIGURE_OPTS
+= --enable-filter
614 PKG_CONFIGURE_OPTS
+= --disable-filter
617 ifneq ($(CONFIG_PHP5_LIBXML
),)
618 PKG_CONFIGURE_OPTS
+= --enable-libxml
619 PKG_CONFIGURE_OPTS
+= --with-libxml-dir
="$(STAGING_DIR)/usr/include/libxml2"
621 PKG_CONFIGURE_OPTS
+= --disable-libxml
624 ifneq ($(CONFIG_PHP5_SYSVIPC
),)
625 PKG_CONFIGURE_OPTS
+= --enable-sysvsem
--enable-sysvshm
--enable-sysvmsg
627 PKG_CONFIGURE_OPTS
+= --disable-sysvsem
--disable-sysvshm
--disable-sysvmsg
630 define Build
/Configure
633 ifneq ($(CONFIG_PACKAGE_php5-cli
),)
634 define Build
/Compile
/php5-cli
635 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
636 $(call Build
/Configure
/Default
, \
637 $(PKG_CONFIGURE_OPTS
) \
641 LIBS
="$(PKG_CONFIGURE_LIBS)" \
642 php_cv_cc_rpath
="no" \
643 iconv_impl_name
="gnu_libiconv" \
644 ac_cv_php_xml2_config_path
="$(STAGING_DIR)/host/bin/xml2-config" \
646 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)
647 mv
$(PKG_BUILD_DIR
)/sapi
/cli
/php
$(PKG_BUILD_DIR
)/php-cli
651 ifneq ($(CONFIG_PACKAGE_php5-cgi
),)
652 define Build
/Compile
/php5-cgi
653 -$(MAKE
) -C
$(PKG_BUILD_DIR
) clean
654 $(call Build
/Configure
/Default
, \
655 $(PKG_CONFIGURE_OPTS
) \
659 LIBS
="$(PKG_CONFIGURE_LIBS)" \
660 php_cv_cc_rpath
="no" \
661 iconv_impl_name
="gnu_libiconv" \
662 ac_cv_php_xml2_config_path
="$(STAGING_DIR)/host/bin/xml2-config" \
664 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)
665 mv
$(PKG_BUILD_DIR
)/sapi
/cgi
/php-cgi
$(PKG_BUILD_DIR
)/php-cgi
670 $(call Build
/Compile
/php5-cli
)
671 $(call Build
/Compile
/php5-cgi
)
674 define Package
/php5
/conffiles
678 define Package
/php5
/install
679 $(INSTALL_DIR
) $(1)/etc
680 $(INSTALL_DATA
) .
/files
/php.ini
$(1)/etc
/
683 define Package
/php5-cli
/install
684 $(INSTALL_DIR
) $(1)/usr
/bin
685 $(CP
) $(PKG_BUILD_DIR
)/php-cli
$(1)/usr
/bin
/php-cli
688 define Package
/php5-cgi
/install
689 $(INSTALL_DIR
) $(1)/usr
/bin
690 $(CP
) $(PKG_BUILD_DIR
)/php-cgi
$(1)/usr
/bin
/php-cgi
691 ln
-sf php-cgi
$(1)/usr
/bin
/php-fcgi
694 define Package
/php5-fastcgi
/install
695 $(INSTALL_DIR
) $(1)/etc
/init.d
696 $(INSTALL_BIN
) .
/files
/php.init
$(1)/etc
/init.d
/php
700 define Package
/$(1)/install
701 [ -z
"$(2)" ] ||
$(INSTALL_DIR
) $$(1)/usr
/lib
/php
703 [ -z
"$(CONFIG_PACKAGE_$(1))" ] \
704 ||
$(INSTALL_BIN
) $(PKG_BUILD_DIR
)/modules
/$$$$$$$${m}.so
$$(1)/usr
/lib
/php
/ ; \
708 $$(eval
$$(call BuildPackage
,$(1)))
711 $(eval
$(call BuildPackage
,php5
))
712 $(eval
$(call BuildPackage
,php5-cli
))
713 $(eval
$(call BuildPackage
,php5-cgi
))
714 $(eval
$(call BuildPackage
,php5-fastcgi
))
715 $(eval
$(call BuildPlugin
,php5-mod-ctype
,ctype
))
716 $(eval
$(call BuildPlugin
,php5-mod-curl
,curl
))
717 $(eval
$(call BuildPlugin
,php5-mod-fileinfo
,fileinfo
))
718 $(eval
$(call BuildPlugin
,php5-mod-dom
,dom
))
719 $(eval
$(call BuildPlugin
,php5-mod-exif
,exif
))
720 $(eval
$(call BuildPlugin
,php5-mod-ftp
,ftp
))
721 $(eval
$(call BuildPlugin
,php5-mod-gd
,gd
))
722 $(eval
$(call BuildPlugin
,php5-mod-gmp
,gmp
))
723 $(eval
$(call BuildPlugin
,php5-mod-hash
,hash
))
724 $(eval
$(call BuildPlugin
,php5-mod-iconv
,iconv
))
725 $(eval
$(call BuildPlugin
,php5-mod-json
,json
))
726 $(eval
$(call BuildPlugin
,php5-mod-ldap
,ldap
))
727 $(eval
$(call BuildPlugin
,php5-mod-mbstring
,mbstring
))
728 $(eval
$(call BuildPlugin
,php5-mod-mcrypt
,mcrypt
))
729 $(eval
$(call BuildPlugin
,php5-mod-mysql
,mysql
))
730 $(eval
$(call BuildPlugin
,php5-mod-openssl
,openssl
))
731 $(eval
$(call BuildPlugin
,php5-mod-pdo
,pdo
))
732 $(eval
$(call BuildPlugin
,php5-mod-pdo-mysql
,pdo_mysql
))
733 $(eval
$(call BuildPlugin
,php5-mod-pdo-pgsql
,pdo_pgsql
))
734 $(eval
$(call BuildPlugin
,php5-mod-pdo-sqlite
,pdo_sqlite
))
735 $(eval
$(call BuildPlugin
,php5-mod-pgsql
,pgsql
))
736 $(eval
$(call BuildPlugin
,php5-mod-session
,session
))
737 $(eval
$(call BuildPlugin
,php5-mod-soap
,soap
))
738 $(eval
$(call BuildPlugin
,php5-mod-sockets
,sockets
))
739 $(eval
$(call BuildPlugin
,php5-mod-sqlite
,sqlite
))
740 $(eval
$(call BuildPlugin
,php5-mod-sqlite3
,sqlite3
))
741 $(eval
$(call BuildPlugin
,php5-mod-tokenizer
,tokenizer
))
742 $(eval
$(call BuildPlugin
,php5-mod-xml
,xml
))
743 $(eval
$(call BuildPlugin
,php5-mod-xmlreader
,xmlreader
))
744 $(eval
$(call BuildPlugin
,php5-mod-xmlwriter
,xmlwriter
))