Merge pull request #588 from micmac1/18.06AST
[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.0.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/osip
16 PKG_HASH:=18a13c954f7297978e7bf1a0cdadde7c531e519d61a045dae304e054f3b2df03
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 DEPENDS:=+librt
34 endef
35
36 define Package/libosip2/description
37 GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
38 endef
39
40 # toolchain __arc__ define conflicts with libosip2 source
41 TARGET_CFLAGS += $(if $(CONFIG_arc),-U__arc__)
42
43 CONFIGURE_ARGS += \
44 --enable-shared \
45 --enable-static \
46 --disable-debug \
47 --disable-trace \
48 --disable-mpatrol \
49 --disable-gprof \
50 --disable-mt \
51 --enable-pthread \
52 --enable-semaphore \
53 --disable-sysv \
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* $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libosip2))