[packages] mpd: update to v0.15.4, cleanup
[packages.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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libosip2
11 PKG_VERSION:=3.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:=7eb305608256ac2a7a27b66ce52627c8
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libosip2
23   SECTION:=libs
24   CATEGORY:=Libraries
25   TITLE:=GNU oSIP library
26   URL:=http://www.gnu.org/software/osip/
27   DEPENDS:=+libpthread
28 endef
29
30 define Package/libosip2description
31  GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 CONFIGURE_ARGS+= \
37         --enable-shared \
38         --enable-static \
39         --disable-debug \
40         --disable-trace \
41         --enable-pthread \
42         --enable-semaphore \
43         --enable-ntimer \
44
45 define Build/Compile
46         $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
47 endef
48
49 define Build/InstallDev
50         mkdir -p $(1)/usr/include
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
52         mkdir -p $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
54         mkdir -p $(1)/usr/lib/pkgconfig
55         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(1)/usr/lib/pkgconfig/
56 endef
57
58 define Package/libosip2/install
59         $(INSTALL_DIR) $(1)/usr/lib
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,libosip2))