From: Daniel Golle Date: Sat, 26 Sep 2015 22:13:50 +0000 (+0200) Subject: libpri: add new package X-Git-Url: http://git.openwrt.org/?p=feed%2Ftelephony.git;a=commitdiff_plain;h=185e29308232f57e68003dbb5fe2ac74e5f4aec4 libpri: add new package Signed-off-by: Daniel Golle --- diff --git a/libs/libpri/Makefile b/libs/libpri/Makefile new file mode 100644 index 0000000..079f4fb --- /dev/null +++ b/libs/libpri/Makefile @@ -0,0 +1,54 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libpri +PKG_VERSION:=1.4.15 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://downloads.asterisk.org/pub/telephony/libpri/ +PKG_MD5SUM:=206fbcf014ad85bf6613f169ca425e7f +PKG_MAINTAINER:=Daniel Golle + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libpri + SECTION:=libs + CATEGORY:=Libraries + TITLE:=libpri Primary Rate ISDN implementation + URL:=http://www.asterisk.org/ + DEPENDS:=+dahdi-tools-libtonezone +endef + +define Package/libpri/description + libpri is a C implementation of the Primary Rate ISDN specification. It was + based on the Bellcore specification SR-NWT-002343 for National ISDN. As of + May 12, 2001, it has been tested work with NI-2, Nortel DMS-100, and + Lucent 5E Custom protocols on switches from Nortel and Lucent. +endef + +define Build/Configure +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include + $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.a $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.so* $(1)/usr/lib/ +endef + +define Package/libpri/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpri*.so.* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libpri))