* [ptxdist] [PATCH] rules: add libosip2
@ 2012-03-21 8:33 Wolfram Sang
2012-03-21 9:08 ` Juergen Beisert
0 siblings, 1 reply; 5+ messages in thread
From: Wolfram Sang @ 2012-03-21 8:33 UTC (permalink / raw)
To: ptxdist; +Cc: Kjell Ove Røte, Eivind Versvik
Signed-off-by: Eivind Versvik <eivind.versvik@zenitel.com>
Signed-off-by: Kjell Ove Røte <Kjell.Ove.Rote@zenitel.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
---
rules/libosip2.in | 7 ++++++
rules/libosip2.make | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+), 0 deletions(-)
create mode 100644 rules/libosip2.in
create mode 100644 rules/libosip2.make
diff --git a/rules/libosip2.in b/rules/libosip2.in
new file mode 100644
index 0000000..4483bbc
--- /dev/null
+++ b/rules/libosip2.in
@@ -0,0 +1,7 @@
+## SECTION=system_libraries
+
+config LIBOSIP2
+ tristate
+ prompt "libosip2"
+ help
+ The GNU oSIP library is an implementation of SIP - rfc3261
diff --git a/rules/libosip2.make b/rules/libosip2.make
new file mode 100644
index 0000000..3d2a372
--- /dev/null
+++ b/rules/libosip2.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Eivind Versvik <eivind.versvik@zenitel.com>
+# Copyright (C) 2012 by Wolfram Sang <w.sang@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.3.0
+LIBOSIP2_MD5 := 81493bb4d4ae6d55b71a0d4369339125
+LIBOSIP2 := libosip2-$(LIBOSIP2_VERSION)
+LIBOSIP2_SUFFIX := tar.gz
+LIBOSIP2_URL := $(call ptx/mirror, GNU, osip/$(LIBOSIP2).$(LIBOSIP2_SUFFIX))
+LIBOSIP2_SOURCE := $(SRCDIR)/$(LIBOSIP2).$(LIBOSIP2_SUFFIX)
+LIBOSIP2_DIR := $(BUILDDIR)/$(LIBOSIP2)
+LIBOSIP2_LICENSE := LGPLv2.1+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBOSIP2_CONF_TOOL := autoconf
+
+# ----------------------------------------------------------------------------
+# 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, "Eivind Versvik <eivind.versvik@zenitel.com>")
+ @$(call install_fixup, libosip2, DESCRIPTION, missing)
+
+ @$(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
--
1.7.9.1
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] rules: add libosip2
2012-03-21 8:33 [ptxdist] [PATCH] rules: add libosip2 Wolfram Sang
@ 2012-03-21 9:08 ` Juergen Beisert
2012-03-21 9:15 ` Wolfram Sang
0 siblings, 1 reply; 5+ messages in thread
From: Juergen Beisert @ 2012-03-21 9:08 UTC (permalink / raw)
To: ptxdist; +Cc: Kjell Ove Røte, Eivind Versvik
> [...]
> diff --git a/rules/libosip2.make b/rules/libosip2.make
> new file mode 100644
> index 0000000..3d2a372
> --- /dev/null
> +++ b/rules/libosip2.make
> @@ -0,0 +1,55 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2012 by Eivind Versvik <eivind.versvik@zenitel.com>
> +# Copyright (C) 2012 by Wolfram Sang <w.sang@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.3.0
Why such an "old" version?
> +LIBOSIP2_MD5 := 81493bb4d4ae6d55b71a0d4369339125
> +LIBOSIP2 := libosip2-$(LIBOSIP2_VERSION)
> +LIBOSIP2_SUFFIX := tar.gz
> +LIBOSIP2_URL := $(call ptx/mirror, GNU, osip/$(LIBOSIP2).$(LIBOSIP2_SUFFIX))
> +LIBOSIP2_SOURCE := $(SRCDIR)/$(LIBOSIP2).$(LIBOSIP2_SUFFIX)
> +LIBOSIP2_DIR := $(BUILDDIR)/$(LIBOSIP2)
> +LIBOSIP2_LICENSE := LGPLv2.1+
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +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):
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
Regards,
Juergen
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] rules: add libosip2
2012-03-21 9:08 ` Juergen Beisert
@ 2012-03-21 9:15 ` Wolfram Sang
2012-03-21 9:23 ` Juergen Beisert
0 siblings, 1 reply; 5+ messages in thread
From: Wolfram Sang @ 2012-03-21 9:15 UTC (permalink / raw)
To: Juergen Beisert; +Cc: Kjell Ove Røte, ptxdist, Eivind Versvik
[-- Attachment #1.1: Type: text/plain, Size: 597 bytes --]
> > +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.
Thanks,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] rules: add libosip2
2012-03-21 9:15 ` Wolfram Sang
@ 2012-03-21 9:23 ` Juergen Beisert
2012-03-21 10:37 ` Wolfram Sang
0 siblings, 1 reply; 5+ messages in thread
From: Juergen Beisert @ 2012-03-21 9:23 UTC (permalink / raw)
To: ptxdist; +Cc: Kjell Ove Røte, 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 <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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] [PATCH] rules: add libosip2
2012-03-21 9:23 ` Juergen Beisert
@ 2012-03-21 10:37 ` Wolfram Sang
0 siblings, 0 replies; 5+ messages in thread
From: Wolfram Sang @ 2012-03-21 10:37 UTC (permalink / raw)
To: Juergen Beisert; +Cc: Kjell Ove Røte, ptxdist, Eivind Versvik
[-- Attachment #1.1: Type: text/plain, Size: 1114 bytes --]
On Wed, Mar 21, 2012 at 10:23:01AM +0100, Juergen Beisert wrote:
> 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.
Upgrading osip is sadly no option for the project, so I can't test your
WIP. I'll leave it for Michael to decide if he wants this or that
version or is waiting for someone to do "best of both worlds" ;)
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 48 bytes --]
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-03-21 10:37 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 8:33 [ptxdist] [PATCH] rules: add libosip2 Wolfram Sang
2012-03-21 9:08 ` Juergen Beisert
2012-03-21 9:15 ` Wolfram Sang
2012-03-21 9:23 ` Juergen Beisert
2012-03-21 10:37 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox