Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug
@ 2016-02-21 14:56 Bernd Kuhls
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 2/4] package/sdl_sound: FLAC support depends on libogg Bernd Kuhls
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bernd Kuhls @ 2016-02-21 14:56 UTC (permalink / raw)
  To: buildroot

When libmodplug was compiled before, sdl_sound will use it as optional
dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libSDL_sound-1.0.so.1.0.2 | grep NEEDED | sort
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libmodplug.so.1]
[...]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: add --enable/disable-modplug (Thomas)

 package/sdl_sound/sdl_sound.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/sdl_sound/sdl_sound.mk b/package/sdl_sound/sdl_sound.mk
index 416f381..faf88ae 100644
--- a/package/sdl_sound/sdl_sound.mk
+++ b/package/sdl_sound/sdl_sound.mk
@@ -21,6 +21,13 @@ ifeq ($(BR2_PACKAGE_FLAC),y)
 SDL_SOUND_DEPENDENCIES += flac # is only used if ogg is also enabled
 endif
 
+ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
+SDL_SOUND_CONF_OPTS += --enable-modplug
+SDL_SOUND_DEPENDENCIES += libmodplug
+else
+SDL_SOUND_CONF_OPTS += --disable-modplug
+endif
+
 ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
 SDL_SOUND_DEPENDENCIES += libvorbis
 endif
-- 
2.7.0

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

* [Buildroot] [PATCH v2 2/4] package/sdl_sound: FLAC support depends on libogg
  2016-02-21 14:56 [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Bernd Kuhls
@ 2016-02-21 14:56 ` Bernd Kuhls
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 3/4] package/sdl_sound: add --enable/disable-ogg Bernd Kuhls
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2016-02-21 14:56 UTC (permalink / raw)
  To: buildroot

For the flac package itself libogg is an optional dependency, but for
flac support in sdl_sound libogg is mandatory:
http://hg.icculus.org/icculus/SDL_sound/file/394e3ec86164/configure.in#l263

To avoid compiling flac when libogg is disabled change the if-clause
in this package to reflect the real dependency:

$ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libSDL_sound-1.0.so.1.0.2 | grep NEEDED | sort
 0x0000000000000001 (NEEDED)             Shared library: [libc.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libdl.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libFLAC.so.8]
 0x0000000000000001 (NEEDED)             Shared library: [libmodplug.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libm.so.1]
 0x0000000000000001 (NEEDED)             Shared library: [libogg.so.0]
[...]

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: add --enable/disable-flac (Thomas)

 package/sdl_sound/sdl_sound.mk | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/package/sdl_sound/sdl_sound.mk b/package/sdl_sound/sdl_sound.mk
index faf88ae..6201967 100644
--- a/package/sdl_sound/sdl_sound.mk
+++ b/package/sdl_sound/sdl_sound.mk
@@ -17,8 +17,11 @@ SDL_SOUND_DEPENDENCIES += libiconv
 endif
 
 # optional dependencies
-ifeq ($(BR2_PACKAGE_FLAC),y)
-SDL_SOUND_DEPENDENCIES += flac # is only used if ogg is also enabled
+ifeq ($(BR2_PACKAGE_FLAC)$(BR2_PACKAGE_LIBOGG),yy)
+SDL_SOUND_CONF_OPTS += --enable-flac
+SDL_SOUND_DEPENDENCIES += flac libogg
+else
+SDL_SOUND_CONF_OPTS += --disable-flac
 endif
 
 ifeq ($(BR2_PACKAGE_LIBMODPLUG),y)
-- 
2.7.0

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

* [Buildroot] [PATCH v2 3/4] package/sdl_sound: add --enable/disable-ogg
  2016-02-21 14:56 [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Bernd Kuhls
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 2/4] package/sdl_sound: FLAC support depends on libogg Bernd Kuhls
@ 2016-02-21 14:56 ` Bernd Kuhls
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 4/4] package/sdl_sound: add --enable/disable-speex Bernd Kuhls
  2016-02-21 17:29 ` [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2016-02-21 14:56 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: first revision

 package/sdl_sound/sdl_sound.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/sdl_sound/sdl_sound.mk b/package/sdl_sound/sdl_sound.mk
index 6201967..861c932 100644
--- a/package/sdl_sound/sdl_sound.mk
+++ b/package/sdl_sound/sdl_sound.mk
@@ -32,7 +32,10 @@ SDL_SOUND_CONF_OPTS += --disable-modplug
 endif
 
 ifeq ($(BR2_PACKAGE_LIBVORBIS),y)
+SDL_SOUND_CONF_OPTS += --enable-ogg
 SDL_SOUND_DEPENDENCIES += libvorbis
+else
+SDL_SOUND_CONF_OPTS += --disable-ogg
 endif
 
 ifeq ($(BR2_PACKAGE_SPEEX),y)
-- 
2.7.0

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

* [Buildroot] [PATCH v2 4/4] package/sdl_sound: add --enable/disable-speex
  2016-02-21 14:56 [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Bernd Kuhls
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 2/4] package/sdl_sound: FLAC support depends on libogg Bernd Kuhls
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 3/4] package/sdl_sound: add --enable/disable-ogg Bernd Kuhls
@ 2016-02-21 14:56 ` Bernd Kuhls
  2016-02-21 17:29 ` [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Bernd Kuhls @ 2016-02-21 14:56 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v2: first revision

 package/sdl_sound/sdl_sound.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/sdl_sound/sdl_sound.mk b/package/sdl_sound/sdl_sound.mk
index 861c932..4fa7d9b 100644
--- a/package/sdl_sound/sdl_sound.mk
+++ b/package/sdl_sound/sdl_sound.mk
@@ -39,7 +39,10 @@ SDL_SOUND_CONF_OPTS += --disable-ogg
 endif
 
 ifeq ($(BR2_PACKAGE_SPEEX),y)
+SDL_SOUND_CONF_OPTS += --enable-speex
 SDL_SOUND_DEPENDENCIES += speex
+else
+SDL_SOUND_CONF_OPTS += --disable-speex
 endif
 
 SDL_SOUND_CONF_OPTS = \
-- 
2.7.0

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

* [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug
  2016-02-21 14:56 [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Bernd Kuhls
                   ` (2 preceding siblings ...)
  2016-02-21 14:56 ` [Buildroot] [PATCH v2 4/4] package/sdl_sound: add --enable/disable-speex Bernd Kuhls
@ 2016-02-21 17:29 ` Thomas Petazzoni
  3 siblings, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2016-02-21 17:29 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 21 Feb 2016 15:56:47 +0100, Bernd Kuhls wrote:
> When libmodplug was compiled before, sdl_sound will use it as optional
> dependency:
> 
> $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libSDL_sound-1.0.so.1.0.2 | grep NEEDED | sort
>  0x0000000000000001 (NEEDED)             Shared library: [libc.so.1]
>  0x0000000000000001 (NEEDED)             Shared library: [libdl.so.1]
>  0x0000000000000001 (NEEDED)             Shared library: [libmodplug.so.1]
> [...]
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v2: add --enable/disable-modplug (Thomas)

All four patches applied to master, thanks.

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

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

end of thread, other threads:[~2016-02-21 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 14:56 [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Bernd Kuhls
2016-02-21 14:56 ` [Buildroot] [PATCH v2 2/4] package/sdl_sound: FLAC support depends on libogg Bernd Kuhls
2016-02-21 14:56 ` [Buildroot] [PATCH v2 3/4] package/sdl_sound: add --enable/disable-ogg Bernd Kuhls
2016-02-21 14:56 ` [Buildroot] [PATCH v2 4/4] package/sdl_sound: add --enable/disable-speex Bernd Kuhls
2016-02-21 17:29 ` [Buildroot] [PATCH v2 1/4] package/sdl_sound: add optional support for libmodplug Thomas Petazzoni

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