libosip2: version bump
[feed/telephony.git] / libs / libosip2 / Makefile
1 #
2 # Copyright (C) 2014 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:=1
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 TARGET_CFLAGS += $(FPIC)
41
42 CONFIGURE_ARGS += \
43 --enable-shared \
44 --enable-static \
45 --disable-debug \
46 --disable-trace \
47 --disable-mpatrol \
48 --disable-gprof \
49 --disable-mt \
50 --enable-pthread \
51 --enable-semaphore \
52 --disable-sysv \
53 --disable-gperf \
54 --disable-test \
55 --disable-minisize
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include
59 $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
60
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
63
64 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
65 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(1)/usr/lib/pkgconfig/
66 endef
67
68 define Package/libosip2/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
71 endef
72
73 $(eval $(call BuildPackage,libosip2))