Add mpd to buildroot
cover Add mpd to buildroot
This patchset adds the mpd package to buildroot.
No attempt is made to avoid people hurting themselves, for instance you can build mpd with a full set of options even on a softfloat target though it probably won't do you any good if you lack the CPU power for some codecs like wavpack.
Run-tested on powerpc hardfloat.
Build-tested for armv4t softfloat.
PATCH 1/10 mpg123: install to staging
I want this for mpd which is coming since it's better than mad IMHO.
--- package/multimedia/mpg123/mpg123.mk | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
package/multimedia/mpg123/mpg123.mk +1 -0
@@ -8,6 +8,7 @@ MPG123_VERSION = 1.13.1 MPG123_SOURCE = mpg123-$(MPG123_VERSION).tar.bz2 MPG123_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mpg123 MPG123_CONF_OPT = --with-optimization=0 --disable-lfs-alias +MPG123_INSTALL_STAGING = YES MPG123_CPU = $(if $(BR2_SOFT_FLOAT),generic_nofpu,generic_fpu) ifeq ($(BR2_arm),y)
Signature · 1 line
1.7.3.4
PATCH 1/10 mpg123: install to staging
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> I want this for mpd which is coming since it's better than mad IMHO.
Committed with slightly reworded commit message, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 2/10 libsndfile: bump to version 1.0.23
In reply to Gustavo Zacarias--- package/multimedia/libsndfile/libsndfile.mk | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-)
package/multimedia/libsndfile/libsndfile.mk +4 -5
@@ -3,10 +3,9 @@ # libsndfile # ############################################################# -LIBSNDFILE_VERSION:=1.0.18 -LIBSNDFILE_SOURCE:=libsndfile-$(LIBSNDFILE_VERSION).tar.gz -LIBSNDFILE_SITE:=http://www.mega-nerd.com/libsndfile -LIBSNDFILE_LIBTOOL_PATCH:=NO -LIBSNDFILE_INSTALL_STAGING:=YES + +LIBSNDFILE_VERSION = 1.0.23 +LIBSNDFILE_SITE = http://www.mega-nerd.com/libsndfile/files +LIBSNDFILE_INSTALL_STAGING = YES $(eval $(call AUTOTARGETS,package/multimedia,libsndfile))
Signature · 1 line
1.7.3.4
PATCH 2/10 libsndfile: bump to version 1.0.23
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/10 libmad: install pkgconfig file
In reply to Gustavo ZacariasMake libmad install mad.pc into staging and target.
Needed for mpd.
--- package/multimedia/libmad/libmad.mk | 21 ++++++++++++++++----- package/multimedia/libmad/mad.pc | 11 +++++++++++ 2 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 package/multimedia/libmad/mad.pc
package/multimedia/libmad/libmad.mk +16 -5
@@ -4,18 +4,29 @@ # ############################################################# -LIBMAD_VERSION=0.15.1b -LIBMAD_SOURCE=libmad-$(LIBMAD_VERSION).tar.gz -LIBMAD_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/ -LIBMAD_INSTALL_STAGING=YES -LIBMAD_LIBTOOL_PATCH=NO +LIBMAD_VERSION = 0.15.1b +LIBMAD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/mad/ +LIBMAD_INSTALL_STAGING = YES +LIBMAD_LIBTOOL_PATCH = NO define LIBMAD_PREVENT_AUTOMAKE # Prevent automake from running. (cd $(@D); touch -c config* aclocal.m4 Makefile*); endef +define LIBMAD_INSTALL_STAGING_PC + $(INSTALL) -D package/multimedia/libmad/mad.pc \ + $(STAGING_DIR)/usr/lib/pkgconfig/mad.pc +endef + +define LIBMAD_INSTALL_TARGET_PC + $(INSTALL) -D package/multimedia/libmad/mad.pc \ + $(TARGET_DIR)/usr/lib/pkgconfig/mad.pc +endef + LIBMAD_POST_PATCH_HOOKS += LIBMAD_PREVENT_AUTOMAKE +LIBMAD_POST_INSTALL_STAGING_HOOKS += LIBMAD_INSTALL_STAGING_PC +LIBMAD_POST_INSTALL_TARGET_HOOKS += LIBMAD_INSTALL_TARGET_PC LIBMAD_CONF_OPT = \ --disable-debugging \
package/multimedia/libmad/mad.pc new file +11 -0
@@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: mad +Description: MPEG Audio Decoder +Requires: +Version: 0.15.1b +Libs: -L${libdir} -lmad -lm +Cflags: -I${includedir}
Signature · 1 line
1.7.3.4
PATCH 3/10 libmad: install pkgconfig file
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> new file mode 100644
Gustavo> index 0000000..d1b4801
Gustavo> --- /dev/null
Gustavo> +++ b/package/multimedia/libmad/mad.pc
Gustavo> @@ -0,0 +1,11 @@
Gustavo> +prefix=/usr
Gustavo> +exec_prefix=${prefix}
Gustavo> +libdir=${exec_prefix}/lib
Gustavo> +includedir=${prefix}/include
Gustavo> +
Gustavo> +Name: mad
Gustavo> +Description: MPEG Audio Decoder
Gustavo> +Requires:
Gustavo> +Version: 0.15.1b
Gustavo> +Libs: -L${libdir} -lmad -lm
Do we really need -lm? It's not in mad.pc on my Debian machine, and I don't see any use of math.h in libmad.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/10 libmad: install pkgconfig file
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
Hi,
Gustavo> +Description: MPEG Audio Decoder
Gustavo> +Requires:
Gustavo> +Version: 0.15.1b
Gustavo> +Libs: -L${libdir} -lmad -lm
Peter> Do we really need -lm? It's not in mad.pc on my Debian machine, and I Peter> don't see any use of math.h in libmad.
From the Debian package changelog:
* Don't set -lm in the mad.pc file. libmad doesn't use any math function.
http://packages.debian.org/changelogs/pool/main/libm/libmad/libmad_0.15.1b-5/changelog
Committed without -lm, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/10 wavpack: new package
In reply to Gustavo ZacariasAdd new wavpack package, another lossless codec like flac.
--- package/multimedia/Config.in | 1 + package/multimedia/wavpack/Config.in | 10 ++++++++++ package/multimedia/wavpack/wavpack.mk | 12 ++++++++++++ 3 files changed, 23 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/wavpack/Config.in create mode 100644 package/multimedia/wavpack/wavpack.mk
package/multimedia/Config.in +1 -0
@@ -33,4 +33,5 @@ source "package/multimedia/taglib/Config.in" source "package/multimedia/tremor/Config.in" source "package/multimedia/vlc/Config.in" source "package/multimedia/vorbis-tools/Config.in" +source "package/multimedia/wavpack/Config.in" endmenu
package/multimedia/wavpack/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_WAVPACK + bool "wavpack" + help + WavPack is a completely open audio compression format providing + lossless, high-quality lossy, and a unique hybrid compression mode. + + Works on softfloat but it's not recommended since it uses + a big deal of CPU power. + + http://www.wavpack.com/
package/multimedia/wavpack/wavpack.mk new file +12 -0
@@ -0,0 +1,12 @@ +################################################################################ +# +# wavpack +# +################################################################################ + +WAVPACK_VERSION = 4.60.1 +WAVPACK_SITE = http://www.wavpack.com +WAVPACK_SOURCE = wavpack-$(WAVPACK_VERSION).tar.bz2 +WAVPACK_INSTALL_STAGING = YES + +$(eval $(call AUTOTARGETS,package/multimedia,wavpack))
Signature · 1 line
1.7.3.4
PATCH 4/10 wavpack: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Add new wavpack package, another lossless codec like flac. Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> package/multimedia/Config.in | 1 + Gustavo> package/multimedia/wavpack/Config.in | 10 ++++++++++ Gustavo> package/multimedia/wavpack/wavpack.mk | 12 ++++++++++++ Gustavo> 3 files changed, 23 insertions(+), 0 deletions(-) Gustavo> create mode 100644 package/multimedia/wavpack/Config.in Gustavo> create mode 100644 package/multimedia/wavpack/wavpack.mk
It seems like it needs iconv:
checking for ANSI C header files... (cached) yes
checking for cos in -lm... yes
checking host system type... (cached) powerpc-unknown-linux-gnu checking iconv.h usability... no
checking iconv.h presence... no
checking for iconv.h... no
configure: error: Can't find iconv headers.
make[1]: *** [/home/peko/source/buildroot/output2/build/wavpack-4.60.1/.stamp_configured] Error 1
Care to fix and resend?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/10 wavpack: new package
In reply to Gustavo ZacariasQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Hi,
Gustavo> +++ b/package/multimedia/wavpack/Config.in Gustavo> @@ -0,0 +1,10 @@
Gustavo> +config BR2_PACKAGE_WAVPACK
Gustavo> + bool "wavpack"
Gustavo> + help
Gustavo> + WavPack is a completely open audio compression format providing
Gustavo> + lossless, high-quality lossy, and a unique hybrid compression mode.
Gustavo> +
Gustavo> + Works on softfloat but it's not recommended since it uses
Gustavo> + a big deal of CPU power.
CPUs without HW FPU are not necessarily low performance for integer calculations. I don't know anything about wavpack, but from the wikipedia page it seems like it doesn't use much FPU:
No floating-point arithmetic is used in WavPack's data path because, according to the author, integer operations are less susceptible to subtle chip-to-chip variations that could corrupt the lossless nature of the compression (the Pentium floating point bug being an example). It is possible that a lossless compressor that used floating-point math could generate different output when running on that faulty Pentium. Even disregarding actual bugs, floating-point math is complicated enough that there could be subtle differences between "correct" implementations that could cause trouble for this type of application.
So I would just drop this sentence.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/10 wavpack: new package
Quoted 14 lines · Peter Korsgaard
CPUs without HW FPU are not necessarily low performance for integer calculations. I don't know anything about wavpack, but from the wikipedia page it seems like it doesn't use much FPU:
No floating-point arithmetic is used in WavPack's data path because, according to the author, integer operations are less susceptible to subtle chip-to-chip variations that could corrupt the lossless nature of the compression (the Pentium floating point bug being an example). It is possible that a lossless compressor that used floating-point math could generate different output when running on that faulty Pentium. Even disregarding actual bugs, floating-point math is complicated enough that there could be subtle differences between "correct" implementations that could cause trouble for this type of application.
Quoted 1 line
So I would just drop this sentence.
Fair enough, armv4t @ 200 mhz seems to handle it OK at ~50% CPU load.
PATCH 5/10 libsamplerate: new package
In reply to Gustavo Zacarias--- package/multimedia/Config.in | 1 + package/multimedia/libsamplerate/Config.in | 9 +++++++++ package/multimedia/libsamplerate/libsamplerate.mk | 17 +++++++++++++++++ 3 files changed, 27 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/libsamplerate/Config.in create mode 100644 package/multimedia/libsamplerate/libsamplerate.mk
package/multimedia/Config.in +1 -0
@@ -20,6 +20,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/libsamplerate/Config.in" source "package/multimedia/libsndfile/Config.in" source "package/multimedia/libtheora/Config.in" source "package/multimedia/libvorbis/Config.in"
package/multimedia/libsamplerate/Config.in new file +9 -0
@@ -0,0 +1,9 @@ +config BR2_PACKAGE_LIBSAMPLERATE + bool "libsamplerate" + help + Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter + for audio. One example of where such a thing would be useful + is converting audio from the CD sample rate of 44.1kHz + to the 48kHz sample rate used by DAT players. + + http://www.mega-nerd.com/SRC/
package/multimedia/libsamplerate/libsamplerate.mk new file +17 -0
@@ -0,0 +1,17 @@ +################################################################################ +# +# libsamplerate +# +################################################################################ + +LIBSAMPLERATE_VERSION = 0.1.7 +LIBSAMPLERATE_SITE = http://www.mega-nerd.com/SRC +LIBSAMPLERATE_INSTALL_STAGING = YES +LIBSAMPLERATE_DEPENDENCIES = host-pkg-config +LIBSAMPLERATE_CONF_OPT = --disable-fftw --program-transform-name='' + +ifeq ($(BR2_PACKAGE_LIBSNDFILE),y) +LIBSAMPLERATE_DEPENDENCIES += libsndfile +endif + +$(eval $(call AUTOTARGETS,package/multimedia,libsamplerate))
Signature · 1 line
1.7.3.4
PATCH 5/10 libsamplerate: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> package/multimedia/Config.in | 1 + Gustavo> package/multimedia/libsamplerate/Config.in | 9 +++++++++ Gustavo> package/multimedia/libsamplerate/libsamplerate.mk | 17 +++++++++++++++++
Gustavo> +++ b/package/multimedia/libsamplerate/Config.in Gustavo> @@ -0,0 +1,9 @@
Gustavo> +config BR2_PACKAGE_LIBSAMPLERATE
Gustavo> + bool "libsamplerate"
Gustavo> + help
Gustavo> + Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter Gustavo> + for audio. One example of where such a thing would be useful Gustavo> + is converting audio from the CD sample rate of 44.1kHz Gustavo> + to the 48kHz sample rate used by DAT players.
You have a long line / trailing spaces her, but I've fixed that. Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 6/10 libcuefile: new package
In reply to Gustavo Zacarias--- package/multimedia/Config.in | 1 + package/multimedia/libcuefile/Config.in | 6 ++++ package/multimedia/libcuefile/libcuefile.mk | 41 +++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/libcuefile/Config.in create mode 100644 package/multimedia/libcuefile/libcuefile.mk
package/multimedia/Config.in +1 -0
@@ -12,6 +12,7 @@ source "package/multimedia/gst-plugins-bad/Config.in" source "package/multimedia/gst-plugins-ugly/Config.in" source "package/multimedia/libao/Config.in" source "package/multimedia/libcdaudio/Config.in" +source "package/multimedia/libcuefile/Config.in" source "package/multimedia/libdvdread/Config.in" source "package/multimedia/libdvdnav/Config.in" source "package/multimedia/libid3tag/Config.in"
package/multimedia/libcuefile/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBCUEFILE + bool "libcuefile" + help + Cue File library from Musepack + + http://www.musepack.net/
package/multimedia/libcuefile/libcuefile.mk new file +41 -0
41 lines not on this page · raw message
Signature · 1 line
1.7.3.4
PATCH 6/10 libcuefile: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> package/multimedia/Config.in | 1 + Gustavo> package/multimedia/libcuefile/Config.in | 6 ++++ Gustavo> package/multimedia/libcuefile/libcuefile.mk | 41 +++++++++++++++++++++++++++ Gustavo> 3 files changed, 48 insertions(+), 0 deletions(-) Gustavo> create mode 100644 package/multimedia/libcuefile/Config.in Gustavo> create mode 100644 package/multimedia/libcuefile/libcuefile.mk
Gustavo> +++ b/package/multimedia/libcuefile/libcuefile.mk
Gustavo> @@ -0,0 +1,41 @@
Gustavo> +################################################################################ Gustavo> +#
Gustavo> +# libcuefile
Gustavo> +#
Gustavo> +################################################################################ Gustavo> +
Gustavo> +LIBCUEFILE_VERSION = r453
Gustavo> +LIBCUEFILE_SITE = http://files.musepack.net/source
Gustavo> +LIBCUEFILE_SOURCE = libcuefile_$(LIBCUEFILE_VERSION).tar.gz Gustavo> +LIBCUEFILE_DEPENDENCIES = host-cmake
Gustavo> +LIBCUEFILE_INSTALL_STAGING = YES
Gustavo> +
Gustavo> +# CMake doesn't support having the --sysroot option directly in the Gustavo> +# compiler path, so move this option to the CFLAGS/CXXFLAGS variables. Gustavo> +LIBCUEFILE_TARGET_CC = $(filter-out --sysroot=%,$(TARGET_CC)) Gustavo> +LIBCUEFILE_TARGET_CFLAGS = $(filter --sysroot=%,$(TARGET_CC)) $(TARGET_CFLAGS)
Cmake also seems to have problems with ccache:
CMake Error: your C compiler: "/home/peko/source/buildroot/output2/host/usr/bin/ccache /home/peko/source/buildroot/output2/host/usr/bin/powerpc-unknown-linux-uclibc-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
make[1]: *** [/home/peko/source/buildroot/output2/build/libcuefile-r453/.stamp_configured] Error 1
I don't know anything about cmake. Do you have any idea how to fix this? Disable ccache for this build for now?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 6/10 libcuefile: new package
Quoted 10 lines · Peter Korsgaard
Cmake also seems to have problems with ccache:
CMake Error: your C compiler: "
/home/peko/source/buildroot/output2/host/usr/bin/ccache/home/peko/source/buildroot/output2/host/usr/bin/powerpc-unknown-linux-uclibc-gcc" was not found. Please setCMAKE_C_COMPILERto a valid compiler path or name.
-- Configuring incomplete, errors occurred!
make[1]: *** [/home/peko/source/buildroot/output2/build/libcuefile-r453/.stamp_configured] Error 1I don't know anything about cmake. Do you have any idea how to fix this? Disable ccache for this build for now?
*SIGH*
That's the reason i wrote "oh no, cmake" on IRC.
Does cdrkit fail too with ccache? (the other cmake package) If there's an easy way to skip ccache for this package only i'm all for it until we get cmake infra sorted out.
PATCH 6/10 libcuefile: new package
Quoted 10 lines · Gustavo Zacarias
Quoted 8 lines · Peter Korsgaard
Cmake also seems to have problems with ccache:
CMake Error: your C compiler: "
/home/peko/source/buildroot/output2/host/usr/bin/ccache/home/peko/source/buildroot/output2/host/usr/bin/powerpc-unknown-linux-uclibc-gcc" was not found. ? Please setCMAKE_C_COMPILERto a valid compiler path or name. -- Configuring incomplete, errors occurred!
make[1]: ***
[/home/peko/source/buildroot/output2/build/libcuefile-r453/.stamp_configured]
Error 1
Quoted 8 lines
Quoted 2 lines
I don't know anything about cmake. Do you have any idea how to fix this? Disable ccache for this build for now?
*SIGH*
That's the reason i wrote "oh no, cmake" on IRC.
Does cdrkit fail too with ccache? (the other cmake package) If there's an easy way to skip ccache for this package only i'm all for it until we get cmake infra sorted out.
Yes, cdrkit also fail with ccache enabled. It is an issue with CMake itself so any CMake based package would fail in the same way. I have seen this issue too when working with the CMake infrastructure.
I've read that the easiest way to get CMake to work with ccache is by symlinking gcc to ccache. Could we do this?
Best regards,
Bj?rn Forsman
PATCH 6/10 libcuefile: new package
In reply to Gustavo ZacariasQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Hi,
Quoted 2 lines
Quoted 2 lines
I don't know anything about cmake. Do you have any idea how to fix this? Disable ccache for this build for now?
Gustavo> *SIGH*
Gustavo> That's the reason i wrote "oh no, cmake" on IRC.
:/
Gustavo> Does cdrkit fail too with ccache? (the other cmake package)
Just tried, and it does:
CMake Error: your C compiler: "/home/peko/source/buildroot/output2/host/usr/bin/ccache /home/peko/source/buildroot/output2/host/usr/bin/powerpc-unknown-linux-uclibc-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
Gustavo> If there's an easy way to skip ccache for this package only Gustavo> i'm all for it until we get cmake infra sorted out.
Presumably we just need to use TARGET_CC_NOCCACHE? A quick test with cdrkit seems to confirm it.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 6/10 libcuefile: new package
In reply to Gustavo ZacariasQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> package/multimedia/Config.in | 1 + Gustavo> package/multimedia/libcuefile/Config.in | 6 ++++ Gustavo> package/multimedia/libcuefile/libcuefile.mk | 41 +++++++++++++++++++++++++++
Committed with the TARGET_CC_NOCCACHE fix for cmake.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 7/10 libreplaygain: new package
In reply to Gustavo Zacarias--- package/multimedia/Config.in | 1 + package/multimedia/libreplaygain/Config.in | 6 ++++++ package/multimedia/libreplaygain/libreplaygain.mk | 13 +++++++++++++ 3 files changed, 20 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/libreplaygain/Config.in create mode 100644 package/multimedia/libreplaygain/libreplaygain.mk
package/multimedia/Config.in +1 -0
@@ -21,6 +21,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/libreplaygain/Config.in" source "package/multimedia/libsamplerate/Config.in" source "package/multimedia/libsndfile/Config.in" source "package/multimedia/libtheora/Config.in"
package/multimedia/libreplaygain/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_LIBREPLAYGAIN + bool "libreplaygain" + help + Replay Gain library from Musepack + + http://www.musepack.net/
package/multimedia/libreplaygain/libreplaygain.mk new file +13 -0
@@ -0,0 +1,13 @@ +################################################################################ +# +# libreplaygain +# +################################################################################ + +LIBREPLAYGAIN_VERSION = r453 +LIBREPLAYGAIN_SITE = http://files.musepack.net/source +LIBREPLAYGAIN_SOURCE = libreplaygain_$(LIBREPLAYGAIN_VERSION).tar.gz +LIBREPLAYGAIN_AUTORECONF = YES +LIBREPLAYGAIN_INSTALL_STAGING = YES + +$(eval $(call AUTOTARGETS,package/multimedia,libreplaygain))
Signature · 1 line
1.7.3.4
PATCH 7/10 libreplaygain: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> +++ b/package/multimedia/libreplaygain/libreplaygain.mk
Gustavo> @@ -0,0 +1,13 @@
Gustavo> +################################################################################ Gustavo> +#
Gustavo> +# libreplaygain
Gustavo> +#
Gustavo> +################################################################################ Gustavo> +
Gustavo> +LIBREPLAYGAIN_VERSION = r453
Gustavo> +LIBREPLAYGAIN_SITE = http://files.musepack.net/source
Gustavo> +LIBREPLAYGAIN_SOURCE = libreplaygain_$(LIBREPLAYGAIN_VERSION).tar.gz Gustavo> +LIBREPLAYGAIN_AUTORECONF = YES
Why autoreconf?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 7/10 libreplaygain: new package
Quoted 13 lines · Peter Korsgaard
Gustavo> +++
b/package/multimedia/libreplaygain/libreplaygain.mk
Gustavo> @@ -0,0 +1,13 @@
Gustavo> +################################################################################ Gustavo> +#
Gustavo> +# libreplaygain
Gustavo> +#
Gustavo> +################################################################################ Gustavo> +
Gustavo> +LIBREPLAYGAIN_VERSION = r453
Gustavo> +LIBREPLAYGAIN_SITE = http://files.musepack.net/source
Gustavo> +LIBREPLAYGAIN_SOURCE = libreplaygain_$(LIBREPLAYGAIN_VERSION).tar.gz Gustavo> +LIBREPLAYGAIN_AUTORECONF = YES
Quoted 1 line
Why autoreconf?
Why don't they ship configure? :-)
PATCH 7/10 libreplaygain: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> +LIBREPLAYGAIN_VERSION = r453
Gustavo> +LIBREPLAYGAIN_SITE = http://files.musepack.net/source
Gustavo> +LIBREPLAYGAIN_SOURCE = libreplaygain_$(LIBREPLAYGAIN_VERSION).tar.gz Gustavo> +LIBREPLAYGAIN_AUTORECONF = YES
Quoted 2 lines
Quoted 2 lines
Why autoreconf?
Gustavo> Why don't they ship configure? :-)
Ahh ok. Committed with a comment about why we need autoreconf. Thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 8/10 musepack: new package
In reply to Gustavo Zacarias--- package/multimedia/Config.in | 1 + package/multimedia/musepack/Config.in | 11 +++++++++++ package/multimedia/musepack/musepack.mk | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/musepack/Config.in create mode 100644 package/multimedia/musepack/musepack.mk
package/multimedia/Config.in +1 -0
@@ -29,6 +29,7 @@ source "package/multimedia/libvorbis/Config.in" source "package/multimedia/madplay/Config.in" source "package/multimedia/mpg123/Config.in" source "package/multimedia/mplayer/Config.in" +source "package/multimedia/musepack/Config.in" source "package/multimedia/speex/Config.in" source "package/multimedia/swfdec/Config.in" source "package/multimedia/festival/Config.in"
package/multimedia/musepack/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_MUSEPACK + bool "musepack" + select BR2_PACKAGE_LIBCUEFILE + select BR2_PACKAGE_LIBREPLAYGAIN + help + Musepack is an audio compression format with a strong emphasis + on high quality. It's not lossless, but it is designed + for transparency, so that you won't be able to hear differences + between the original wave file and the much smaller MPC file. + + http://www.musepack.net/
package/multimedia/musepack/musepack.mk new file +14 -0
@@ -0,0 +1,14 @@ +################################################################################ +# +# musepack +# +################################################################################ + +MUSEPACK_VERSION = r435 +MUSEPACK_SITE = http://files.musepack.net/source +MUSEPACK_SOURCE = musepack_src_$(MUSEPACK_VERSION).tar.gz +MUSEPACK_DEPENDENCIES = libcuefile libreplaygain +MUSEPACK_AUTORECONF = YES +MUSEPACK_INSTALL_STAGING = YES + +$(eval $(call AUTOTARGETS,package/multimedia,musepack))
Signature · 1 line
1.7.3.4
PATCH 8/10 musepack: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> package/multimedia/Config.in | 1 + Gustavo> package/multimedia/musepack/Config.in | 11 +++++++++++ Gustavo> package/multimedia/musepack/musepack.mk | 14 ++++++++++++++ Gustavo> 3 files changed, 26 insertions(+), 0 deletions(-) Gustavo> create mode 100644 package/multimedia/musepack/Config.in Gustavo> create mode 100644 package/multimedia/musepack/musepack.mk
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 9/10 faad2: new package
In reply to Gustavo Zacarias--- package/multimedia/Config.in | 1 + package/multimedia/faad2/Config.in | 6 ++++++ package/multimedia/faad2/faad2.mk | 11 +++++++++++ 3 files changed, 18 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/faad2/Config.in create mode 100644 package/multimedia/faad2/faad2.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/faad2/Config.in" source "package/multimedia/flac/Config.in" source "package/multimedia/ffmpeg/Config.in" source "package/multimedia/gstreamer/Config.in"
package/multimedia/faad2/Config.in new file +6 -0
@@ -0,0 +1,6 @@ +config BR2_PACKAGE_FAAD2 + bool "faad2" + help + FAAD2 is an open source MPEG-4 and MPEG-2 AAC decoder, + + http://www.audiocoding.com/faad2.html
package/multimedia/faad2/faad2.mk new file +11 -0
@@ -0,0 +1,11 @@ +################################################################################ +# +# faad2 +# +################################################################################ + +FAAD2_VERSION = 2.7 +FAAD2_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/faac +FAAD2_INSTALL_STAGING = YES + +$(eval $(call AUTOTARGETS,package/multimedia,faad2))
Signature · 1 line
1.7.3.4
PATCH 9/10 faad2: new package
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> package/multimedia/Config.in | 1 + Gustavo> package/multimedia/faad2/Config.in | 6 ++++++ Gustavo> package/multimedia/faad2/faad2.mk | 11 +++++++++++
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 10/10 mpd: new package
In reply to Gustavo ZacariasAdd the Music Player Daemon package.
Enjoy, send me beers ;)
--- package/multimedia/Config.in | 1 + package/multimedia/mpd/Config.in | 138 ++++++++++++++++++++++++++++++++++++++ package/multimedia/mpd/S95mpd | 30 ++++++++ package/multimedia/mpd/mpd.conf | 32 +++++++++ package/multimedia/mpd/mpd.mk | 85 +++++++++++++++++++++++ 5 files changed, 286 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/mpd/Config.in create mode 100755 package/multimedia/mpd/S95mpd create mode 100644 package/multimedia/mpd/mpd.conf create mode 100644 package/multimedia/mpd/mpd.mk
package/multimedia/Config.in +1 -0
@@ -28,6 +28,7 @@ source "package/multimedia/libsndfile/Config.in" source "package/multimedia/libtheora/Config.in" source "package/multimedia/libvorbis/Config.in" source "package/multimedia/madplay/Config.in" +source "package/multimedia/mpd/Config.in" source "package/multimedia/mpg123/Config.in" source "package/multimedia/mplayer/Config.in" source "package/multimedia/musepack/Config.in"
package/multimedia/mpd/Config.in new file +138 -0
138 lines not on this page · raw message
package/multimedia/mpd/S95mpd new file +30 -0
@@ -0,0 +1,30 @@ +#!/bin/sh + +start() { + echo -n "Starting mpd: " + start-stop-daemon --start --quiet --background --exec /usr/bin/mpd + echo "OK" +} + +stop() { + echo -n "Stopping mpd: " + start-stop-daemon --stop --quiet --pidfile /var/run/mpd.pid + echo "OK" +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + stop + sleep 1 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 +esac
package/multimedia/mpd/mpd.conf new file +32 -0
@@ -0,0 +1,32 @@ +# +# Sample configuration file for mpd +# This is a minimal configuration, see the manpage for more options +# + +# Directory where the music is stored +music_directory "/var/lib/mpd/music" + +# Directory where user-made playlists are stored (RW) +playlist_directory "/mnt/mpd/playlists" + +# Database file (RW) +db_file "/var/lib/mpd/database" + +# Log file (RW) +log_file "/var/log/mpd.log" + +# Process ID file (RW) +pid_file "/var/run/mpd.pid" + +# State file (RW) +state_file "/var/lib/mpd/state" + +# User id to run the daemon as +#user "nobody" + +# TCP socket binding +bind_to_address "any" +#bind_to_address "localhost" + +# Unix socket to listen on +bind_to_address "/var/lib/mpd/socket"
package/multimedia/mpd/mpd.mk new file +85 -0
85 lines not on this page · raw message
Signature · 1 line
1.7.3.4
PATCH 10/10 mpd: new package
Oh thank you ;) !!
I wanted to do this patch for so many months... But I hadn't so much time to do it.
So, thank you for your time and for your patch ;) I can cross this off my huge todo list !
Yoann Sculo
2011/1/18 Gustavo Zacarias <[email protected]>
Quoted 344 lines
Add the Music Player Daemon package.
Enjoy, send me beers ;)Signed-off-by Gustavo Zacarias <[email protected]>--- package/multimedia/Config.in | 1 + package/multimedia/mpd/Config.in | 138 ++++++++++++++++++++++++++++++++++++++ package/multimedia/mpd/S95mpd | 30 ++++++++ package/multimedia/mpd/mpd.conf | 32 +++++++++ package/multimedia/mpd/mpd.mk | 85 +++++++++++++++++++++++ 5 files changed, 286 insertions(+), 0 deletions(-) create mode 100644 package/multimedia/mpd/Config.in create mode 100755 package/multimedia/mpd/S95mpd create mode 100644 package/multimedia/mpd/mpd.conf create mode 100644 package/multimedia/mpd/mpd.mkpackage/multimedia/Config.in +1
-0@@ -28,6 +28,7 @@ source "package/multimedia/libsndfile/Config.in" source "package/multimedia/libtheora/Config.in" source "package/multimedia/libvorbis/Config.in" source "package/multimedia/madplay/Config.in" +source "package/multimedia/mpd/Config.in" source "package/multimedia/mpg123/Config.in" source "package/multimedia/mplayer/Config.in" source "package/multimedia/musepack/Config.in"package/multimedia/mpd/Config.in new file +138
-0@@ -0,0 +1,138 @@ +menuconfig BR2_PACKAGE_MPD + bool "mpd" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE + help + MPD is a flexible, powerful, server-side application + for playing music. Through plugins and libraries + it can play a variety of sound files while being + controlled by its network protocol. + + http://www.musicpd.org + +if BR2_PACKAGE_MPD + +config BR2_PACKAGE_MPD_ALSA + bool "alsa" + select BR2_PACKAGE_ALSA_LIB + help + Enable alsa output support. + +config BR2_PACKAGE_MPD_AO + bool "ao" + select BR2_PACKAGE_LIBAO + help + Enable libao output support. + +config BR2_PACKAGE_MPD_BZIP2 + bool "bzip2" + select BR2_PACKAGE_BZIP2 + help + Enable bzip2 archive support. + +config BR2_PACKAGE_MPD_CURL + bool "curl" + select BR2_PACKAGE_LIBCURL + help + Enable curl streaming (http) support. + +config BR2_PACKAGE_MPD_FAAD2 + bool "faad2" + select BR2_PACKAGE_FAAD2 + help + Enable faad2 input support. + Select this if you want to play back MP4/AAC files. + +config BR2_PACKAGE_MPD_FLAC + bool "flac" + select BR2_PACKAGE_FLAC + help + Enable flac input/streaming support. + Select this if you want to play back FLAC files. + +config BR2_PACKAGE_MPD_LIBSAMPLERATE + bool "libsamplerate" + select BR2_PACKAGE_LIBSAMPLERATE + help + Enable libsamplerate input support. + Select this for software sample rate conversion. + +config BR2_PACKAGE_MPD_LIBSNDFILE + bool "libsndfile" + select BR2_PACKAGE_LIBSNDFILE + help + Enable libsndfile input/streaming support. + Select this if you want to play back WAV files. + +config BR2_PACKAGE_MPD_MAD + bool "mad" + select BR2_PACKAGE_LIBID3TAG + select BR2_PACKAGE_LIBMAD + help + Enable mad input support. + Select this if you want to play back MP3 files. + mpg123 has better quality support (24-bit) but doesn't seek. + +config BR2_PACKAGE_MPD_MPG123 + bool "mpg123" + select BR2_PACKAGE_LIBID3TAG + select BR2_PACKAGE_MPG123 + help + Enable mpg123 input support. + Select this if you want to play back MP3 files. + mpg123 has better quality support (24-bit) but doesn't seek. + +config BR2_PACKAGE_MPD_MUSEPACK + bool "musepack" + select BR2_PACKAGE_LIBCUE + select BR2_PACKAGE_LIBREPLAYGAIN + select BR2_PACKAGE_MUSEPACK + help + Enable musepack input support. + Select this if you want to play back MPC files. + +config BR2_PACKAGE_MPD_SQLITE + bool "sqlite" + select BR2_PACKAGE_SQLITE + help + Enable sqlite database support. + If you don't use sqlite it will use an ASCII database. + +config BR2_PACKAGE_MPD_TCP + bool "tcp sockets" + default y + help + Enable mpd to listen on tcp sockets. + + You want this on if mpd and the client(s) work + on different machines (the usual scenario). + +config BR2_PACKAGE_MPD_TREMOR + bool "tremor" + select BR2_PACKAGE_LIBOGG + select BR2_PACKAGE_TREMOR + help + Enable vorbis input support. + Select this if you want to play back OGG files. + +config BR2_PACKAGE_MPD_VORBIS + bool "vorbis" + select BR2_PACKAGE_LIBOGG + select BR2_PACKAGE_LIBVORBIS + help + Enable vorbis input/streaming support. + Select this if you want to play back OGG files. + +config BR2_PACKAGE_MPD_WAVPACK + bool "wavpack" + select BR2_PACKAGE_WAVPACK + help + Enable wavpack input support. + Select this if you want to play back WV files. + +endif + +comment "mpd requires a toolchain with C++ and WCHAR support" + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHARpackage/multimedia/mpd/S95mpd new file +30
-0@@ -0,0 +1,30 @@ +#!/bin/sh + +start() { + echo -n "Starting mpd: " + start-stop-daemon --start --quiet --background --exec /usr/bin/mpd + echo "OK" +} + +stop() { + echo -n "Stopping mpd: " + start-stop-daemon --stop --quiet --pidfile /var/run/mpd.pid + echo "OK" +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + restart|reload) + stop + sleep 1 + start + ;; + *) + echo $"Usage: $0 {start|stop|restart}" + exit 1 +esacpackage/multimedia/mpd/mpd.conf new file +32
-0@@ -0,0 +1,32 @@ +# +# Sample configuration file for mpd +# This is a minimal configuration, see the manpage for more options +# + +# Directory where the music is stored +music_directory "/var/lib/mpd/music" + +# Directory where user-made playlists are stored (RW) +playlist_directory "/mnt/mpd/playlists" + +# Database file (RW) +db_file "/var/lib/mpd/database" + +# Log file (RW) +log_file "/var/log/mpd.log" + +# Process ID file (RW) +pid_file "/var/run/mpd.pid" + +# State file (RW) +state_file "/var/lib/mpd/state" + +# User id to run the daemon as +#user "nobody" + +# TCP socket binding +bind_to_address "any" +#bind_to_address "localhost" + +# Unix socket to listen on +bind_to_address "/var/lib/mpd/socket"package/multimedia/mpd/mpd.mk new file +8
-0@@ -0,0 +1,85 @@ +############################################################# +# +# mpd +# +############################################################# + +MPD_VERSION = 0.16.1 +MPD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/musicpd
package/multimedia/mpd/mpd.mk new file +77
-1+MPD_DEPENDENCIES = host-pkg-config libglib2 + +# Config.in selects most options to make life easier and avoid guess work + +ifeq ($(BR2_PACKAGE_ALSA_LIB),y) +MPD_DEPENDENCIES += alsa-lib +endif + +ifeq ($(BR2_PACKAGE_LIBAO),y) +MPD_DEPENDENCIES += libao +endif + +ifeq ($(BR2_PACKAGE_MPD_BZIP2),y) +MPD_DEPENDENCIES += bzip2 +MPD_CONF_OPT += --enable-bzip2 +endif + +ifeq ($(BR2_PACKAGE_FAAD2),y) +MPD_DEPENDENCIES += faad2 +endif + +ifeq ($(BR2_PACKAGE_FLAC),y) +MPD_DEPENDENCIES += flac +endif + +ifeq ($(BR2_PACKAGE_LIBCURL),y) +MPD_DEPENDENCIES += libcurl +endif + +ifeq ($(BR2_PACKAGE_LIBSAMPLERATE),y) +MPD_DEPENDENCIES += libsamplerate +endif + +ifeq ($(BR2_PACKAGE_LIBSNDFILE),y) +MPD_DEPENDENCIES += libsndfile +endif + +ifeq ($(BR2_PACKAGE_LIBVORBIS),y) +MPD_DEPENDENCIES += libvorbis +endif + +ifeq ($(BR2_PACKAGE_MPG123),y) +MPD_DEPENDENCIES += libid3tag mpg123 +endif + +ifeq ($(BR2_PACKAGE_MUSEPACK),y) +MPD_DEPENDENCIES += musepack +endif + +ifeq ($(BR2_PACKAGE_SQLITE),y) +MPD_DEPENDENCIES += sqlite +endif + +ifneq ($(BR2_PACKAGE_MPD_TCP),y) +MPD_CONF_OPT += --disable-tcp +endif + +ifeq ($(BR2_PACKAGE_TREMOR),y) +MPD_DEPENDENCIES += tremor +MPD_CONF_OPT += --with-tremor +endif + +ifeq ($(BR2_PACKAGE_WAVPACK),y) +MPD_DEPENDENCIES += wavpack +endif + +define MPD_INSTALL_EXTRA_FILES + [ ! -f $(TARGET_DIR)/etc/mpd.conf ] && \ + $(INSTALL) -D package/multimedia/mpd/mpd.conf \ + $(TARGET_DIR)/etc/mpd.conf + $(INSTALL) -m 0755 -D package/multimedia/mpd/S95mpd \ + $(TARGET_DIR)/etc/init.d/S95mpd +endef + +MPD_POST_INSTALL_TARGET_HOOKS += MPD_INSTALL_EXTRA_FILES + +$(eval $(call AUTOTARGETS,package/multimedia,mpd)) --1.7.3.4
Quoted 5 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110118/36247df4/attachment-0001.html>
PATCH 10/10 mpd: new package
In reply to Gustavo ZacariasQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Add the Music Player Daemon package.
Gustavo> Enjoy, send me beers ;)
Come to FOSDEM and I'll buy you one ;)
Gustavo> diff --git a/package/multimedia/mpd/Config.in b/package/multimedia/mpd/Config.in Gustavo> new file mode 100644
Gustavo> index 0000000..b902b7b
Gustavo> --- /dev/null
Gustavo> +++ b/package/multimedia/mpd/Config.in
Gustavo> @@ -0,0 +1,138 @@
Gustavo> +menuconfig BR2_PACKAGE_MPD
Gustavo> + bool "mpd"
Gustavo> + depends on BR2_INSTALL_LIBSTDCPP
Gustavo> + depends on BR2_USE_WCHAR
Gustavo> + select BR2_PACKAGE_LIBGLIB2
Gustavo> + select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
Gustavo> + help
Gustavo> + MPD is a flexible, powerful, server-side application Gustavo> + for playing music. Through plugins and libraries Gustavo> + it can play a variety of sound files while being Gustavo> + controlled by its network protocol. Gustavo> + Gustavo> + http://www.musicpd.org Gustavo> + Gustavo> +if BR2_PACKAGE_MPD Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_ALSA Gustavo> + bool "alsa" Gustavo> + select BR2_PACKAGE_ALSA_LIB Gustavo> + help Gustavo> + Enable alsa output support. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_AO Gustavo> + bool "ao" Gustavo> + select BR2_PACKAGE_LIBAO Gustavo> + help Gustavo> + Enable libao output support. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_BZIP2 Gustavo> + bool "bzip2" Gustavo> + select BR2_PACKAGE_BZIP2 Gustavo> + help Gustavo> + Enable bzip2 archive support. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_CURL Gustavo> + bool "curl" Gustavo> + select BR2_PACKAGE_LIBCURL Gustavo> + help Gustavo> + Enable curl streaming (http) support. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_FAAD2 Gustavo> + bool "faad2" Gustavo> + select BR2_PACKAGE_FAAD2 Gustavo> + help Gustavo> + Enable faad2 input support. Gustavo> + Select this if you want to play back MP4/AAC files. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_FLAC Gustavo> + bool "flac" Gustavo> + select BR2_PACKAGE_FLAC Gustavo> + help Gustavo> + Enable flac input/streaming support. Gustavo> + Select this if you want to play back FLAC files. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_LIBSAMPLERATE Gustavo> + bool "libsamplerate" Gustavo> + select BR2_PACKAGE_LIBSAMPLERATE Gustavo> + help Gustavo> + Enable libsamplerate input support. Gustavo> + Select this for software sample rate conversion. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_LIBSNDFILE Gustavo> + bool "libsndfile" Gustavo> + select BR2_PACKAGE_LIBSNDFILE Gustavo> + help Gustavo> + Enable libsndfile input/streaming support. Gustavo> + Select this if you want to play back WAV files. Gustavo> + Gustavo> +config BR2_PACKAGE_MPD_MAD Gustavo> + bool "mad" Gustavo> + select BR2_PACKAGE_LIBID3TAG Gustavo> + select BR2_PACKAGE_LIBMAD Gustavo> + help Gustavo> + Enable mad input support. Gustavo> + Select this if you want to play back MP3 files. Gustavo> + mpg123 has better quality support (24-bit) but doesn't seek.
I think it's a bit confusing to see the reference to mpg123 here.
Gustavo> +
Gustavo> +config BR2_PACKAGE_MPD_MPG123
Gustavo> + bool "mpg123"
Gustavo> + select BR2_PACKAGE_LIBID3TAG
Gustavo> + select BR2_PACKAGE_MPG123
Gustavo> + help
Gustavo> + Enable mpg123 input support. Gustavo> + Select this if you want to play back MP3 files. Gustavo> + mpg123 has better quality support (24-bit) but doesn't seek.
Gustavo> +
Gustavo> +config BR2_PACKAGE_MPD_MUSEPACK
Gustavo> + bool "musepack"
Gustavo> + select BR2_PACKAGE_LIBCUE
Gustavo> + select BR2_PACKAGE_LIBREPLAYGAIN
Gustavo> + select BR2_PACKAGE_MUSEPACK
Gustavo> + help
Gustavo> + Enable musepack input support.
Gustavo> + Select this if you want to play back MPC files.
Gustavo> +
Gustavo> +config BR2_PACKAGE_MPD_SQLITE
Gustavo> + bool "sqlite"
Gustavo> + select BR2_PACKAGE_SQLITE
Gustavo> + help
Gustavo> + Enable sqlite database support.
Gustavo> + If you don't use sqlite it will use an ASCII database.
Gustavo> +
Gustavo> +config BR2_PACKAGE_MPD_TCP
Gustavo> + bool "tcp sockets"
Gustavo> + default y
Gustavo> + help
Gustavo> + Enable mpd to listen on tcp sockets.
Gustavo> +
Gustavo> + You want this on if mpd and the client(s) work
Gustavo> + on different machines (the usual scenario).
Gustavo> +
Gustavo> +config BR2_PACKAGE_MPD_TREMOR
Gustavo> + bool "tremor"
Gustavo> + select BR2_PACKAGE_LIBOGG
Gustavo> + select BR2_PACKAGE_TREMOR
Gustavo> + help
Gustavo> + Enable vorbis input support.
Gustavo> + Select this if you want to play back OGG files.
Gustavo> +
Gustavo> +config BR2_PACKAGE_MPD_VORBIS
Gustavo> + bool "vorbis"
Gustavo> + select BR2_PACKAGE_LIBOGG
Gustavo> + select BR2_PACKAGE_LIBVORBIS
Gustavo> + help
Gustavo> + Enable vorbis input/streaming support.
Gustavo> + Select this if you want to play back OGG files.
Trailing space. I think it would be good to add a little note about when/why someone would want to use tremor instead of vorbis and otherwise.
Gustavo> +++ b/package/multimedia/mpd/mpd.mk
Gustavo> @@ -0,0 +1,85 @@
Gustavo> +############################################################# Gustavo> +#
Gustavo> +# mpd
Gustavo> +#
Gustavo> +############################################################# Gustavo> +
Gustavo> +MPD_VERSION = 0.16.1
Gustavo> +MPD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/musicpd
Gustavo> +MPD_DEPENDENCIES = host-pkg-config libglib2
Gustavo> +
Gustavo> +# Config.in selects most options to make life easier and avoid guess work Gustavo> +
Gustavo> +ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
Gustavo> +MPD_DEPENDENCIES += alsa-lib
Gustavo> +endif
This is a bit confusing. The users sees config options to enable/disable support for the various plugins, but those choices are not taken into consideration.
E.G. if the user for some reason has faad enabled, but are not planning on using it with mpd, then it will still be enabled no matter what they set BR2_PACKAGE_MPD_FAAD2 to.
I think we should either get rid of those options, and just build plugins for whatever libs are enabled (not really optimal), or otherwise check the options here and pass the correct --enable / --disable options to force the corresponding plugins to be enabled or not.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 10/10 mpd: new package
Quoted 4 lines · Peter Korsgaard
Gustavo> Add the Music Player Daemon package.
Gustavo> Enjoy, send me beers ;)Come to FOSDEM and I'll buy you one ;)
Heh, that would be far more expensive that any insane amount of beer people may throw my way :)
Quoted 1 line
I think it's a bit confusing to see the reference to mpg123 here.
It's just informative.
If you use mad to decode you get seek, but lack 24 bit love. If you use mpg123 to decode you get 24 bit decode love but lack seek. From what i could test mpd chooses the best one for the file you're listening to, meaning most of the time mad.
However i lack a 24-bit encoded mp3 file to test reality (if it goes to mpg123 for those), and also it's complicated by the fact that mpg123 won't do 24-bit on softfloat.
Quoted 3 lines
Trailing space. I think it would be good to add a little note about when/why someone would want to use tremor instead of vorbis and otherwise.
Added.
Quoted 4 lines
This is a bit confusing. The users sees config options to enable/disable support for the various plugins, but those choices are not taken into consideration.
Quoted 8 lines
E.G. if the user for some reason has faad enabled, but are not planning on using it with mpd, then it will still be enabled no matter what they set
BR2_PACKAGE_MPD_FAAD2to.I think we should either get rid of those options, and just build plugins for whatever libs are enabled (not really optimal), or otherwise check the options here and pass the correct --enable / --disable options to force the corresponding plugins to be enabled or not.
Getting rid of the Config.in options will be a mess for users to know how to get things rolling.
Most of the time mpd autodetects what it has, but not always, some options must be explicitly enabled, case in point bzip2 support (which i don't find really useful but added since we've got bzip2 as a package anyway).
Is it that bad that people get a "freebie" if there's an extra supported library around automatically enabled?
The overhead is pretty lightweight since they're all shared (unless someone wants everything static that is).