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