2 # Copyright (C) 2011-2014 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/
13 MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
17 define Build/Configure
18 ( cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/usr/bin/phpize )
19 $(Build/Configure/Default)
23 --with-php-config=$(STAGING_DIR_HOST)/usr/bin/php-config
27 define Package/php5-pecl-$(1)
28 $(call Package/php5-pecl/Default)
36 define Package/php5-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/php5
41 echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
43 echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini