X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=lang%2Fphp5%2Fpecl.mk;fp=lang%2Fphp5%2Fpecl.mk;h=e1b98196377f3d59234b213203b6d864442da776;hb=67cb8d5c4d436dd49d2916c53f55099559b86abc;hp=6bf1928f5afdb0c47620fd3e6c3bf9346b35a4a6;hpb=23a0155db22f1cd99597c95cf32aa6671e1ef3b5;p=packages.git diff --git a/lang/php5/pecl.mk b/lang/php5/pecl.mk index 6bf1928f5..e1b981963 100644 --- a/lang/php5/pecl.mk +++ b/lang/php5/pecl.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 OpenWrt.org +# Copyright (C) 2011-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -37,7 +37,11 @@ define PECLPackage $(INSTALL_DIR) $$(1)/usr/lib/php $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/ $(INSTALL_DIR) $$(1)/etc/php5 + ifeq ($(4),zend) + echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini + else echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini + endif endef endef