2 # Copyright (C) 2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=freeswitch-mod-bcg729
14 PKG_MAINTAINER
:=Sebastian Kemper
<sebastian_ml@gmx.net
>
17 PKG_LICENSE_FILES
:=LICENSE
19 PKG_SOURCE
:=freeswitch-mod-bcg729-
$(PKG_VERSION
).
tar.xz
20 PKG_SOURCE_URL
:=https
://github.com
/xadhoom
/mod_bcg729.git
22 PKG_SOURCE_SUBDIR
:=freeswitch-mod-bcg729-
$(PKG_VERSION
)
23 PKG_SOURCE_VERSION
:=686eb06d4a395d94c364efff4b63579af76ebec7
24 PKG_MIRROR_HASH
:=efc9421223bba3ba7dd127531aa6887c39ed42d5fb8c0b0c67b15f3c98134b0a
26 include $(INCLUDE_DIR
)/package.mk
28 BCG729_MOD_DIR
:=/usr
/lib
/freeswitch
/mod
40 -I
$(STAGING_DIR
)/usr
/include/bcg729 \
41 -I
$(STAGING_DIR
)/usr
/include/freeswitch
43 BCG729_LDFLAGS
:=-lm
-Wl
,-shared
-lbcg729
-Wl
,-Bdynamic
45 define Package
/freeswitch-mod-bcg729
50 URL
:=https
://github.com
/xadhoom
/mod_bcg729
51 DEPENDS
:=freeswitch
+bcg729
54 define Package
/freeswitch-mod-bcg729
/description
55 FreeSWITCH G
.729 module using the opensource bcg729 implementation by
56 Belledonne Communications.
59 define Package
/freeswitch-mod-bcg729
/install
60 $(INSTALL_DIR
) $(1)$(BCG729_MOD_DIR
)
61 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/mod_bcg729.so
$(1)$(BCG729_MOD_DIR
)
65 cd
$(PKG_BUILD_DIR
) && \
81 $(eval
$(call BuildPackage
,freeswitch-mod-bcg729
))