From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Juergen Beisert Date: Wed, 21 Mar 2012 10:23:01 +0100 References: <1332318822-22111-1-git-send-email-w.sang@pengutronix.de> <201203211008.10769.jbe@pengutronix.de> <20120321091520.GB3244@pengutronix.de> In-Reply-To: <20120321091520.GB3244@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201203211023.01524.jbe@pengutronix.de> Subject: Re: [ptxdist] [PATCH] rules: add libosip2 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Kjell Ove =?iso-8859-1?q?R=F8te?= , Eivind Versvik Wolfram Sang wrote: > > > +LIBOSIP2_VERSION := 3.3.0 > > > > Why such an "old" version? > > That's the one which was tested with the application. > > > > +LIBOSIP2_CONF_TOOL := autoconf > > > > You should take into account that its configure tries to guess many > > things. > > > > To get reliable results you need more (this is from my WIP libosib2-3.6.0 > > implementation): > > ... > > Okay, looks like we should better use your version then. Here is the OSIP from my LinPhone experiments. As my Mini2440 is not really able to run LinPhone I'm stuck to really test it. So take it as WIP. commit a5a76b070377609b2ad1ab1c12b49b7edf5f4e95 Author: Juergen Beisert Date: Tue Dec 27 19:52:27 2011 +0100 OSIP2: add GNU osip2 library Signed-off-by: Juergen Beisert diff --git a/rules/libosip2.in b/rules/libosip2.in new file mode 100644 index 0000000..a1124f6 --- /dev/null +++ b/rules/libosip2.in @@ -0,0 +1,24 @@ +## SECTION=system_libraries + +menuconfig LIBOSIP2 + tristate + select LIBC_NSL + prompt "libosip2 " + help + The GNU oSIP library is an implementation of SIP - rfc3261. + +if LIBOSIP2 + +config LIBOSIP2_DEBUG + bool + prompt "enable debug" + help + Make the library larger and more noisy. + +config LIBOSIP2_TRACE + bool + prompt "enable log trace" + help + Enable trace in the logfile. + +endif diff --git a/rules/libosip2.make b/rules/libosip2.make new file mode 100644 index 0000000..dcdaf0e --- /dev/null +++ b/rules/libosip2.make @@ -0,0 +1,78 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Juergen Beisert +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LIBOSIP2) += libosip2 + +# +# Paths and names +# +LIBOSIP2_VERSION := 3.6.0 +LIBOSIP2_MD5 := 92fd1c1698235a798497887db159c9b3 +LIBOSIP2 := libosip2-$(LIBOSIP2_VERSION) +LIBOSIP2_SUFFIX := tar.gz +LIBOSIP2_URL := http://ftp.gnu.org/gnu/osip/$(LIBOSIP2).$(LIBOSIP2_SUFFIX) +LIBOSIP2_SOURCE := $(SRCDIR)/$(LIBOSIP2).$(LIBOSIP2_SUFFIX) +LIBOSIP2_DIR := $(BUILDDIR)/$(LIBOSIP2) +LIBOSIP2_LICENSE := LGPL + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +LIBOSIP2_CONF_TOOL := autoconf +LIBOSIP2_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --enable-shared \ + --disable-static \ + --$(call ptx/endis, PTXCONF_LIBOSIP2_DEBUG)-debug \ + --$(call ptx/endis, PTXCONF_LIBOSIP2_TRACE)-trace \ + --disable-mpatrol \ + --disable-gprof \ + --enable-mt \ + --enable-pthread \ + --enable-semaphore \ + --disable-sysv \ + --disable-gperf \ + --disable-hashtable \ + --disable-test + +# '--enable-minisize' clobbers the library in many strange ways. +# At the end the libeXosip2, depending on the libosip2, cannot be used anymore, +# but also libeXosip2 with '--enable-minisize' breaks the libeXosip2 itself +# So, no way to use this switch in libosip2 and libeXosip2. What a mess. +LIBOSIP2_CONF_OPT += --disable-minisize + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libosip2.targetinstall: + @$(call targetinfo) + + @$(call install_init, libosip2) + @$(call install_fixup, libosip2,PRIORITY,optional) + @$(call install_fixup, libosip2,SECTION,base) + @$(call install_fixup, libosip2,AUTHOR,"Juergen Beisert ") + @$(call install_fixup, libosip2,DESCRIPTION,"oSIP feature") + + @$(call install_lib, libosip2, 0, 0, 0644, libosip2) + @$(call install_lib, libosip2, 0, 0, 0644, libosipparser2) + + @$(call install_finish, libosip2) + + @$(call touch) + +# vim: syntax=make -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de