Pull request for branch disko
Hello,
Here is a set of patches that add the disko multimedia framework and its demonstration application. Since disko uses SCons as it builds system, we also add a host-scons package.
Changes since v1:
* Removed an UTF-8 only character from the disko/Config.in file
Regards,
Thomas
The following changes since commit ffe62f915dcbf62a840b40167f391127f0702aac:
sysvinit: package name typo (2011-07-12 09:11:39 +0200)
are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git disko
Thomas Petazzoni (3):
scons: new package
disko: new package
disko-demos: new package
package/multimedia/Config.in | 2 + package/multimedia/disko-demos/Config.in | 8 ++ .../disko-demos-1.8.0-fix-install-paths.patch | 61 +++++++++++++++ package/multimedia/disko-demos/disko-demos.mk | 27 +++++++ package/multimedia/disko/Config.in | 41 ++++++++++ .../disko/disko-1.8.0-directfb-fix-errors.patch | 82 ++++++++++++++++++++ .../disko/disko-1.8.0-fixup-pkgconfig.patch | 22 +++++ package/multimedia/disko/disko.mk | 57 ++++++++++++++ package/scons/scons.mk | 13 +++ 9 files changed, 313 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/disko-demos/Config.in create mode 100644 package/multimedia/disko-demos/disko-demos-1.8.0-fix-install-paths.patch create mode 100644 package/multimedia/disko-demos/disko-demos.mk create mode 100644 package/multimedia/disko/Config.in create mode 100644 package/multimedia/disko/disko-1.8.0-directfb-fix-errors.patch create mode 100644 package/multimedia/disko/disko-1.8.0-fixup-pkgconfig.patch create mode 100644 package/multimedia/disko/disko.mk create mode 100644 package/scons/scons.mk
Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/3 scons: new package
Only the host package is supported.
--- package/scons/scons.mk | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) create mode 100644 package/scons/scons.mk
package/scons/scons.mk new file +13 -0
@@ -0,0 +1,13 @@ +SCONS_VERSION = 2.0.1 +SCONS_SOURCE = scons-$(SCONS_VERSION).tar.gz +SCONS_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/scons + +define HOST_SCONS_BUILD_CMDS + (cd $(@D); python setup.py build) +endef + +define HOST_SCONS_INSTALL_CMDS + (cd $(@D); python setup.py install --prefix=$(HOST_DIR)/usr) +endef + +$(eval $(call GENTARGETS,package,scons,host))
Signature · 1 line
1.7.4.1
PATCH 2/3 disko: new package
In reply to Thomas Petazzoni--- package/multimedia/Config.in | 1 + package/multimedia/disko/Config.in | 41 ++++++++++ .../disko/disko-1.8.0-directfb-fix-errors.patch | 82 ++++++++++++++++++++ .../disko/disko-1.8.0-fixup-pkgconfig.patch | 22 +++++ package/multimedia/disko/disko.mk | 57 ++++++++++++++ 5 files changed, 203 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/disko/Config.in create mode 100644 package/multimedia/disko/disko-1.8.0-directfb-fix-errors.patch create mode 100644 package/multimedia/disko/disko-1.8.0-fixup-pkgconfig.patch create mode 100644 package/multimedia/disko/disko.mk
package/multimedia/Config.in +1 -0
@@ -2,6 +2,7 @@ menu "Audio and video libraries and applications" source "package/multimedia/alsa-lib/Config.in" source "package/multimedia/alsa-utils/Config.in" source "package/multimedia/aumix/Config.in" +source "package/multimedia/disko/Config.in" source "package/multimedia/faad2/Config.in" source "package/multimedia/flac/Config.in" source "package/multimedia/ffmpeg/Config.in"
package/multimedia/disko/Config.in new file +41 -0
41 lines not on this page · raw message
package/multimedia/disko/disko-1.8.0-directfb-fix-errors.patch new file +82 -0
82 lines not on this page · raw message
package/multimedia/disko/disko-1.8.0-fixup-pkgconfig.patch new file +22 -0
@@ -0,0 +1,22 @@ +Do not prepend pkg-config prefix variable with destdir + +The SConstruct script of Disko preprends the destdir to the prefix= +variable in the .pc file. This is useless and also broken, as +pkg-config already preprends the destdir to the prefix= variable +thanks to the PKG_CONFIG_SYSROOT_DIR environment variable. + +Signed-off-by: Thomas Petazzoni <[email protected]> + +Index: disko_1.8.0/SConstruct +=================================================================== +--- disko_1.8.0.orig/SConstruct 2011-07-15 14:23:01.478750933 +0200 ++++ disko_1.8.0/SConstruct 2011-07-15 14:23:15.565746631 +0200 +@@ -859,8 +859,6 @@ + disko_pc_libs_private += ' -lswscale -lavutil' + + disko_pc.write('prefix=') +- if env['destdir'] and env['destdir'] != 'none': +- disko_pc.write(env['destdir'] + '/') + disko_pc.write(env['prefix'] + '\n') + disko_pc.write('exec_prefix=${prefix}\n') + disko_pc.write('libdir=${exec_prefix}/lib\n')
package/multimedia/disko/disko.mk new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 3/3 disko-demos: new package
In reply to Thomas Petazzoni--- package/multimedia/Config.in | 1 + package/multimedia/disko-demos/Config.in | 8 +++ .../disko-demos-1.8.0-fix-install-paths.patch | 61 ++++++++++++++++++++ package/multimedia/disko-demos/disko-demos.mk | 27 +++++++++ 4 files changed, 97 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/disko-demos/Config.in create mode 100644 package/multimedia/disko-demos/disko-demos-1.8.0-fix-install-paths.patch create mode 100644 package/multimedia/disko-demos/disko-demos.mk
package/multimedia/Config.in +1 -0
@@ -3,6 +3,7 @@ source "package/multimedia/alsa-lib/Config.in" source "package/multimedia/alsa-utils/Config.in" source "package/multimedia/aumix/Config.in" source "package/multimedia/disko/Config.in" +source "package/multimedia/disko-demos/Config.in" source "package/multimedia/faad2/Config.in" source "package/multimedia/flac/Config.in" source "package/multimedia/ffmpeg/Config.in"
package/multimedia/disko-demos/Config.in new file +8 -0
@@ -0,0 +1,8 @@ +config BR2_PACKAGE_DISKO_DEMOS + bool "disko-demos" + depends on BR2_PACKAGE_DISKO + help + This is a demonstration application for the Disko multimedia + application framework. + + http://www.diskohq.com/
package/multimedia/disko-demos/disko-demos-1.8.0-fix-install-paths.patch new file +61 -0
61 lines not on this page · raw message
package/multimedia/disko-demos/disko-demos.mk new file +27 -0
@@ -0,0 +1,27 @@ + +DISKO_DEMOS_VERSION = 1.8.0 +DISKO_DEMOS_SOURCE = disko-demos_$(DISKO_DEMOS_VERSION).tar.gz +DISKO_DEMOS_SITE = http://www.diskohq.com/repository/sources/ + +DISKO_DEMOS_DEPENDENCIES = disko + +DISKO_DEMOS_SCONS_ENV = \ + $(TARGET_CONFIGURE_OPTS) + +DISKO_DEMOS_SCONS_OPTS = \ + prefix=/usr \ + sysconfdir=/etc \ + cross=True + +define DISKO_DEMOS_BUILD_CMDS + (cd $(@D); $(DISKO_DEMOS_SCONS_ENV) scons $(DISKO_DEMOS_SCONS_OPTS)) +endef + +define DISKO_DEMOS_INSTALL_TARGET_CMDS + (cd $(@D); \ + $(DISKO_DEMOS_SCONS_ENV) scons $(DISKO_DEMOS_SCONS_OPTS) \ + destdir=$(TARGET_DIR) install) +endef + + +$(eval $(call GENTARGETS,package/multimedia,disko-demos))
Signature · 1 line
1.7.4.1
PATCH 1/3 scons: new package
In reply to Thomas PetazzoniQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Only the host package is supported.
Thomas> Signed-off-by: Thomas Petazzoni <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/3 disko: new package
In reply to Thomas PetazzoniQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Signed-off-by: Thomas Petazzoni <[email protected]>
Thanks, a few comments:
Thomas> +++ b/package/multimedia/disko/Config.in
Thomas> @@ -0,0 +1,41 @@
Thomas> +config BR2_PACKAGE_DISKO
Thomas> + bool "disko"
Thomas> + select BR2_PACKAGE_LIBSIGC
libsigc++ is a C++ library, and disko seems to also be written in C++, so you need the depends on BR2_INSTALL_LIBSTDCPP / comment-when-no-available thing.
Doing a test build with a basic uClibc config (please test patches with this) shows that it needs iconv.h, so you need
select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
and add it to _DEPENDENCIES.
Unfortunately the build still breaks:
src/mmstools/tools.cpp:37:21: error: wordexp.h: No such file or directory src/mmstools/tools.cpp: In function 'std::string substituteEnvVars(std::string)':
src/mmstools/tools.cpp:64: error: 'wordexp_t' was not declared in this scope
Our default uClibc config (and upstream default) hasn't got UCLIBC_HAS_WORDEXP enabled. Please take a look if we could remove that dependency or alternatively adjust the defconfigs.
Thomas> +++ b/package/multimedia/disko/disko-1.8.0-fixup-pkgconfig.patch Thomas> @@ -0,0 +1,22 @@
Thomas> +Do not prepend pkg-config prefix variable with destdir Thomas> +
Thomas> +The SConstruct script of Disko preprends the destdir to the prefix= Thomas> +variable in the .pc file. This is useless and also broken, as Thomas> +pkg-config already preprends the destdir to the prefix= variable Thomas> +thanks to the PKG_CONFIG_SYSROOT_DIR environment variable. Thomas> +
Thomas> +Signed-off-by: Thomas Petazzoni <[email protected]>
Has this been sent upstream?
Thomas> new file mode 100644
Thomas> index 0000000..0d6d894
Thomas> --- /dev/null
Thomas> +++ b/package/multimedia/disko/disko.mk
Thomas> @@ -0,0 +1,57 @@
Thomas> +
Please drop this empty line.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/3 disko-demos: new package
In reply to Thomas PetazzoniQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Signed-off-by: Thomas Petazzoni <[email protected]>
Thanks, a few comments:
Thomas> --- /dev/null
Thomas> +++ b/package/multimedia/disko-demos/disko-demos-1.8.0-fix-install-paths.patch Thomas> @@ -0,0 +1,61 @@
Thomas> +Allow proper configuration of /etc directory
Thomas> +
Thomas> +The disko-demos SConstruct build script forced to install Thomas> +configuration files into <prefix>/etc, which means /usr/etc. This Thomas> +patch adds a sysconfdir argument, which allows to specify a different Thomas> +directory for configuration files.
Thomas> +
Thomas> +Signed-off-by: Thomas Petazzoni <[email protected]>
Has this been sent upstream?
Thomas> +++ b/package/multimedia/disko-demos/disko-demos.mk Thomas> @@ -0,0 +1,27 @@
Thomas> +
Please drop this empty line.
Thomas> +DISKO_DEMOS_VERSION = 1.8.0
Thomas> +DISKO_DEMOS_SOURCE = disko-demos_$(DISKO_DEMOS_VERSION).tar.gz Thomas> +DISKO_DEMOS_SITE = http://www.diskohq.com/repository/sources/
Thomas> +
Thomas> +DISKO_DEMOS_DEPENDENCIES = disko
Thomas> +
Thomas> +DISKO_DEMOS_SCONS_ENV = \
Thomas> + $(TARGET_CONFIGURE_OPTS)
No LD=$(TARGET_CC) like for disko?
Signature · 1 line
Bye, Peter Korsgaard