spandsp: put back accidentally missed header files
[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   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=spandsp library
28   DEPENDS:=+libtiff
29   MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
30 endef
31
32 TARGET_CFLAGS += $(FPIC)
33
34 define Build/InstallDev
35         $(INSTALL_DIR) $(1)/usr/lib
36         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib/
37
38         $(INSTALL_DIR) $(1)/usr/include
39         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp.h $(1)/usr/include/
40
41         $(INSTALL_DIR) $(1)/usr/include/spandsp
42         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h $(1)/usr/include/spandsp/
43
44         $(INSTALL_DIR) $(1)/usr/include/spandsp/private
45         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h $(1)/usr/include/spandsp/private/
46
47         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
48         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc $(1)/usr/lib/pkgconfig/
49 endef
50
51 define Package/libspandsp/install
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libspandsp))