Update libosip2 to 3.1.0 (#3599)
[openwrt/svn-archive/archive.git] / libs / libosip2 / Makefile
1 #
2 # Copyright (C) 2006,2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libosip2
12 PKG_VERSION:=3.1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/osip
17 PKG_MD5SUM:=7eb305608256ac2a7a27b66ce52627c8
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libosip2
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=GNU oSIP library
27 URL:=http://www.gnu.org/software/osip/
28 DEPENDS:=+libpthread
29 endef
30
31 define Package/libosip2description
32 GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
33 endef
34
35 TARGET_CFLAGS += $(FPIC)
36
37 CONFIGURE_ARGS+= \
38 --enable-shared \
39 --enable-static \
40 --disable-debug \
41 --disable-trace \
42 --enable-pthread \
43 --enable-semaphore \
44 --enable-ntimer \
45
46 define Build/Compile
47 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
48 endef
49
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
53 mkdir -p $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
55 mkdir -p $(1)/usr/lib/pkgconfig
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(1)/usr/lib/pkgconfig/
57 endef
58
59 define Package/libosip2/install
60 $(INSTALL_DIR) $(1)/usr/lib
61 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
62 endef
63
64 $(eval $(call BuildPackage,libosip2))