2010-02-18 13:10:21 +00:00
|
|
|
#
|
2011-08-03 21:08:39 +00:00
|
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
2006-07-24 07:11:15 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libosip2
|
2011-08-03 21:08:39 +00:00
|
|
|
PKG_VERSION:=3.5.0
|
|
|
|
PKG_RELEASE:=1
|
2006-07-24 07:11:15 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/osip
|
2011-08-03 21:08:39 +00:00
|
|
|
PKG_MD5SUM:=7691546f6b3349d10007fc1aaff0f4e0
|
2006-07-24 07:11:15 +00:00
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
PKG_FIXUP:=libtool
|
|
|
|
PKG_INSTALL:=1
|
2011-08-28 12:08:27 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2007-12-27 02:12:04 +00:00
|
|
|
|
2006-07-24 07:11:15 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libosip2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2007-09-22 15:44:29 +00:00
|
|
|
TITLE:=GNU oSIP library
|
2006-07-24 07:11:15 +00:00
|
|
|
URL:=http://www.gnu.org/software/osip/
|
2007-09-22 15:44:29 +00:00
|
|
|
DEPENDS:=+libpthread
|
2006-07-24 07:11:15 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-22 15:44:29 +00:00
|
|
|
define Package/libosip2description
|
|
|
|
GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-trace \
|
|
|
|
--enable-pthread \
|
|
|
|
--enable-semaphore \
|
|
|
|
)
|
2006-07-24 07:11:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
|
2009-12-18 11:06:19 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libosip2.pc $(1)/usr/lib/pkgconfig/
|
2006-07-24 07:11:15 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libosip2/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2008-02-04 22:22:57 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.so.* $(1)/usr/lib/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-24 07:11:15 +00:00
|
|
|
$(eval $(call BuildPackage,libosip2))
|