treewide: replace AUTORELEASE with real PKG_RELEASE
[feed/telephony.git] / libs / libosip2 / Makefile
1 #
2 # Copyright (C) 2014 - 2018 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:=libosip2
11 PKG_VERSION:=5.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/osip
16 PKG_HASH:=f4725916c22cf514969efb15c3c207233d64739383f7d42956038b78f6cae8c8
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 PKG_LICENSE:=LGPL-2.1+
23 PKG_LICENSE_FILES:=COPYING
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libosip2
28 SUBMENU:=Telephony
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=GNU oSIP library
32 URL:=http://www.gnu.org/software/osip/
33 ABI_VERSION:=15
34 DEPENDS:=+librt
35 endef
36
37 define Package/libosip2/description
38 GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
39 endef
40
41 # toolchain __arc__ define conflicts with libosip2 source
42 TARGET_CFLAGS += $(if $(CONFIG_arc),-U__arc__)
43
44 CONFIGURE_ARGS += \
45 --enable-shared \
46 --enable-static \
47 --disable-silent-rules \
48 --disable-trace \
49 --disable-mpatrol \
50 --disable-gprof \
51 --disable-mt \
52 --enable-pthread \
53 --enable-semaphore \
54 --disable-gperf \
55 --disable-test \
56 --disable-minisize
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
61
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
64
65 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
66 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(1)/usr/lib/pkgconfig/
67 endef
68
69 define Package/libosip2/install
70 $(INSTALL_DIR) $(1)/usr/lib
71 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.$(ABI_VERSION)* $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libosip2))