Commit dacfc60c authored by Sukru Senli's avatar Sukru Senli
Browse files

asterisk: 18.4.0

parent 6147a8b2
......@@ -8,40 +8,25 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=asterisk
PKG_VERSION:=18.2.2
PKG_VERSION:=18.4.0
PKG_RELEASE:=1
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_VERSION:=83b635235ea0b22c4fa73a17c0ef5447499872d2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/asterisk.git
PKG_SOURCE:=asterisk-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/asterisk.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=f750ae5b85377b25b5997f083f6d0045c97bb866
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=asterisk-$(PKG_VERSION)
PKG_MIRROR_HASH:=skip
endif
PKG_BUILD_DIR=$(BUILD_DIR)/asterisk-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=libxml2/host
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING LICENSE
PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_mips),y)
PLATFORM:=BROADCOM
else ifeq ($(CONFIG_TARGET_iopsys_linksys),y)
PLATFORM:=BROADCOM
else ifeq ($(CONFIG_TARGET_intel_mips),y)
PLATFORM:=INTEL
else ifeq ($(CONFIG_TARGET_iopsys_ramips),y)
ifeq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),y)
PLATFORM:=BROADCOM
else ifeq ($(CONFIG_TARGET_iopsys_econet),y)
PLATFORM:=ECONET
else
$(info (UNEXPECTED CONFIG TARGET))
PLATFORM:=BROADCOM
endif
MENUSELECT_CATEGORIES:= \
......@@ -539,11 +524,7 @@ $(foreach m,$(AST_EMB_MODULES),$(call Package/$(PKG_NAME)/install/module,$(1),$(
$(INSTALL_DIR) $(1)/etc/asterisk
$(RM) -f $(1)/etc/asterisk/*
$(CP) ./files/iopsys/* $(1)/
ifeq ($(PLATFORM),INTEL)
mv $(1)/etc/asterisk/tapi.conf $(1)/etc/asterisk/chan_telephony.conf
$(RM) $(1)/etc/asterisk/brcm.conf
$(RM) $(1)/etc/asterisk/econet.conf
else ifeq ($(PLATFORM),BROADCOM)
ifeq ($(PLATFORM),BROADCOM)
mv $(1)/etc/asterisk/brcm.conf $(1)/etc/asterisk/chan_telephony.conf
$(RM) $(1)/etc/asterisk/tapi.conf
$(RM) $(1)/etc/asterisk/econet.conf
......@@ -724,12 +705,6 @@ AST_MENUSELECT_OPTS = \
--without-newt \
--without-curses
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
rsync -r ~/git/asterisk/ $(PKG_BUILD_DIR)/
endef
endif
define Build/menuselect
CC="$(HOSTCC)" \
CFLAGS="$(HOST_CFLAGS)" \
......@@ -787,9 +762,9 @@ define Build/Compile
endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/asterisk/include/asterisk/
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk/include/asterisk/
$(CP) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/asterisk/include/
$(INSTALL_DIR) $(1)/usr/include/asterisk
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/asterisk/*.h $(1)/usr/include/asterisk/
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/asterisk.h $(1)/usr/include/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
......
......@@ -23,6 +23,6 @@
printf "$$x " ; \
- for i in `find $$x -name '*.c'`; do \
+ for i in `find $$x -name '*.c' | LC_ALL=C sort`; do \
$(AWK) -f build_tools/get_documentation $$i >> $@ ; \
done ; \
done
MODULEINFO=$$($(AWK) -f build_tools/get_moduleinfo $$i) ; \
if [ -n "$$MODULEINFO" ] ; \
then \
--- a/configure.ac
+++ b/configure.ac
@@ -1213,7 +1213,7 @@ if test "${ac_cv_have_variable_fdset}x"
@@ -1205,7 +1205,7 @@ if test "${ac_cv_have_variable_fdset}x"
fi
AC_MSG_CHECKING([if we have usable eventfd support])
......
--- a/configure.ac
+++ b/configure.ac
@@ -2567,7 +2567,7 @@ if test -z "$__opus_include" -o x"$__opu
@@ -2555,7 +2555,7 @@ if test -z "$__opus_include" -o x"$__opu
fi
AST_EXT_LIB_CHECK([OPUSFILE], [opusfile], [op_open_callbacks], [opus/opusfile.h], [], [$__opus_include])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment