asterisk-1.8.x: update to version 1.8.31.1
[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:=4.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/osip
16 PKG_MD5SUM:=756423628683c07f817432f046a26516
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libosip2
25   SUBMENU:=Telephony
26   SECTION:=libs
27   CATEGORY:=Libraries
28   TITLE:=GNU oSIP library
29   URL:=http://www.gnu.org/software/osip/
30   DEPENDS:=+librt
31 endef
32
33 define Package/libosip2/description
34  GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
35 endef
36
37 TARGET_CFLAGS += $(FPIC)
38
39 CONFIGURE_ARGS += \
40         --enable-shared \
41         --enable-static \
42         --disable-debug \
43         --disable-trace \
44         --disable-mpatrol \
45         --disable-gprof \
46         --disable-mt \
47         --enable-pthread \
48         --enable-semaphore \
49         --disable-sysv \
50         --disable-gperf \
51         --disable-test \
52         --disable-minisize 
53
54 define Build/InstallDev
55         $(INSTALL_DIR) $(1)/usr/include
56         $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
57
58         $(INSTALL_DIR) $(1)/usr/lib
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
60
61         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(1)/usr/lib/pkgconfig/
63 endef
64
65 define Package/libosip2/install
66         $(INSTALL_DIR) $(1)/usr/lib
67         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
68 endef
69
70 $(eval $(call BuildPackage,libosip2))