sofia-sip: bump to 1.13.9
[feed/telephony.git] / libs / sofia-sip / Makefile
1 #
2 # Copyright (C) 2020 Sebastian Kemper <sebastian_ml@gmx.net>
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:=sofia-sip
11
12 PKG_VERSION:=1.13.9
13 PKG_RELEASE:=$(AUTORELEASE)
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=https://codeload.github.com/freeswitch/$(PKG_NAME)/tar.gz/v${PKG_VERSION}?
17 PKG_HASH:=3e7bfe9345e7d196bb13cf2c6e758cec8d959f1b9dbbb3bd5459b004f6f65c6c
18
19 # sofia-sip adds a version to include path
20 # need to update this when the version changes
21 VERSION_EQUIVALENT:=1.13
22
23 PKG_BUILD_PARALLEL:=1
24
25 PKG_FIXUP:=autoreconf
26
27 PKG_INSTALL:=1
28
29 PKG_LICENSE:=LGPL-2.1+
30 PKG_LICENSE_FILES:=COPYING
31 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
32
33 include $(INCLUDE_DIR)/package.mk
34 include $(INCLUDE_DIR)/nls.mk
35
36 define Package/sofia-sip/Default
37 SUBMENU:=Telephony
38 URL:=http://sofia-sip.sourceforge.net/index.html
39 endef
40
41 define Package/sofia-sip
42 $(call Package/sofia-sip/Default)
43 SECTION:=libs
44 CATEGORY:=Libraries
45 TITLE:=Sofia-SIP open-source SIP User-Agent library
46 ABI_VERSION:=0
47 DEPENDS:= \
48 +libopenssl \
49 +zlib
50 endef
51
52 define Package/sofia-sip/description
53 Sofia-SIP is an open-source SIP User-Agent library, compliant with the
54 IETF RFC3261 specification (see the feature table). It can be used as a
55 building block for SIP client software for uses such as VoIP, IM, and
56 many other real-time and person-to-person communication services. The
57 primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is based
58 on a SIP stack developed at the Nokia Research Center. Sofia-SIP is
59 licensed under the LGPL.
60 endef
61
62 CONFIGURE_ARGS+= \
63 --disable-stun \
64 --without-doxygen \
65 --without-glib
66
67 define Build/InstallDev
68 $(INSTALL_DIR) $(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-{sip,resolv} \
69 $(1)/usr/share/sofia-sip
70 $(INSTALL_DATA) \
71 $(PKG_INSTALL_DIR)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-sip/*.h{,.in} \
72 $(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-sip
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-resolv/*.h \
75 $(1)/usr/include/sofia-sip-$(VERSION_EQUIVALENT)/sofia-resolv
76 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.{a,so*} $(1)/usr/lib
78 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sofia-sip-ua.pc \
79 $(1)/usr/lib/pkgconfig
80 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/sofia-sip/{msg_parser,tag_dll}.awk \
81 $(1)/usr/share/sofia-sip
82 endef
83
84 define Package/sofia-sip/install
85 $(INSTALL_DIR) $(1)/usr/lib
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsofia-sip-ua.so.$(ABI_VERSION)* \
87 $(1)/usr/lib
88 endef
89
90 $(eval $(call BuildPackage,sofia-sip))