From: Sebastian Kemper Date: Sat, 23 May 2020 18:00:18 +0000 (+0200) Subject: freeswitch-stable-mod-bcg729: move folder X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b282a782ce324e1b45218ab291de9b22cf8e112c;p=feed%2Ftelephony.git freeswitch-stable-mod-bcg729: move folder Signed-off-by: Sebastian Kemper --- diff --git a/net/freeswitch-mod-bcg729/Makefile b/net/freeswitch-mod-bcg729/Makefile new file mode 100644 index 0000000..1bb33be --- /dev/null +++ b/net/freeswitch-mod-bcg729/Makefile @@ -0,0 +1,81 @@ +# +# Copyright (C) 2017 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=freeswitch-stable-mod-bcg729 + +PKG_VERSION:=20170629 +PKG_RELEASE:=2 +PKG_MAINTAINER:=Sebastian Kemper + +PKG_LICENSE:=MPL-1.1 +PKG_LICENSE_FILES:=LICENSE + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=https://github.com/xadhoom/mod_bcg729.git +PKG_SOURCE_PROTO:=git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=686eb06d4a395d94c364efff4b63579af76ebec7 +PKG_MIRROR_HASH:=adfdce835bad865b966ed3384a17f48279b422e63b0f49f3eb892258994cb62d + +include $(INCLUDE_DIR)/package.mk + +BCG729_MOD_DIR:=/usr/lib/freeswitch/mod + +BCG729_CFLAGS:=\ + $(FPIC) \ + $(TARGET_CFLAGS) \ + -fno-exceptions \ + -Wall \ + -std=c99 \ + -pedantic + +BCG729_INCLUDES:= \ + $(TARGET_CPPFLAGS) \ + -I$(STAGING_DIR)/usr/include/bcg729 \ + -I$(STAGING_DIR)/usr/include/freeswitch + +BCG729_LDFLAGS:=-lm -Wl,-shared -lbcg729 -Wl,-Bdynamic + +define Package/$(PKG_NAME) + TITLE:=bcg729 module + SUBMENU:=Telephony + SECTION:=net + CATEGORY:=Network + URL:=https://github.com/xadhoom/mod_bcg729 + DEPENDS:=freeswitch-stable +bcg729 +endef + +define Package/$(PKG_NAME)/description +FreeSWITCH G.729 module using the opensource bcg729 implementation by +Belledonne Communications. +endef + +define Package/$(PKG_NAME)/install + $(INSTALL_DIR) $(1)$(BCG729_MOD_DIR) + $(INSTALL_BIN) $(PKG_BUILD_DIR)/mod_bcg729.so $(1)$(BCG729_MOD_DIR) +endef + +define Build/Compile + cd $(PKG_BUILD_DIR) && \ + $(TARGET_CC) \ + $(BCG729_CFLAGS) \ + $(BCG729_INCLUDES) \ + -c mod_bcg729.c && \ + $(TARGET_CC) \ + $(BCG729_CFLAGS) \ + $(BCG729_INCLUDES) \ + -shared \ + -Xlinker \ + -x \ + -o mod_bcg729.so \ + mod_bcg729.o \ + $(BCG729_LDFLAGS) +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/net/freeswitch-stable-mod-bcg729/Makefile b/net/freeswitch-stable-mod-bcg729/Makefile deleted file mode 100644 index 1bb33be..0000000 --- a/net/freeswitch-stable-mod-bcg729/Makefile +++ /dev/null @@ -1,81 +0,0 @@ -# -# Copyright (C) 2017 OpenWrt.org -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# - -include $(TOPDIR)/rules.mk - -PKG_NAME:=freeswitch-stable-mod-bcg729 - -PKG_VERSION:=20170629 -PKG_RELEASE:=2 -PKG_MAINTAINER:=Sebastian Kemper - -PKG_LICENSE:=MPL-1.1 -PKG_LICENSE_FILES:=LICENSE - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz -PKG_SOURCE_URL:=https://github.com/xadhoom/mod_bcg729.git -PKG_SOURCE_PROTO:=git -PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_SOURCE_VERSION:=686eb06d4a395d94c364efff4b63579af76ebec7 -PKG_MIRROR_HASH:=adfdce835bad865b966ed3384a17f48279b422e63b0f49f3eb892258994cb62d - -include $(INCLUDE_DIR)/package.mk - -BCG729_MOD_DIR:=/usr/lib/freeswitch/mod - -BCG729_CFLAGS:=\ - $(FPIC) \ - $(TARGET_CFLAGS) \ - -fno-exceptions \ - -Wall \ - -std=c99 \ - -pedantic - -BCG729_INCLUDES:= \ - $(TARGET_CPPFLAGS) \ - -I$(STAGING_DIR)/usr/include/bcg729 \ - -I$(STAGING_DIR)/usr/include/freeswitch - -BCG729_LDFLAGS:=-lm -Wl,-shared -lbcg729 -Wl,-Bdynamic - -define Package/$(PKG_NAME) - TITLE:=bcg729 module - SUBMENU:=Telephony - SECTION:=net - CATEGORY:=Network - URL:=https://github.com/xadhoom/mod_bcg729 - DEPENDS:=freeswitch-stable +bcg729 -endef - -define Package/$(PKG_NAME)/description -FreeSWITCH G.729 module using the opensource bcg729 implementation by -Belledonne Communications. -endef - -define Package/$(PKG_NAME)/install - $(INSTALL_DIR) $(1)$(BCG729_MOD_DIR) - $(INSTALL_BIN) $(PKG_BUILD_DIR)/mod_bcg729.so $(1)$(BCG729_MOD_DIR) -endef - -define Build/Compile - cd $(PKG_BUILD_DIR) && \ - $(TARGET_CC) \ - $(BCG729_CFLAGS) \ - $(BCG729_INCLUDES) \ - -c mod_bcg729.c && \ - $(TARGET_CC) \ - $(BCG729_CFLAGS) \ - $(BCG729_INCLUDES) \ - -shared \ - -Xlinker \ - -x \ - -o mod_bcg729.so \ - mod_bcg729.o \ - $(BCG729_LDFLAGS) -endef - -$(eval $(call BuildPackage,$(PKG_NAME)))