7a7ccf8e98736ddebe7560c69fbbecb273468956
[feed/telephony.git] / libs / bcg729 / Makefile
1 #
2 # Copyright (C) 2006-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:=bcg729
11 PKG_VERSION:=1.0.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SAVANNAH/linphone/plugins/sources
16 PKG_HASH:=1a0fbf1ff91470037e83fa67976f940ebb601e4cc525859c754f4e7ffc24c307
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL:=1
20
21 PKG_LICENSE:=GPL-2.0+
22 PKG_LICENSE_FILES:=COPYING
23 PKG_MAINTAINER:=Alex Samorukov <samm@os2.kiev.ua>
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/bcg729
28 SUBMENU:=Telephony
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=Software G729A encoder and decoder library written in C
32 URL:=http://www.linphone.org/technical-corner/bcg729.html
33 DEPENDS:=@BUILD_PATENTED
34 endef
35
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.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44 CONFIGURE_ARGS += \
45 --enable-shared \
46 --enable-static=no \
47 --disable-msplugin
48
49 define Build/InstallDev
50 $(INSTALL_DIR) $(1)/usr/include
51 $(CP) -R $(PKG_INSTALL_DIR)/usr/include/bcg729 $(1)/usr/include/
52 $(INSTALL_DIR) $(1)/usr/lib
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib/
54 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libbcg729.pc $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/bcg729/install
59 $(INSTALL_DIR) $(1)/usr/lib
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libbcg729.so* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,bcg729))