2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/osip
16 PKG_MD5SUM:=7691546f6b3349d10007fc1aaff0f4e0
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libosip2
27 TITLE:=GNU oSIP library
28 URL:=http://www.gnu.org/software/osip/
32 define Package/libosip2description
33 GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
36 TARGET_CFLAGS += $(FPIC)
38 define Build/Configure
39 $(call Build/Configure/Default, \
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/
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/
63 $(eval $(call BuildPackage,libosip2))