mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Juergen Beisert <jbe@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: "Kjell Ove Røte" <Kjell.Ove.Rote@zenitel.com>,
	"Eivind Versvik" <eivind.versvik@zenitel.com>
Subject: Re: [ptxdist] [PATCH] rules: add libosip2
Date: Wed, 21 Mar 2012 10:23:01 +0100	[thread overview]
Message-ID: <201203211023.01524.jbe@pengutronix.de> (raw)
In-Reply-To: <20120321091520.GB3244@pengutronix.de>

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 <jbe@pengutronix.de>
Date:   Tue Dec 27 19:52:27 2011 +0100

    OSIP2: add GNU osip2 library
    
    Signed-off-by: Juergen Beisert <jbe@pengutronix.de>

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 <jbe@pengutronix.de>
+#
+# 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 <jbe@pengutronix.de>")
+	@$(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

  reply	other threads:[~2012-03-21  9:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21  8:33 Wolfram Sang
2012-03-21  9:08 ` Juergen Beisert
2012-03-21  9:15   ` Wolfram Sang
2012-03-21  9:23     ` Juergen Beisert [this message]
2012-03-21 10:37       ` Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201203211023.01524.jbe@pengutronix.de \
    --to=jbe@pengutronix.de \
    --cc=Kjell.Ove.Rote@zenitel.com \
    --cc=eivind.versvik@zenitel.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox