[packages] jamvm: Bump release number, update copyright date
[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 define PECLPackage
23
24   define Package/php5-pecl-$(1)
25     $(call Package/php5-pecl/Default)
26     TITLE:=$(2)
27
28     ifneq ($(3),)
29       DEPENDS+=$(3)
30     endif
31   endef
32
33   define Package/php5-pecl-$(1)/install
34         $(INSTALL_DIR) $$(1)/usr/lib/php
35         $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
36         $(INSTALL_DIR) $$(1)/etc/php5
37         echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
38   endef
39
40 endef