2 # Copyright (C) 2006-2018 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.linphone.org
/releases
/sources
/bcg729
16 PKG_HASH
:=1a0fbf1ff91470037e83fa67976f940ebb601e4cc525859c754f4e7ffc24c307
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Alex Samorukov
<samm@os2.kiev.ua
>
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
32 TITLE
:=Software G729A encoder and decoder library written in C
33 URL
:=http
://www.linphone.org
/technical-corner
/bcg729.html
36 define Package
/bcg729
/description
37 Bcg729 is a software G729A encoder and decoder library written in C
, developed
38 by Belledonne Communications
, the company supporting the Linphone project.
39 It was written from scratch and is NOT a derivative work of ITU reference
40 source code in any kind.
43 # Otherwise spandsp ignores OpenWrt's CPPFLAGS
44 TARGET_CFLAGS
+= $(TARGET_CPPFLAGS
)
47 -DCMAKE_VERBOSE_MAKEFILE
=TRUE \
52 define Build
/InstallDev
53 $(INSTALL_DIR
) $(1)/usr
/include/bcg729
54 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/bcg729
/*.h
$(1)/usr
/include/bcg729
55 $(INSTALL_DIR
) $(1)/usr
/lib
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbcg729.so
* $(1)/usr
/lib
/
57 $(INSTALL_DIR
) $(1)/usr
/lib
/cmake
/Bcg729
58 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/share
/Bcg729
/cmake
/*.cmake
$(1)/usr
/lib
/cmake
/Bcg729
61 define Package
/bcg729
/install
62 $(INSTALL_DIR
) $(1)/usr
/lib
63 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libbcg729.so
* $(1)/usr
/lib
/
66 $(eval
$(call BuildPackage
,bcg729
))