telephony: use PKG_HASH instead of PKG_MD5SUM
[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:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.soft-switch.org/downloads/spandsp
16 PKG_HASH:=cc053ac67e8ac4bb992f258fd94f275a7872df959f6a87763965feabfdcc9465
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 <jiri@slachta.eu>
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))