Skip to contentSkip to conversation

linphone package

Buildroot New Pedro Sanchez 3 participants 10 messages Aug 9, 2011 – Aug 10, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

I'd like to get linphone-nox (console mode) packaged for buildroot. So before I start working on it, is there some previous packaging work that I could refer to? or is someone else already working on it?

Thanks,

Signature · 1 line
Pedro
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Pedro" == Pedro Sanchez <[email protected]> writes:

Pedro> Hello,
Pedro> I'd like to get linphone-nox (console mode) packaged for buildroot. So Pedro> before I start working on it, is there some previous packaging work Pedro> that I could refer to? or is someone else already working on it?

Not that I'm aware of.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw
Quoted 9 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Pedro" == Pedro Sanchez<[email protected]> writes:

  Pedro>  Hello,
  Pedro>  I'd like to get linphone-nox (console mode) packaged for buildroot. So
  Pedro>  before I start working on it, is there some previous packaging work
  Pedro>  that I could refer to? or is someone else already working on it?

Not that I'm aware of.

OK thanks.

I have now a working version of the linphone.mk file that seems to work well in my initial tests:

#############################################################
#

# linphone
#
#############################################################
LINPHONE_VERSION = 3.4.3
LINPHONE_SOURCE = linphone-$(LINPHONE_VERSION).tar.gz
LINPHONE_SITE = 
http://download-mirror.savannah.gnu.org/releases/linphone/3.4.x/sources
LINPHONE_INSTALL_STAGING = YES
LINPHONE_DEPENDENCIES = alsa-lib speex ncurses readline libeXosip2 libosip2
LINPHONE_CONF_OPT = --enable-gnome_ui=no \
		    --enable-gtk_ui=no \
		    --enable-alsa \
		    --disable-manual \
		    --disable-sdl \
		    --disable-theora \
		    --disable-x11 \
		    --disable-shared \
		    --disable-gsm \
		    --disable-jack \
		    --disable-libv4l \
		    --disable-video

$(eval $(call AUTOTARGETS,package,linphone))

I am cross-compiling linphone for ARM and the final executable created by buildroot in my target directory is /usr/bin/arm-linux-linphonec. No other binaries in the build have this "arm-linux' prefix. I's like the binary to be named /usr/bin/linphonec instead? Any suggestions?

Thanks,

Signature · 1 line
Pedro
#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Pedro" == Pedro Sanchez <[email protected]> writes:

Hi,

Pedro> ############################################################# Pedro> #
Pedro> # linphone
Pedro> #
Pedro> ############################################################# Pedro> LINPHONE_VERSION = 3.4.3
Pedro> LINPHONE_SOURCE = linphone-$(LINPHONE_VERSION).tar.gz
Pedro> LINPHONE_SITE =
Pedro> http://download-mirror.savannah.gnu.org/releases/linphone/3.4.x/sources
Pedro> LINPHONE_INSTALL_STAGING = YES
Pedro> LINPHONE_DEPENDENCIES = alsa-lib speex ncurses readline libeXosip2 libosip2 Pedro> LINPHONE_CONF_OPT = --enable-gnome_ui=no \

 Pedro> 		    --enable-gtk_ui=no \
 Pedro> 		    --enable-alsa \
 Pedro> 		    --disable-manual \
 Pedro> 		    --disable-sdl \
 Pedro> 		    --disable-theora \
 Pedro> 		    --disable-x11 \
 Pedro> 		    --disable-shared \
 Pedro> 		    --disable-gsm \
 Pedro> 		    --disable-jack \
 Pedro> 		    --disable-libv4l \
 Pedro> 		    --disable-video

We have most of those in BR, so it would be good to optionally enable them.

Pedro> $(eval $(call AUTOTARGETS,package,linphone))

Pedro> I am cross-compiling linphone for ARM and the final executable Pedro> created by buildroot in my target directory is Pedro> /usr/bin/arm-linux-linphonec. No other binaries in the build Pedro> have this "arm-linux' prefix. I's like the binary to be named Pedro> /usr/bin/linphonec instead? Any suggestions?

Typically you can pass --program-prefix="" to configure to disable it.

Care to send a real git patch including Config.in once you have it all working?

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

Peter, Pedro,

Quoted 8 lines · On Tuesday 09 August 2011 20:39:31 Peter Korsgaard wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Pedro" == Pedro Sanchez <[email protected]> writes:

Pedro> I am cross-compiling linphone for ARM and the final executable Pedro> created by buildroot in my target directory is Pedro> /usr/bin/arm-linux-linphonec. No other binaries in the build Pedro> have this "arm-linux' prefix. I's like the binary to be named Pedro> /usr/bin/linphonec instead? Any suggestions?

Typically you can pass --program-prefix="" to configure to disable it.

Maybe it would make sense to add this to the auto-target infrastructure? Either it is unconditionally added, or the package can set a variable to use it, eg. PKG_CONF_PROG_PREFIX = YES

I'll take a shot at it.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Yann> Peter, Pedro,

Quoted 1 line · Yann> On Tuesday 09 August 2011 20:39:31 Peter Korsgaard wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Pedro" == Pedro Sanchez <[email protected]> writes:

Pedro> I am cross-compiling linphone for ARM and the final executable Pedro> created by buildroot in my target directory is Pedro> /usr/bin/arm-linux-linphonec. No other binaries in the build Pedro> have this "arm-linux' prefix. I's like the binary to be named Pedro> /usr/bin/linphonec instead? Any suggestions?

Quoted 2 lines
Quoted 2 lines

Typically you can pass --program-prefix="" to configure to disable it.

Yann> Maybe it would make sense to add this to the auto-target infrastructure? Yann> Either it is unconditionally added, or the package can set a variable to Yann> use it, eg. PKG_CONF_PROG_PREFIX = YES

Unconditional should be ok, similar to how we do the ipv6 / nls stuff.

Yann> I'll take a shot at it.

Thanks!

Signature · 1 line
Bye, Peter Korsgaard
#6 lore raw

Peter, All,

Quoted 5 lines · On Tuesday 09 August 2011 21:25:02 Peter Korsgaard wrote:

Yann> Maybe it would make sense to add this to the auto-target infrastructure? Yann> Either it is unconditionally added, or the package can set a variable to Yann> use it, eg. PKG_CONF_PROG_PREFIX = YES

Unconditional should be ok, similar to how we do the ipv6 / nls stuff.

OK.

I'm also removing it from PKG_CONF_OPT variables. Do you want a single patch that removes all instances in one go, or do you want one patch per package? I'm tempted to do the latter, so we can revert only those that break.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#7 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Yann> Peter, All,
Yann> On Tuesday 09 August 2011 21:25:02 Peter Korsgaard wrote:
Yann> Maybe it would make sense to add this to the auto-target infrastructure? Yann> Either it is unconditionally added, or the package can set a variable to Yann> use it, eg. PKG_CONF_PROG_PREFIX = YES

Quoted 2 lines
Quoted 2 lines

Unconditional should be ok, similar to how we do the ipv6 / nls stuff.

Yann> OK.

Yann> I'm also removing it from PKG_CONF_OPT variables. Do you want a Yann> single patch that removes all instances in one go, or do you want Yann> one patch per package? I'm tempted to do the latter, so we can Yann> revert only those that break.

Up to you. Seems we have it in 21 files. I'll prefer to only commit post-2011.08 though.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

Peter, All,

Quoted 7 lines · On Tuesday 09 August 2011 21:44:59 Peter Korsgaard wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Yann> I'm also removing it from PKG_CONF_OPT variables. Do you want a Yann> single patch that removes all instances in one go, or do you want Yann> one patch per package? I'm tempted to do the latter, so we can Yann> revert only those that break.

Up to you. Seems we have it in 21 files.

Sure! So, one patch per change it will be. :-)

Quoted 1 line

I'll prefer to only commit post-2011.08 though.

I'm doing it now, `cause I get a bit bored. So, systematicaly editing a bunch of files, and just do the same thing again-and-again won't get me more bored than I currently am... ;-]

And then, I can easily rebase later. Hopefully... :-]

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#9 lore raw

PATCH 1/1 New Package: Linphone

In reply to Peter Korsgaard

This is a package for the Linphone VoIP client, console mode operation only (linphonec).

---
  package/Config.in            |    1 +
  package/linphone/Config.in   |   12 ++++++++++++
  package/linphone/linphone.mk |   24 ++++++++++++++++++++++++
  3 files changed, 37 insertions(+), 0 deletions(-)

create mode 100644 package/linphone/Config.in
create mode 100644 package/linphone/linphone.mk

package/Config.in +1 -0
index 7112e05..ebe583e 100644
@@ -417,6 +417,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
  source "package/lighttpd/Config.in"
  endif
  source "package/links/Config.in"
+source "package/linphone/Config.in"
  source "package/lrzsz/Config.in"
  source "package/mii-diag/Config.in"
  source "package/mrouted/Config.in"
package/linphone/Config.in new file +12 -0
new file mode 100644
index 0000000..60739cc
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LINPHONE
+	bool "linphone"
+	select BR2_PACKAGE_ALSA_LIB
+	select BR2_PACKAGE_SPEEX
+	select BR2_PACKAGE_NCURSES
+	select BR2_PACKAGE_READLINE
+	select BR2_PACKAGE_LIBEXOSIP2
+	select BR2_PACKAGE_LIBOSIP2
+	help
+	  Install the linphone package, console mode (linphonec)
+
+          http://www.linphone.org
package/linphone/linphone.mk new file +8 -0
new file mode 100644
index 0000000..0945722
@@ -0,0 +1,24 @@
+#############################################################
+#
+# linphone
+#
+#############################################################
+LINPHONE_VERSION = 3.4.3
+LINPHONE_SOURCE = linphone-$(LINPHONE_VERSION).tar.gz
+LINPHONE_SITE = 

http://download-mirror.savannah.gnu.org/releases/linphone/3.4.x/sources
+LINPHONE_INSTALL_STAGING = YES
+LINPHONE_DEPENDENCIES = alsa-lib speex ncurses readline libeXosip2 libosip2 +LINPHONE_CONF_OPT = --enable-gnome_ui=no \

+		    --enable-gtk_ui=no \
+		    --enable-alsa \
+		    --disable-manual \
+		    --disable-sdl \
+		    --disable-theora \
+		    --disable-x11 \
+		    --disable-shared \
+		    --disable-gsm \
+		    --disable-jack \
+		    --disable-libv4l \
+		    --disable-video

+
+$(eval $(call AUTOTARGETS,package,linphone))

Signature · 1 line
1.7.0.4