Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/mpd: bump to version 0.19
@ 2014-10-12 19:10 Jörg Krause
  2014-10-12 19:40 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Jörg Krause @ 2014-10-12 19:10 UTC (permalink / raw)
  To: buildroot

Bump to new major version 0.19 and add new dependencies:
  * boost
  * icu (support for Unicode is enabled by default)

Support for new features will be added by additional patches.

Signed-off-by: J?rg Krause <jkrause@posteo.de>
---
 package/mpd/Config.in | 13 ++++++++++++-
 package/mpd/mpd.mk    | 13 ++++++++++---
 2 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/package/mpd/Config.in b/package/mpd/Config.in
index 8884464..c4a263a 100644
--- a/package/mpd/Config.in
+++ b/package/mpd/Config.in
@@ -1,12 +1,14 @@
 menuconfig BR2_PACKAGE_MPD
 	bool "mpd"
+	depends on BR2_LARGEFILE # boost
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_USE_WCHAR # libglib2, flac
-	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, boost
 	depends on BR2_USE_MMU # libglib2
 	# avr32, sparc & CS powerpc gcc are too old
 	depends on !(BR2_avr32 || BR2_sparc)
 	depends on !(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103 || BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009)
+	select BR2_PACKAGE_BOOST
 	select BR2_PACKAGE_LIBGLIB2
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_MPD_TREMOR if !(BR2_PACKAGE_MPD_MAD || BR2_PACKAGE_MPD_MPG123 || BR2_PACKAGE_MPD_VORBIS || BR2_PACKAGE_MPD_WAVPACK || BR2_PACKAGE_MPD_FLAC || BR2_PACKAGE_MPD_MUSEPACK || BR2_PACKAGE_MPD_FFMPEG)
@@ -92,6 +94,15 @@ config BR2_PACKAGE_MPD_FFMPEG
 comment "ffmpeg support needs a toolchain w/ largefile, IPv6"
 	depends on !(BR2_LARGEFILE && BR2_INET_IPV6)
 
+config BR2_PACKAGE_MPD_ICU
+	bool "icu"
+	default y
+	depends on !BR2_BINFMT_FLAT
+	depends on BR2_ARCH_HAS_ATOMICS
+	select BR2_PACKAGE_ICU
+	help
+	  Enable libicu for Unicode support.
+
 config BR2_PACKAGE_MPD_LAME
 	bool "lame"
 	select BR2_PACKAGE_LAME
diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
index 932df08..b98043d 100644
--- a/package/mpd/mpd.mk
+++ b/package/mpd/mpd.mk
@@ -4,11 +4,11 @@
 #
 ################################################################################
 
-MPD_VERSION_MAJOR = 0.18
-MPD_VERSION = $(MPD_VERSION_MAJOR).16
+MPD_VERSION_MAJOR = 0.19
+MPD_VERSION = $(MPD_VERSION_MAJOR)
 MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz
 MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR)
-MPD_DEPENDENCIES = host-pkgconf libglib2
+MPD_DEPENDENCIES = host-pkgconf boost libglib2
 MPD_LICENSE = GPLv2+
 MPD_LICENSE_FILES = COPYING
 
@@ -175,6 +175,13 @@ else
 MPD_CONF_OPTS += --disable-ffmpeg
 endif
 
+# icu is enabled by default
+ifeq ($(BR2_PACKAGE_MPD_ICU),y)
+MPD_DEPENDENCIES += icu
+else
+MPD_CONF_OPTS += --disable-icu
+endif
+
 define MPD_INSTALL_EXTRA_FILES
 	@if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
 		$(INSTALL) -D package/mpd/mpd.conf \
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/mpd: bump to version 0.19
  2014-10-12 19:10 [Buildroot] [PATCH 1/1] package/mpd: bump to version 0.19 Jörg Krause
@ 2014-10-12 19:40 ` Thomas Petazzoni
  2014-10-13  7:43   ` Jörg Krause
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-10-12 19:40 UTC (permalink / raw)
  To: buildroot

Dear J?rg Krause,

On Sun, 12 Oct 2014 21:10:57 +0200, J?rg Krause wrote:

> diff --git a/package/mpd/Config.in b/package/mpd/Config.in
> index 8884464..c4a263a 100644
> --- a/package/mpd/Config.in
> +++ b/package/mpd/Config.in
> @@ -1,12 +1,14 @@
>  menuconfig BR2_PACKAGE_MPD
>  	bool "mpd"
> +	depends on BR2_LARGEFILE # boost

Then the comment at the bottom of mpd's Config.in should be updated as
well.

> +config BR2_PACKAGE_MPD_ICU
> +	bool "icu"

"icu support", or "Unicode support"

> +	default y

Any reason to enable it by default?

> diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
> index 932df08..b98043d 100644
> --- a/package/mpd/mpd.mk
> +++ b/package/mpd/mpd.mk
> @@ -4,11 +4,11 @@
>  #
>  ################################################################################
>  
> -MPD_VERSION_MAJOR = 0.18
> -MPD_VERSION = $(MPD_VERSION_MAJOR).16
> +MPD_VERSION_MAJOR = 0.19
> +MPD_VERSION = $(MPD_VERSION_MAJOR)

The MPD_VERSION_MAJOR variable becomes a bit useless, but ok, we can
believe that they will do some 0.19.x release in the future.

>  MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz
>  MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR)
> -MPD_DEPENDENCIES = host-pkgconf libglib2
> +MPD_DEPENDENCIES = host-pkgconf boost libglib2
>  MPD_LICENSE = GPLv2+
>  MPD_LICENSE_FILES = COPYING
>  
> @@ -175,6 +175,13 @@ else
>  MPD_CONF_OPTS += --disable-ffmpeg
>  endif
>  
> +# icu is enabled by default
> +ifeq ($(BR2_PACKAGE_MPD_ICU),y)
> +MPD_DEPENDENCIES += icu

MPD_CONF_OPTS += --enable-icu

> +else
> +MPD_CONF_OPTS += --disable-icu
> +endif
> +
>  define MPD_INSTALL_EXTRA_FILES
>  	@if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
>  		$(INSTALL) -D package/mpd/mpd.conf \


Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/mpd: bump to version 0.19
  2014-10-12 19:40 ` Thomas Petazzoni
@ 2014-10-13  7:43   ` Jörg Krause
  2014-10-14  7:41     ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Jörg Krause @ 2014-10-13  7:43 UTC (permalink / raw)
  To: buildroot

Dear Thomas Petazzoni,

On 10/12/2014 09:40 PM, Thomas Petazzoni wrote:
> Dear J?rg Krause,
>
> On Sun, 12 Oct 2014 21:10:57 +0200, J?rg Krause wrote:
>
>> diff --git a/package/mpd/Config.in b/package/mpd/Config.in
>> index 8884464..c4a263a 100644
>> --- a/package/mpd/Config.in
>> +++ b/package/mpd/Config.in
>> @@ -1,12 +1,14 @@
>>   menuconfig BR2_PACKAGE_MPD
>>   	bool "mpd"
>> +	depends on BR2_LARGEFILE # boost
> Then the comment at the bottom of mpd's Config.in should be updated as
> well.
>

Done.

>> +config BR2_PACKAGE_MPD_ICU
>> +	bool "icu"
> "icu support", or "Unicode support"

Done.

>> +	default y
> Any reason to enable it by default?

Unicode support is enabled by default in mpd configure. It has to be 
disabled by the user. I just wanted to be consistent in the sense of the 
mpd configure file.

>> diff --git a/package/mpd/mpd.mk b/package/mpd/mpd.mk
>> index 932df08..b98043d 100644
>> --- a/package/mpd/mpd.mk
>> +++ b/package/mpd/mpd.mk
>> @@ -4,11 +4,11 @@
>>   #
>>   ################################################################################
>>   
>> -MPD_VERSION_MAJOR = 0.18
>> -MPD_VERSION = $(MPD_VERSION_MAJOR).16
>> +MPD_VERSION_MAJOR = 0.19
>> +MPD_VERSION = $(MPD_VERSION_MAJOR)
> The MPD_VERSION_MAJOR variable becomes a bit useless, but ok, we can
> believe that they will do some 0.19.x release in the future.

Yeah, I think so, too.

>
>>   MPD_SOURCE = mpd-$(MPD_VERSION).tar.xz
>>   MPD_SITE = http://www.musicpd.org/download/mpd/$(MPD_VERSION_MAJOR)
>> -MPD_DEPENDENCIES = host-pkgconf libglib2
>> +MPD_DEPENDENCIES = host-pkgconf boost libglib2
>>   MPD_LICENSE = GPLv2+
>>   MPD_LICENSE_FILES = COPYING
>>   
>> @@ -175,6 +175,13 @@ else
>>   MPD_CONF_OPTS += --disable-ffmpeg
>>   endif
>>   
>> +# icu is enabled by default
>> +ifeq ($(BR2_PACKAGE_MPD_ICU),y)
>> +MPD_DEPENDENCIES += icu
> MPD_CONF_OPTS += --enable-icu

As described above, icu (unicode support) is enabled by default. But I 
will add this.

>
>> +else
>> +MPD_CONF_OPTS += --disable-icu
>> +endif
>> +
>>   define MPD_INSTALL_EXTRA_FILES
>>   	@if [ ! -f $(TARGET_DIR)/etc/mpd.conf ]; then \
>>   		$(INSTALL) -D package/mpd/mpd.conf \

Many thanks for the review!

J?rg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/1] package/mpd: bump to version 0.19
  2014-10-13  7:43   ` Jörg Krause
@ 2014-10-14  7:41     ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2014-10-14  7:41 UTC (permalink / raw)
  To: buildroot

>>>>> "J?rg" == J?rg Krause <jkrause@posteo.de> writes:

Hi,

 >>> +	default y
 >> Any reason to enable it by default?

 > Unicode support is enabled by default in mpd configure. It has to be
 > disabled by the user. I just wanted to be consistent in the sense of
 > the mpd configure file.

We normally try to keep the buildroot configuration as minimal as
possible by default. If mpd works sanely without unicode, then this
shouldn't be enabled by default.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-14  7:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-12 19:10 [Buildroot] [PATCH 1/1] package/mpd: bump to version 0.19 Jörg Krause
2014-10-12 19:40 ` Thomas Petazzoni
2014-10-13  7:43   ` Jörg Krause
2014-10-14  7:41     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox