treewide: refresh hashes after move to use ZSTD as default
[feed/telephony.git] / net / freeswitch-mod-bcg729 / Makefile
1 #
2 # Copyright (C) 2017 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=freeswitch-mod-bcg729
11
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
14
15 PKG_LICENSE:=MPL-1.1
16 PKG_LICENSE_FILES:=LICENSE
17
18 PKG_SOURCE_URL:=https://github.com/xadhoom/mod_bcg729.git
19 PKG_SOURCE_PROTO:=git
20 PKG_SOURCE_VERSION:=686eb06d4a395d94c364efff4b63579af76ebec7
21 PKG_SOURCE_DATE:=2017-06-29
22 PKG_MIRROR_HASH:=7b9ae6e5ce983d534f9e02bdc3b8d2e77c8d773e25974f6ad65ac1319fff07a4
23
24 include $(INCLUDE_DIR)/package.mk
25
26 BCG729_MOD_DIR:=/usr/lib/freeswitch/mod
27
28 BCG729_CFLAGS:=\
29 $(FPIC) \
30 $(TARGET_CFLAGS) \
31 -fno-exceptions \
32 -Wall \
33 -std=c99 \
34 -pedantic
35
36 BCG729_INCLUDES:= \
37 $(TARGET_CPPFLAGS) \
38 -I$(STAGING_DIR)/usr/include/bcg729 \
39 -I$(STAGING_DIR)/usr/include/freeswitch
40
41 BCG729_LDFLAGS:=-lm -Wl,-shared -lbcg729 -Wl,-Bdynamic
42
43 define Package/freeswitch-mod-bcg729
44 TITLE:=bcg729 module
45 SUBMENU:=Telephony
46 SECTION:=net
47 CATEGORY:=Network
48 URL:=https://github.com/xadhoom/mod_bcg729
49 DEPENDS:=freeswitch +bcg729
50 endef
51
52 define Package/freeswitch-mod-bcg729/description
53 FreeSWITCH G.729 module using the opensource bcg729 implementation by
54 Belledonne Communications.
55 endef
56
57 define Package/freeswitch-mod-bcg729/install
58 $(INSTALL_DIR) $(1)$(BCG729_MOD_DIR)
59 $(INSTALL_BIN) $(PKG_BUILD_DIR)/mod_bcg729.so $(1)$(BCG729_MOD_DIR)
60 endef
61
62 define Build/Compile
63 cd $(PKG_BUILD_DIR) && \
64 $(TARGET_CC) \
65 $(BCG729_CFLAGS) \
66 $(BCG729_INCLUDES) \
67 -c mod_bcg729.c && \
68 $(TARGET_CC) \
69 $(BCG729_CFLAGS) \
70 $(BCG729_INCLUDES) \
71 -shared \
72 -Xlinker \
73 -x \
74 -o mod_bcg729.so \
75 mod_bcg729.o \
76 $(BCG729_LDFLAGS)
77 endef
78
79 $(eval $(call BuildPackage,freeswitch-mod-bcg729))