sofia-sip: new package
FreeSWITCH 1.10.4 split out the sofia-sip library. So here's it's added as a separate package. Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
df492faca9
commit
27447dad3a
2 changed files with 97 additions and 0 deletions
86
libs/sofia-sip/Makefile
Normal file
86
libs/sofia-sip/Makefile
Normal file
|
@ -0,0 +1,86 @@
|
||||||
|
#
|
||||||
|
# Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=sofia-sip
|
||||||
|
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_URL:=https://github.com/freeswitch/sofia-sip.git
|
||||||
|
PKG_SOURCE_DATE=2020-08-03
|
||||||
|
PKG_SOURCE_VERSION:=f5d44540d32b646133f685f04cb8b6658f748714
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
PKG_MIRROR_HASH:=cfb9b6c1335160f942b72c8660091c1a7eb4ae4ac461d0531cde4f4ca056b3e4
|
||||||
|
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
PKG_FIXUP:=autoreconf
|
||||||
|
|
||||||
|
PKG_INSTALL:=1
|
||||||
|
|
||||||
|
PKG_LICENSE:=LGPL-2.1+
|
||||||
|
PKG_LICENSE_FILES:=COPYING
|
||||||
|
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/nls.mk
|
||||||
|
|
||||||
|
define Package/sofia-sip/Default
|
||||||
|
SUBMENU:=Telephony
|
||||||
|
URL:=http://sofia-sip.sourceforge.net/index.html
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/sofia-sip
|
||||||
|
$(call Package/sofia-sip/Default)
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=Sofia-SIP open-source SIP User-Agent library
|
||||||
|
ABI_VERSION:=0
|
||||||
|
DEPENDS:= \
|
||||||
|
+libopenssl \
|
||||||
|
+zlib
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/sofia-sip/description
|
||||||
|
Sofia-SIP is an open-source SIP User-Agent library, compliant with the
|
||||||
|
IETF RFC3261 specification (see the feature table). It can be used as a
|
||||||
|
building block for SIP client software for uses such as VoIP, IM, and
|
||||||
|
many other real-time and person-to-person communication services. The
|
||||||
|
primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is based
|
||||||
|
on a SIP stack developed at the Nokia Research Center. Sofia-SIP is
|
||||||
|
licensed under the LGPL.
|
||||||
|
endef
|
||||||
|
|
||||||
|
CONFIGURE_ARGS+= \
|
||||||
|
--disable-stun \
|
||||||
|
--without-doxygen \
|
||||||
|
--without-glib
|
||||||
|
|
||||||
|
define Build/InstallDev
|
||||||
|
$(INSTALL_DIR) $(1)/usr/include/sofia-sip-1.12/sofia-{sip,resolv} \
|
||||||
|
$(1)/usr/share/sofia-sip
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/include/sofia-sip-1.12/sofia-sip/*.h{,.in} \
|
||||||
|
$(1)/usr/include/sofia-sip-1.12/sofia-sip
|
||||||
|
$(INSTALL_DATA) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/include/sofia-sip-1.12/sofia-resolv/*.h \
|
||||||
|
$(1)/usr/include/sofia-sip-1.12/sofia-resolv
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.{a,so*} $(1)/usr/lib
|
||||||
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sofia-sip-ua.pc \
|
||||||
|
$(1)/usr/lib/pkgconfig
|
||||||
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/sofia-sip/{msg_parser,tag_dll}.awk \
|
||||||
|
$(1)/usr/share/sofia-sip
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/sofia-sip/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.so.$(ABI_VERSION)* \
|
||||||
|
$(1)/usr/lib
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,sofia-sip))
|
11
libs/sofia-sip/patches/01-disable-libcheck.patch
Normal file
11
libs/sofia-sip/patches/01-disable-libcheck.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -247,7 +247,7 @@ SAC_OPENSSL
|
||||||
|
SAC_TPORT
|
||||||
|
|
||||||
|
dnl Check is used for testing
|
||||||
|
-PKG_CHECK_MODULES(CHECK, check >= 0.9.4, have_check="yes", have_check="no")
|
||||||
|
+PKG_CHECK_MODULES(CHECK, we_do_not_want_check >= 0.9.4, have_check="yes", have_check="no")
|
||||||
|
AM_CONDITIONAL(HAVE_CHECK, test x"$have_check" = "xyes")
|
||||||
|
if test x"$have_check" = "xyes"; then
|
||||||
|
AC_DEFINE([HAVE_CHECK], 1, [Define to 1 if check library is available])
|
Loading…
Reference in a new issue