2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 define Package/php7-pecl/Default
10 URL:=http://pecl.php.net/
15 $(Build/Prepare/Default)
16 ( cd $(PKG_BUILD_DIR); $(STAGING_DIR)/usr/bin/phpize7 )
20 ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no)
23 --with-php-config=$(STAGING_DIR)/usr/bin/php7-config
27 define Package/php7-pecl-$(1)
28 $(call Package/php7-pecl/Default)
36 define Package/php7-pecl-$(1)/install
37 $(INSTALL_DIR) $$(1)/usr/lib/php
38 $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
39 $(INSTALL_DIR) $$(1)/etc/php7
41 echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini
43 echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php7/$(if $(4),$(4),20)_$(subst -,_,$(1)).ini