2 # Copyright (C) 2006,2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@GNU/osip
17 PKG_MD5SUM:=7eb305608256ac2a7a27b66ce52627c8
21 include $(INCLUDE_DIR)/package.mk
23 define Package/libosip2
26 TITLE:=GNU oSIP library
27 URL:=http://www.gnu.org/software/osip/
31 define Package/libosip2description
32 GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
35 TARGET_CFLAGS += $(FPIC)
47 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
50 define Build/InstallDev
51 mkdir -p $(1)/usr/include
52 $(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
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/
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/
64 $(eval $(call BuildPackage,libosip2))