Skip to contentSkip to conversation

Pull request for branch for-2011.11/packages

GIT PULL New Maxime Ripard 2 participants 10 messages Sep 28, 2011 – Oct 1, 2011

lore
Share & tools
lore
#0 lore raw

The following changes since commit 102a93bdca09742c99e110f144bf0c9267bbdd14:

support: move package/gnuconfig to support/gnuconfig (2011-09-17 08:22:12 +0200)

are available in the git repository at:
http://free-electrons.com/~maxime/git/buildroot.git for-2011.11/packages

Maxime Ripard (4):
Add the picocom package
Add Transmission package
Add lame support in gstreamer
Add the libplayer package

 package/Config.in                                  |    2 +
 package/multimedia/Config.in                       |    1 +
 package/multimedia/gst-plugins-ugly/Config.in      |    4 +
 .../gst-plugins-ugly/gst-plugins-ugly.mk           |    7 +
 package/multimedia/libplayer/Config.in             |   20 +++
 package/multimedia/libplayer/libplayer.mk          |   42 +++++
 package/picocom/Config.in                          |    8 +
 package/picocom/picocom.mk                         |   19 +++
 package/transmission/Config.in                     |   35 ++++
 package/transmission/S92transmission               |  169 ++++++++++++++++++++
 package/transmission/transmission.mk               |   46 ++++++
 11 files changed, 353 insertions(+), 0 deletions(-)
 create mode 100644 package/multimedia/libplayer/Config.in
 create mode 100644 package/multimedia/libplayer/libplayer.mk
 create mode 100644 package/picocom/Config.in
 create mode 100644 package/picocom/picocom.mk
 create mode 100644 package/transmission/Config.in
 create mode 100644 package/transmission/S92transmission
 create mode 100644 package/transmission/transmission.mk

Thanks,

Signature · 1 line
Maxime Ripard
#1 lore raw

PATCH 1/4 Add the picocom package

From: Maxime Ripard <[email protected]>

---
 package/Config.in          |    1 +
 package/picocom/Config.in  |    8 ++++++++
 package/picocom/picocom.mk |   19 +++++++++++++++++++
 3 files changed, 28 insertions(+), 0 deletions(-)
 create mode 100644 package/picocom/Config.in
 create mode 100644 package/picocom/picocom.mk
package/Config.in +1 -0
index d95e7b5..6065773 100644
@@ -192,6 +192,7 @@ source "package/mtd/Config.in"
 source "package/ntfs-3g/Config.in"
 source "package/ntfsprogs/Config.in"
 source "package/pciutils/Config.in"
+source "package/picocom/Config.in"
 source "package/rng-tools/Config.in"
 source "package/sdparm/Config.in"
 source "package/setserial/Config.in"
package/picocom/Config.in new file +8 -0
new file mode 100644
index 0000000..1f9a40e
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_PICOCOM
+	bool "picocom"
+	help
+	   picocom is a minimal dumb-terminal emulation program. It
+	   is, in principle, very much like minicom, only it's pico
+	   instead of mini!
+
+	   http://code.google.com/p/picocom/
\ No newline at end of file
package/picocom/picocom.mk new file +19 -0
new file mode 100644
index 0000000..e2eb3e4
@@ -0,0 +1,19 @@
+#############################################################
+#
+# picocom
+#
+#############################################################
+
+PICOCOM_VERSION = 1.6
+PICOCOM_SITE    = http://picocom.googlecode.com/files/
+
+define PICOCOM_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) \
+	$(MAKE) -C $(@D)
+endef
+
+define PICOCOM_INSTALL_TARGET_CMDS
+	install -D -m 0755 $(@D)/picocom $(TARGET_DIR)/usr/bin/picocom
+endef
+
+$(eval $(call GENTARGETS,package,picocom))
\ No newline at end of file
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 1/4 Add the picocom package

Le Wed, 28 Sep 2011 13:48:31 +0200,
Maxime Ripard <[email protected]> a ?crit :

package/picocom/Config.in line 8

Quoted 2 lines
package/picocom/Config.in new file +1 -0
+	   http://code.google.com/p/picocom/
\ No newline at end of file

Peter would like to see a newline here.

package/picocom/picocom.mk line 12

Quoted 3 lines
package/picocom/picocom.mk new file +3 -0
+define PICOCOM_BUILD_CMDS
+	$(TARGET_CONFIGURE_OPTS) \
+	$(MAKE) -C $(@D)

Nitpicking: it probably can be on one single line.

Quoted 2 lines

+$(eval $(call GENTARGETS,package,picocom))
\ No newline at end of file

newline needed here.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#3 lore raw

PATCH 2/4 Add Transmission package

In reply to Maxime Ripard

From: Maxime Ripard <[email protected]>

---
 package/Config.in                    |    1 +
 package/transmission/Config.in       |   35 +++++++
 package/transmission/S92transmission |  169 ++++++++++++++++++++++++++++++++++
 package/transmission/transmission.mk |   46 +++++++++
 4 files changed, 251 insertions(+), 0 deletions(-)
 create mode 100644 package/transmission/Config.in
 create mode 100644 package/transmission/S92transmission
 create mode 100644 package/transmission/transmission.mk
package/Config.in +1 -0
index 6065773..bbbb97b 100644
@@ -467,6 +467,7 @@ source "package/thttpd/Config.in"
 source "package/tinyhttpd/Config.in"
 endif
 source "package/tn5250/Config.in"
+source "package/transmission/Config.in"
 source "package/ttcp/Config.in"
 source "package/udpcast/Config.in"
 source "package/vpnc/Config.in"
package/transmission/Config.in new file +35 -0
new file mode 100644
index 0000000..5dd7c08
@@ -0,0 +1,35 @@
+config BR2_PACKAGE_TRANSMISSION
+	bool "transmission"
+	depends on BR2_INET_IPV6
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBEVENT
+	help
+	  Transmission is a cross-platform BitTorrent client.
+
+comment "Transmission requires a toolchain with IPv6 support"
+	depends on !BR2_INET_IPV6
+
+config BR2_PACKAGE_TRANSMISSION_UTP
+	bool "Transmission uTP support"
+	depends on BR2_PACKAGE_TRANSMISSION
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Install support for uTorrent Transport Protocol
+
+comment "uTP requires a toolchain with C++ support"
+	depends on !BR2_INSTALL_LIBSTDCPP
+
+config BR2_PACKAGE_TRANSMISSION_CLI
+	bool "transmission-cli"
+	depends on BR2_PACKAGE_TRANSMISSION
+	help
+	  Install transmission command line interface.
+
+config BR2_PACKAGE_TRANSMISSION_REMOTE
+	bool "transmission-remote"
+	depends on BR2_PACKAGE_TRANSMISSION
+	default y
+	help
+	  Install transmission remote management tool.
package/transmission/S92transmission new file +169 -0

170 lines not on this page · raw message

package/transmission/transmission.mk new file +46 -0

46 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#4 lore raw

PATCH 2/4 Add Transmission package

Le Wed, 28 Sep 2011 13:48:32 +0200,
Maxime Ripard <[email protected]> a ?crit :

Quoted 15 lines
package/transmission/Config.in new file +12 -0
@@ -0,0 +1,35 @@
+config BR2_PACKAGE_TRANSMISSION
+	bool "transmission"
+	depends on BR2_INET_IPV6
+	select BR2_PACKAGE_ZLIB
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBCURL
+	select BR2_PACKAGE_LIBEVENT
+	help
+	  Transmission is a cross-platform BitTorrent client.
+
+comment "Transmission requires a toolchain with IPv6 support"
+	depends on !BR2_INET_IPV6

package/transmission/Config.in line 22

Quoted 10 lines
package/transmission/Config.in new file +10 -0
+
+config BR2_PACKAGE_TRANSMISSION_UTP
+	bool "Transmission uTP support"
+	depends on BR2_PACKAGE_TRANSMISSION
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  Install support for uTorrent Transport Protocol
+
+comment "uTP requires a toolchain with C++ support"
+	depends on !BR2_INSTALL_LIBSTDCPP
		&& BR2_PACKAGE_TRANSMISSION

otherwise this comment will be visible even when transmission is not enabled.

Or better, enclose all config options (except the main one) in a "if BR2_PACKAGE_TRANSMISSION ... endif" clause, so you can remove all depends on BR2_PACKAGE_TRANSMISSION.

Quoted 6 lines
package/transmission/S92transmission new file +0 -0
new file mode 100644
index 0000000..71b0ca6

package/transmission/S92transmission line 8

Quoted 8 lines
package/transmission/S92transmission new file +8 -0
@@ -0,0 +1,169 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides:          transmission-daemon
+# Required-Start:    networking
+# Required-Stop:     networking
+# Default-Start:     2 3 5
+# Default-Stop:      0 1 6
+# Short-Description: Start the transmission BitTorrent daemon client.

I guess this is for some specific version of init, we don't usually include this in Buildroot init scripts.

package/transmission/S92transmission line 18

Quoted 10 lines
package/transmission/S92transmission new file +10 -0
+ifeq ($(BR2_PACKAGE_TRANSMISSION_REMOTE),y)
+	TRANSMISSION_CONF_OPT += --enable-remote
+else
+	TRANSMISSION_CONF_OPT += --disable-remote
+define TRANSMISSION_INIT_SCRIPT_INSTALL
+	$(INSTALL) -m 0755 -D package/transmission/S92transmission \
+		$(TARGET_DIR)/etc/init.d/S92transmission
+endef
+	TRANSMISSION_POST_INSTALL_TARGET_HOOKS += TRANSMISSION_INIT_SCRIPT_INSTALL
+endif

To improve readability, probably you could put TRANSMISSION_INIT_SCRIPT_INSTALL outside the ifeq..else..endif.

Regards,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#5 lore raw

PATCH 3/4 Add lame support in gstreamer

In reply to Maxime Ripard

From: Maxime Ripard <[email protected]>

---
 package/multimedia/gst-plugins-ugly/Config.in      |    4 ++++
 .../gst-plugins-ugly/gst-plugins-ugly.mk           |    7 +++++++
 2 files changed, 11 insertions(+), 0 deletions(-)
package/multimedia/gst-plugins-ugly/Config.in +4 -0
index 94e2b9d..c0046e4 100644
@@ -38,6 +38,10 @@ config BR2_PACKAGE_GST_PLUGINS_UGLY_PLUGIN_SYNAESTHESIA
 
 comment "plugins with external dependencies (there may be more available)"
 
+config BR2_PACKAGE_GST_PLUGINS_UGLY_PLUGIN_LAME
+	bool "lame (*.mp3 audio encoder)"
+	select BR2_PACKAGE_LAME
+
 config BR2_PACKAGE_GST_PLUGINS_UGLY_PLUGIN_MAD
 	bool "mad (*.mp3 audio)"
 	select BR2_PACKAGE_LIBID3TAG
package/multimedia/gst-plugins-ugly/gst-plugins-ugly.mk +7 -0
index ab557a3..7acf0da 100644
@@ -60,6 +60,13 @@ else
 GST_PLUGINS_UGLY_CONF_OPT += --disable-synaesthesia
 endif
 
+ifeq ($(BR2_PACKAGE_GST_PLUGINS_UGLY_PLUGIN_LAME),y)
+GST_PLUGINS_UGLY_CONF_OPT += --enable-lame
+GST_PLUGINS_UGLY_DEPENDENCIES += lame
+else
+GST_PLUGINS_UGLY_CONF_OPT += --disable-lame
+endif
+
 ifeq ($(BR2_PACKAGE_GST_PLUGINS_UGLY_PLUGIN_MAD),y)
 GST_PLUGINS_UGLY_CONF_OPT += --enable-mad
 GST_PLUGINS_UGLY_DEPENDENCIES += libid3tag libmad
Signature · 1 line
1.7.4.1
#6 lore raw

PATCH 4/4 Add the libplayer package

In reply to Maxime Ripard

From: Maxime Ripard <[email protected]>

---
 package/multimedia/Config.in              |    1 +
 package/multimedia/libplayer/Config.in    |   20 +++++++++++++
 package/multimedia/libplayer/libplayer.mk |   42 +++++++++++++++++++++++++++++
 3 files changed, 63 insertions(+), 0 deletions(-)
 create mode 100644 package/multimedia/libplayer/Config.in
 create mode 100644 package/multimedia/libplayer/libplayer.mk
package/multimedia/Config.in +1 -0
index 40760b7..7b63c14 100644
@@ -26,6 +26,7 @@ source "package/multimedia/libmms/Config.in"
 source "package/multimedia/libmpd/Config.in"
 source "package/multimedia/libmpeg2/Config.in"
 source "package/multimedia/libogg/Config.in"
+source "package/multimedia/libplayer/Config.in"
 source "package/multimedia/libreplaygain/Config.in"
 source "package/multimedia/libsamplerate/Config.in"
 source "package/multimedia/libsndfile/Config.in"
package/multimedia/libplayer/Config.in new file +20 -0
new file mode 100644
index 0000000..1c7e490
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LIBPLAYER
+	depends on BR2_LARGEFILE
+	bool "libplayer"
+	help
+	  libplayer provides a generic A/V API that relies on various multimedia
+	  player for Linux systems. It currently supports MPlayer, xine VLC and
+	  GStreamer only
+
+	  http://libplayer.geexbox.org/
+
+comment "Libplayer requires a toolchain with LARGEFILE support"
+	depends on !BR2_LARGEFILE
+
+config BR2_PACKAGE_LIBPLAYER_MPLAYER
+	depends on BR2_PACKAGE_MPLAYER
+	bool "Libplayer mplayer backend"
+
+config BR2_PACKAGE_LIBPLAYER_GSTREAMER
+	depends on BR2_PACKAGE_GSTREAMER
+	bool "Libplayer GStreamer backend"
package/multimedia/libplayer/libplayer.mk new file +42 -0

42 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#7 lore raw

PATCH 4/4 Add the libplayer package

Hello,

Le Wed, 28 Sep 2011 13:48:34 +0200,
Maxime Ripard <[email protected]> a ?crit :

Quoted 13 lines
package/multimedia/libplayer/Config.in new file +10 -0
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LIBPLAYER
+	depends on BR2_LARGEFILE
+	bool "libplayer"
+	help
+	  libplayer provides a generic A/V API that relies on various multimedia
+	  player for Linux systems. It currently supports MPlayer, xine VLC and
+	  GStreamer only
+
+	  http://libplayer.geexbox.org/
+

package/multimedia/libplayer/Config.in line 20

Quoted 10 lines
package/multimedia/libplayer/Config.in new file +10 -0
+comment "Libplayer requires a toolchain with LARGEFILE support"
+	depends on !BR2_LARGEFILE
+
+config BR2_PACKAGE_LIBPLAYER_MPLAYER
+	depends on BR2_PACKAGE_MPLAYER
+	bool "Libplayer mplayer backend"
+
+config BR2_PACKAGE_LIBPLAYER_GSTREAMER
+	depends on BR2_PACKAGE_GSTREAMER
+	bool "Libplayer GStreamer backend"

What happens if we select none of those backends ?

package/multimedia/libplayer/Config.in

Quoted 5 lines
package/multimedia/libplayer/Config.in new file +5 -0
+define LIBPLAYER_CONFIGURE_CMDS
+	(cd $(@D) && rm -rf config.cache && \
+	$(TARGET_CONFIGURE_OPTS) \
+	$(TARGET_CONFIGURE_ARGS) \
+	$(LIBPLAYER_CONF_ENV) \

LIBPLAYER_CONF_ENV is not defined anywhere.

package/multimedia/libplayer/Config.in

Quoted 6 lines
package/multimedia/libplayer/Config.in new file +6 -0
+	./configure \
+		--prefix=/usr \
+		--cross-compile \
+		$(SHARED_STATIC_LIBS_OPTS) \
+		$(QUIET) $(LIBPLAYER_CONF_OPT) \
+	)

This looks like a normal ./configure invocation. Why don't you use the default foo_CONFIGURE_CMDS provided by the autotargets infrastructure ?

Quoted 1 line

+ifeq ($(BR2_PACKAGE_LIBPLAYER_PYTHON),y)

This option is not defined in your Config.in.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#8 lore raw

PATCH 4/4 Add the libplayer package

Hi,

Le 30/09/2011 21:44, Thomas Petazzoni a ?crit :

Quoted 11 lines

Le Wed, 28 Sep 2011 13:48:34 +0200,
Maxime Ripard<[email protected]> a ?crit :

package/multimedia/libplayer/Config.in line 20

Quoted 7 lines
package/multimedia/libplayer/Config.in new file +7 -0
+config BR2_PACKAGE_LIBPLAYER_MPLAYER
+	depends on BR2_PACKAGE_MPLAYER
+	bool "Libplayer mplayer backend"
+
+config BR2_PACKAGE_LIBPLAYER_GSTREAMER
+	depends on BR2_PACKAGE_GSTREAMER
+	bool "Libplayer GStreamer backend"

What happens if we select none of those backends ?

Hmmm, good question. I'll check.

Quoted 7 lines

package/multimedia/libplayer/libplayer.mk line 14

Quoted 5 lines
package/multimedia/libplayer/libplayer.mk new file +5 -0
+define LIBPLAYER_CONFIGURE_CMDS
+	(cd $(@D)&&  rm -rf config.cache&&  \
+	$(TARGET_CONFIGURE_OPTS) \
+	$(TARGET_CONFIGURE_ARGS) \
+	$(LIBPLAYER_CONF_ENV) \

LIBPLAYER_CONF_ENV is not defined anywhere.

Ah, you're right, I missed that one.

Quoted 10 lines

package/multimedia/libplayer/libplayer.mk line 20

Quoted 7 lines
package/multimedia/libplayer/libplayer.mk new file +6 -0
+	./configure \
+		--prefix=/usr \
+		--cross-compile \
+		$(SHARED_STATIC_LIBS_OPTS) \
+		$(QUIET) $(LIBPLAYER_CONF_OPT) \
+	)

This looks like a normal ./configure invocation. Why don't you use the default foo_CONFIGURE_CMDS provided by the autotargets infrastructure ?

The configure script breaks if we pass --target or --host, I did this to avoid it.

Quoted 3 lines
Quoted 1 line

+ifeq ($(BR2_PACKAGE_LIBPLAYER_PYTHON),y)

This option is not defined in your Config.in.

Ah, yup.

I'll resend the whole patchset once it will be updated.

Maxime

#9 lore raw

PATCH 4/4 Add the libplayer package

Le Fri, 30 Sep 2011 23:48:22 +0200,
Maxime Ripard <[email protected]> a ?crit :

Quoted 5 lines
Quoted 2 lines

This looks like a normal ./configure invocation. Why don't you use the default foo_CONFIGURE_CMDS provided by the autotargets infrastructure ?

The configure script breaks if we pass --target or --host, I did this to avoid it.

Hum, ok. Then a comment on top of the LIBPLAYER_CONFIGURE_CMDS would be good.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com