telephony: use https:// PKG_SOURCE_URLs where possible
[feed/telephony.git] / libs / libpri / Makefile
1 #
2 # Copyright (C) 2015 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:=libpri
11 PKG_VERSION:=1.6.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://downloads.asterisk.org/pub/telephony/libpri/releases
16 PKG_HASH:=7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6
17 PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
18
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libpri
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=libpri Primary Rate ISDN implementation
27 URL:=http://www.asterisk.org/
28 DEPENDS:=+dahdi-tools-libtonezone
29 endef
30
31 define Package/libpri/description
32 libpri is a C implementation of the Primary Rate ISDN specification. It was
33 based on the Bellcore specification SR-NWT-002343 for National ISDN. As of
34 May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and
35 Lucent 5E Custom protocols on switches from Nortel and Lucent.
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include
43 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.a $(1)/usr/lib/
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.so* $(1)/usr/lib/
47 endef
48
49 define Package/libpri/install
50 $(INSTALL_DIR) $(1)/usr/lib
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.so.* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libpri))