[package] libosip2: minor fix for libosip2 package
[packages.git] / libs / libosip2 / Makefile
1 #
2 # Copyright (C) 2006-2011 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.5.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/osip
16 PKG_MD5SUM:=7691546f6b3349d10007fc1aaff0f4e0
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libosip2
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=GNU oSIP library
28   URL:=http://www.gnu.org/software/osip/
29   DEPENDS:=+libpthread
30 endef
31
32 define Package/libosip2description
33  GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 define Build/Configure
39         $(call Build/Configure/Default, \
40                 --enable-shared \
41                 --enable-static \
42                 --disable-debug \
43                 --disable-trace \
44                 --enable-pthread \
45                 --enable-semaphore \
46         )
47 endef
48
49 define Build/InstallDev
50         $(INSTALL_DIR) $(1)/usr/include
51         $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
52         $(INSTALL_DIR) $(1)/usr/lib
53         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
54         $(INSTALL_DIR) $(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))