2 # Copyright (C) 2011-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 define Package
/php5-pecl
/Default
12 URL
:=http
://pecl.php.net
/
17 $(Build
/Prepare
/Default
)
18 ( cd
$(PKG_BUILD_DIR
); $(STAGING_DIR
)/host
/usr
/bin
/phpize
)
22 --with-php-config
=$(STAGING_DIR
)/host
/usr
/bin
/php-config
26 define Package
/php5-pecl-
$(1)
27 $(call Package
/php5-pecl
/Default
)
35 define Package
/php5-pecl-
$(1)/install
36 $(INSTALL_DIR
) $$(1)/usr
/lib
/php
37 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/modules
/$(subst -,_
,$(1)).so
$$(1)/usr
/lib
/php
/
38 $(INSTALL_DIR
) $$(1)/etc
/php5
40 echo
"zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc
/php5
/$(subst -,_
,$(1)).ini
42 echo
"extension=$(subst -,_,$(1)).so" > $$(1)/etc
/php5
/$(subst -,_
,$(1)).ini