From a2e24be6e6a8bbd25bd86ed46cc0dfa0b1f2c1e5 Mon Sep 17 00:00:00 2001 From: Jiri Slachta Date: Tue, 14 May 2013 18:56:54 +0200 Subject: [PATCH] Add asterisk18-pbx-lua package. Signed-off-by: Jiri Slachta --- asterisk-1.8.x/Makefile | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/asterisk-1.8.x/Makefile b/asterisk-1.8.x/Makefile index ab95160..25c1ffb 100644 --- a/asterisk-1.8.x/Makefile +++ b/asterisk-1.8.x/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2008-2012 OpenWrt.org +# Copyright (C) 2013 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=asterisk18 PKG_VERSION:=1.8.10.1 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_SOURCE:=asterisk-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/asterisk/releases/ @@ -245,6 +245,17 @@ $(call Package/asterisk18/Default/description) This package provides ODBC support for Asterisk. endef +define Package/asterisk18-pbx-lua +$(call Package/asterisk18/Default) + TITLE:=Lua support + DEPENDS:= asterisk18 +libpthread +libc +liblua +endef + +define Package/asterisk18-pbx-lua/description +$(call Package/asterisk18/Default/description) + This package provides Lua resources for Asterisk. +endef + ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-app-meetme),) CONFIGURE_ARGS+= \ --with-dahdi="$(STAGING_DIR)/usr" @@ -306,6 +317,15 @@ else --without-srtp endif +ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk18-pbx-lua),) + CONFIGURE_ARGS+= \ + --with-lua="$(STAGING_DIR)/usr" + TARGET_LDFLAGS+=-ldl -lcrypt +else + CONFIGURE_ARGS+= \ + --without-pbx-lua +endif + CONFIGURE_ARGS+= \ --without-curses \ --with-gsm=internal \ @@ -611,6 +631,13 @@ define Package/asterisk18-odbc/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/*odbc*.so $(1)/usr/lib/asterisk/modules/ endef +define Package/asterisk18-pbx-lua/install + $(INSTALL_DIR) $(1)/etc/asterisk + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/asterisk/extensions.lua $(1)/etc/asterisk/ + $(INSTALL_DIR) $(1)/usr/lib/asterisk/modules + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/pbx_lua.so $(1)/usr/lib/asterisk/modules/ +endef + define Buildasterisk18ModuleTemplate define Package/asterisk18-$(subst _,-,$(1)) @@ -642,6 +669,7 @@ $(eval $(call BuildPackage,asterisk18-res-musiconhold)) $(eval $(call BuildPackage,asterisk18-chan-gtalk)) $(eval $(call BuildPackage,asterisk18-chan-mobile)) $(eval $(call BuildPackage,asterisk18-odbc)) +$(eval $(call BuildPackage,asterisk18-pbx-lua)) $(eval $(call BuildPackage,asterisk18-res-fax)) $(eval $(call BuildPackage,asterisk18-res-fax-spandsp)) $(eval $(call BuildPackage,asterisk18-res-timing-timerfd)) -- 2.30.2