[packages] php5: upgrade to 5.4.27
[packages.git] / lang / php5 / pecl.mk
1 #
2 # Copyright (C) 2011 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   MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
14   DEPENDS:=php5
15 endef
16
17 define Build/Configure
18         ( cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/usr/bin/phpize )
19         $(Build/Configure/Default)
20 endef
21
22 CONFIGURE_ARGS+= \
23         --with-php-config=$(STAGING_DIR_HOST)/usr/bin/php-config
24
25 define PECLPackage
26
27   define Package/php5-pecl-$(1)
28     $(call Package/php5-pecl/Default)
29     TITLE:=$(2)
30
31     ifneq ($(3),)
32       DEPENDS+=$(3)
33     endif
34   endef
35
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
40         echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
41   endef
42
43 endef