fix vsftpd compile error (#1409)
[openwrt/svn-archive/archive.git] / libs / libosip2 / Makefile
1 #
2 # Copyright (C) 2006 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:=2.2.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/osip
17 PKG_MD5SUM:=f1237af0250c59b318bd64a59f5750ea
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libosip2
26 SECTION:=libs
27 CATEGORY:=Libraries
28 DEPENDS:=+libpthread
29 TITLE:=The GNU oSIP library
30 DESCRIPTION:=\
31 GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
32 URL:=http://www.gnu.org/software/osip/
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --enable-shared \
38 --enable-static \
39 --disable-debug \
40 --disable-trace \
41 --enable-pthread \
42 --enable-semaphore \
43 --enable-ntimer \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Build/InstallDev
54 mkdir -p $(STAGING_DIR)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(STAGING_DIR)/usr/include/
56 mkdir -p $(STAGING_DIR)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(STAGING_DIR)/usr/lib/
58 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(STAGING_DIR)/usr/lib/pkgconfig/
60 endef
61
62 define Build/UninstallDev
63 rm -rf \
64 $(STAGING_DIR)/usr/include/osip{,parser}2 \
65 $(STAGING_DIR)/usr/lib/libosip{,parser}2.{a,so*} \
66 $(STAGING_DIR)/usr/lib/pkgconfig/libosip2.pc
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))