php7: update to 7.0.12
[feed/packages.git] / lang / php5 / pecl.mk
1 #
2 # Copyright (C) 2011-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 define Package/php5-pecl/Default
9 SUBMENU:=PHP
10 SECTION:=lang
11 CATEGORY:=Languages
12 URL:=http://pecl.php.net/
13 DEPENDS:=php5
14 endef
15
16 define Build/Prepare
17 $(Build/Prepare/Default)
18 ( cd $(PKG_BUILD_DIR); $(STAGING_DIR)/host/usr/bin/phpize )
19 endef
20
21 CONFIGURE_ARGS+= \
22 --with-php-config=$(STAGING_DIR)/host/usr/bin/php-config
23
24 define PECLPackage
25
26 define Package/php5-pecl-$(1)
27 $(call Package/php5-pecl/Default)
28 TITLE:=$(2)
29
30 ifneq ($(3),)
31 DEPENDS+=$(3)
32 endif
33 endef
34
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
39 ifeq ($(4),zend)
40 echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
41 else
42 echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
43 endif
44 endef
45
46 endef