fbfe7a71c51db0d7d57fbe3915405e97d78a491d
[feed/telephony.git] / libs / spandsp / Makefile
1 #
2 # Copyright (C) 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:=spandsp
11 PKG_VERSION:=0.0.6
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.soft-switch.org/downloads/spandsp/
16 PKG_MD5SUM:=897d839516a6d4edb20397d4757a7ca3
17
18 PKG_INSTALL:=1
19 PKG_BUILD_PARALLEL:=1
20 PKG_FIXUP:=autoreconf
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libspandsp
25   SUBMENU:=Telephony
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=spandsp library
29   DEPENDS:=+libtiff
30   MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
31 endef
32
33 TARGET_CFLAGS += $(FPIC)
34
35 define Build/InstallDev
36         $(INSTALL_DIR) $(1)/usr/lib
37         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib/
38
39         $(INSTALL_DIR) $(1)/usr/include
40         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp.h $(1)/usr/include/
41
42         $(INSTALL_DIR) $(1)/usr/include/spandsp
43         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h $(1)/usr/include/spandsp/
44
45         $(INSTALL_DIR) $(1)/usr/include/spandsp/private
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h $(1)/usr/include/spandsp/private/
47
48         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
49         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc $(1)/usr/lib/pkgconfig/
50 endef
51
52 define Package/libspandsp/install
53         $(INSTALL_DIR) $(1)/usr/lib
54         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libspandsp))