bcg729, asterisk-codec-g729: Introduce support for codec g729
[feed/telephony.git] / libs / bcg729 / Makefile
1
2 # Copyright (C) 2006-2014 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:=bcg729
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/
16 PKG_MD5SUM:=45e127a9a309aff94d3262d97b5aeab0
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/bcg729
24   SUBMENU:=Telephony
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=Software G729A encoder and decoder library written in C
28   URL:=http://www.linphone.org/technical-corner/bcg729.html
29   DEPENDS:=@BUILD_PATENTED
30   MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
31 endef
32
33 define Package/bcg729/description
34  Bcg729 is a software G729A encoder and decoder library written in C, developed
35  by Belledonne Communications, the company supporting the Linphone project.
36  It was written from scratch and is NOT a derivative work of ITU reference
37  source code in any kind.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41 CONFIGURE_ARGS += \
42         --enable-shared \
43         --enable-static
44
45 define Package/bcg729/install
46         $(INSTALL_DIR) $(1)/usr/lib
47         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib/
48 endef
49
50 define Build/InstallDev
51         $(INSTALL_DIR) $(1)/usr/include
52         $(CP) -R $(PKG_INSTALL_DIR)/usr/include/bcg729 $(1)/usr/include/
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.{a,so*} $(1)/usr/lib/
55         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
56         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbcg729.pc $(1)/usr/lib/pkgconfig/
57 endef
58
59 $(eval $(call BuildPackage,bcg729))