2006-07-24 07:11:15 +00:00
|
|
|
#
|
2007-09-22 15:44:29 +00:00
|
|
|
# Copyright (C) 2006,2007 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.
|
|
|
|
#
|
2008-09-27 16:51:21 +00:00
|
|
|
# $Id$
|
2006-07-24 07:11:15 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libosip2
|
2008-09-27 16:51:21 +00:00
|
|
|
PKG_VERSION:=3.1.0
|
2006-07-24 07:11:15 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@GNU/osip
|
2008-09-27 16:51:21 +00:00
|
|
|
PKG_MD5SUM:=7eb305608256ac2a7a27b66ce52627c8
|
2006-07-24 07:11:15 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
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)
|
|
|
|
|
2007-09-22 15:44:29 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-trace \
|
|
|
|
--enable-pthread \
|
|
|
|
--enable-semaphore \
|
|
|
|
--enable-ntimer \
|
|
|
|
|
2006-07-24 07:11:15 +00:00
|
|
|
define Build/Compile
|
2008-02-04 22:22:57 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
|
2006-07-24 07:11:15 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-10-07 03:20:26 +00:00
|
|
|
mkdir -p $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/osip{,parser}2 $(1)/usr/include/
|
|
|
|
mkdir -p $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libosip{,parser}2.{a,so*} $(1)/usr/lib/
|
|
|
|
mkdir -p $(1)/usr/lib/pkgconfig
|
|
|
|
$(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))
|