Update a few of the PKG_LICENSE tags to be more accurate
[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 PKG_LICENSE:=LGPL-2.1 GPL-2.0
23 PKG_LICENSE_FILES:=COPYING
24 PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/libspandsp
29   SUBMENU:=Telephony
30   SECTION:=libs
31   CATEGORY:=Libraries
32   TITLE:=spandsp library
33   DEPENDS:=+libtiff
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/InstallDev
39         $(INSTALL_DIR) $(1)/usr/lib
40         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp* $(1)/usr/lib/
41
42         $(INSTALL_DIR) $(1)/usr/include
43         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp.h $(1)/usr/include/
44
45         $(INSTALL_DIR) $(1)/usr/include/spandsp
46         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/*.h $(1)/usr/include/spandsp/
47
48         $(INSTALL_DIR) $(1)/usr/include/spandsp/private
49         $(CP) $(PKG_INSTALL_DIR)/usr/include/spandsp/private/*.h $(1)/usr/include/spandsp/private/
50
51         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spandsp.pc $(1)/usr/lib/pkgconfig/
53 endef
54
55 define Package/libspandsp/install
56         $(INSTALL_DIR) $(1)/usr/lib
57         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspandsp*so* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libspandsp))