All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies
@ 2015-03-29 17:11 Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf Bernd Kuhls
                   ` (19 more replies)
  0 siblings, 20 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot

mplayer supports a lot of third-party libraries, to have reproducable builds
add them to the package. Some packages need the explicit mention of -llibfoo
in --extra-libs=

$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/bin/mplayer | grep NEEDED | sort
 0x00000001 (NEEDED)                     Shared library: [libasound.so.2]
 0x00000001 (NEEDED)                     Shared library: [libass.so.5]
 0x00000001 (NEEDED)                     Shared library: [libbluray.so.1]
 0x00000001 (NEEDED)                     Shared library: [libbz2.so.1.0]
 0x00000001 (NEEDED)                     Shared library: [libc.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdl.so.0]
 0x00000001 (NEEDED)                     Shared library: [libdvdnavmini.so.4]
 0x00000001 (NEEDED)                     Shared library: [libdvdread.so.4]
 0x00000001 (NEEDED)                     Shared library: [libenca.so.0]
 0x00000001 (NEEDED)                     Shared library: [libfaad.so.2]
 0x00000001 (NEEDED)                     Shared library: [libfontconfig.so.1]
 0x00000001 (NEEDED)                     Shared library: [libfreetype.so.6]
 0x00000001 (NEEDED)                     Shared library: [libfribidi.so.0]
 0x00000001 (NEEDED)                     Shared library: [libgif.so.7]
 0x00000001 (NEEDED)                     Shared library: [libiconv.so.2]
 0x00000001 (NEEDED)                     Shared library: [libjpeg.so.9]
 0x00000001 (NEEDED)                     Shared library: [liblzo2.so.2]
 0x00000001 (NEEDED)                     Shared library: [libmad.so.0]
 0x00000001 (NEEDED)                     Shared library: [libmpeg2.so.0]
 0x00000001 (NEEDED)                     Shared library: [libm.so.0]
 0x00000001 (NEEDED)                     Shared library: [libncurses.so.5]
 0x00000001 (NEEDED)                     Shared library: [libogg.so.0]
 0x00000001 (NEEDED)                     Shared library: [libpng16.so.16]
 0x00000001 (NEEDED)                     Shared library: [libpthread.so.0]
 0x00000001 (NEEDED)                     Shared library: [librtmp.so.1]
 0x00000001 (NEEDED)                     Shared library: [libsmbclient.so.0]
 0x00000001 (NEEDED)                     Shared library: [libspeex.so.1]
 0x00000001 (NEEDED)                     Shared library: [libvorbisidec.so.1]
 0x00000001 (NEEDED)                     Shared library: [libz.so.1]

Bernd Kuhls (18):
  package/mplayer: needs host-pkgconf
  package/mplayer: add optional giflib support
  package/mplayer: add optional ncurses support
  package/mplayer: add optional samba support
  package/mplayer: add optional libbluray support
  package/mplayer: add optional fontconfig support
  package/mplayer: add optional libfribidi support
  package/mplayer: add optional libass support
  package/mplayer: add optional libenca support
  package/mplayer: add optional lzo support
  package/mplayer: add optional faad2 support
  package/mplayer: add optional rtmpdump support
  package/mplayer: add optional speex support
  package/mplayer: add optional libiconv support
  package/mplayer: disable optional libcdio support
  package/mplayer: add optional bzip2 support
  package/mplayer: add optional lame support
  package/mplayer: add optional libmpeg2 support

-- 
1.7.10.4

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

* [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-30 20:56   ` Thomas Petazzoni
  2015-03-29 17:11 ` [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support Bernd Kuhls
                   ` (18 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index b2530e4..192a42e 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -11,6 +11,8 @@ MPLAYER_SITE = http://www.mplayerhq.hu/MPlayer/releases
 MPLAYER_CFLAGS = $(TARGET_CFLAGS)
 MPLAYER_LDFLAGS = $(TARGET_LDFLAGS)
 
+MPLAYER_DEPENDENCIES += host-pkgconf
+
 # mplayer needs pcm+mixer support, but configure fails to check for it
 ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yyy)
 MPLAYER_DEPENDENCIES += alsa-lib
-- 
1.7.10.4

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

* [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-30 20:56   ` Thomas Petazzoni
  2015-03-29 17:11 ` [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support Bernd Kuhls
                   ` (17 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 192a42e..f004ca9 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -100,6 +100,11 @@ else
 MPLAYER_CONF_OPTS += --disable-live
 endif
 
+ifeq ($(BR2_PACKAGE_GIFLIB),y)
+MPLAYER_DEPENDENCIES += giflib
+MPLAYER_EXTRA_LIBS += -lgif
+endif
+
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBTHEORA),libtheora)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg)
@@ -145,6 +150,7 @@ define MPLAYER_CONFIGURE_CMDS
 		--yasm='' \
 		--enable-fbdev \
 		$(MPLAYER_CONF_OPTS) \
+		--extra-libs="$(MPLAYER_EXTRA_LIBS)" \
 		--enable-cross-compile \
 		--disable-ivtv \
 		--enable-dynamic-plugins \
-- 
1.7.10.4

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

* [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-07 20:52   ` Thomas Petazzoni
  2015-03-29 17:11 ` [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support Bernd Kuhls
                   ` (16 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index f004ca9..5ecd25a 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -45,6 +45,14 @@ else
 MPLAYER_CONF_OPTS += --disable-freetype
 endif
 
+ifeq ($(BR2_PACKAGE_NCURSES),y)
+MPLAYER_CONF_OPTS += --enable-termcap
+MPLAYER_DEPENDENCIES += ncurses
+MPLAYER_EXTRA_LIBS += -lncurses
+else
+MPLAYER_CONF_OPTS += --disable-termcap
+endif
+
 ifeq ($(BR2_PACKAGE_LIBDVDREAD),y)
 MPLAYER_CONF_OPTS +=  \
 	--enable-dvdread \
-- 
1.7.10.4

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

* [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (2 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-07 20:53   ` Thomas Petazzoni
  2015-03-29 17:11 ` [Buildroot] [PATCH 05/18] package/mplayer: add optional libbluray support Bernd Kuhls
                   ` (15 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 5ecd25a..1dbad7d 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -53,6 +53,13 @@ else
 MPLAYER_CONF_OPTS += --disable-termcap
 endif
 
+ifeq ($(BR2_PACKAGE_SAMBA_SMBCLIENT),y)
+MPLAYER_CONF_OPTS += --enable-smb
+MPLAYER_DEPENDENCIES += samba
+else
+MPLAYER_CONF_OPTS += --disable-smb
+endif
+
 ifeq ($(BR2_PACKAGE_LIBDVDREAD),y)
 MPLAYER_CONF_OPTS +=  \
 	--enable-dvdread \
-- 
1.7.10.4

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

* [Buildroot] [PATCH 05/18] package/mplayer: add optional libbluray support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (3 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 06/18] package/mplayer: add optional fontconfig support Bernd Kuhls
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 1dbad7d..7992c4c 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -60,6 +60,13 @@ else
 MPLAYER_CONF_OPTS += --disable-smb
 endif
 
+ifeq ($(BR2_PACKAGE_LIBBLURAY),y)
+MPLAYER_CONF_OPTS += --enable-bluray
+MPLAYER_DEPENDENCIES += libbluray
+else
+MPLAYER_CONF_OPTS += --disable-bluray
+endif
+
 ifeq ($(BR2_PACKAGE_LIBDVDREAD),y)
 MPLAYER_CONF_OPTS +=  \
 	--enable-dvdread \
-- 
1.7.10.4

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

* [Buildroot] [PATCH 06/18] package/mplayer: add optional fontconfig support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (4 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 05/18] package/mplayer: add optional libbluray support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 07/18] package/mplayer: add optional libfribidi support Bernd Kuhls
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 7992c4c..db6bbd9 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -45,6 +45,14 @@ else
 MPLAYER_CONF_OPTS += --disable-freetype
 endif
 
+ifeq ($(BR2_PACKAGE_FONTCONFIG),y)
+MPLAYER_CONF_OPTS += --enable-fontconfig
+MPLAYER_DEPENDENCIES += fontconfig
+MPLAYER_EXTRA_LIBS += -lfontconfig
+else
+MPLAYER_CONF_OPTS += --disable-fontconfig
+endif
+
 ifeq ($(BR2_PACKAGE_NCURSES),y)
 MPLAYER_CONF_OPTS += --enable-termcap
 MPLAYER_DEPENDENCIES += ncurses
-- 
1.7.10.4

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

* [Buildroot] [PATCH 07/18] package/mplayer: add optional libfribidi support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (5 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 06/18] package/mplayer: add optional fontconfig support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 08/18] package/mplayer: add optional libass support Bernd Kuhls
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index db6bbd9..900a6ce 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -53,6 +53,14 @@ else
 MPLAYER_CONF_OPTS += --disable-fontconfig
 endif
 
+ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y)
+MPLAYER_CONF_OPTS += --enable-fribidi
+MPLAYER_DEPENDENCIES += libfribidi
+MPLAYER_EXTRA_LIBS += -lfribidi
+else
+MPLAYER_CONF_OPTS += --disable-fribidi
+endif
+
 ifeq ($(BR2_PACKAGE_NCURSES),y)
 MPLAYER_CONF_OPTS += --enable-termcap
 MPLAYER_DEPENDENCIES += ncurses
-- 
1.7.10.4

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

* [Buildroot] [PATCH 08/18] package/mplayer: add optional libass support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (6 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 07/18] package/mplayer: add optional libfribidi support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 09/18] package/mplayer: add optional libenca support Bernd Kuhls
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 900a6ce..245ed91 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -110,6 +110,12 @@ else
 MPLAYER_CONF_OPTS += --disable-mencoder
 endif
 
+ifeq ($(BR2_PACKAGE_LIBASS),y)
+MPLAYER_DEPENDENCIES += libass
+MPLAYER_EXTRA_LIBS += -lass
+MPLAYER_CONF_OPTS += --disable-ass-internal --enable-ass
+endif
+
 ifeq ($(BR2_PACKAGE_TREMOR),y)
 MPLAYER_DEPENDENCIES += tremor
 MPLAYER_CONF_OPTS += --disable-tremor-internal --enable-tremor
-- 
1.7.10.4

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

* [Buildroot] [PATCH 09/18] package/mplayer: add optional libenca support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (7 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 08/18] package/mplayer: add optional libass support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support Bernd Kuhls
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 245ed91..6fbdd72 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -61,6 +61,13 @@ else
 MPLAYER_CONF_OPTS += --disable-fribidi
 endif
 
+ifeq ($(BR2_PACKAGE_LIBENCA),y)
+MPLAYER_CONF_OPTS += --enable-enca
+MPLAYER_DEPENDENCIES += libenca
+else
+MPLAYER_CONF_OPTS += --disable-enca
+endif
+
 ifeq ($(BR2_PACKAGE_NCURSES),y)
 MPLAYER_CONF_OPTS += --enable-termcap
 MPLAYER_DEPENDENCIES += ncurses
-- 
1.7.10.4

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

* [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (8 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 09/18] package/mplayer: add optional libenca support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-08 21:19   ` Yann E. MORIN
  2015-03-29 17:11 ` [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support Bernd Kuhls
                   ` (9 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 6fbdd72..a09cf43 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -156,6 +156,13 @@ MPLAYER_DEPENDENCIES += giflib
 MPLAYER_EXTRA_LIBS += -lgif
 endif
 
+ifeq ($(BR2_PACKAGE_LZO),y)
+MPLAYER_DEPENDENCIES += lzo
+MPLAYER_CONF_OPTS += --enable-liblzo
+else
+MPLAYER_CONF_OPTS += --disable-liblzo
+endif
+
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBTHEORA),libtheora)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg)
-- 
1.7.10.4

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

* [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (9 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-08 21:21   ` Yann E. MORIN
  2015-03-29 17:11 ` [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support Bernd Kuhls
                   ` (8 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index a09cf43..442f82b 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -117,6 +117,13 @@ else
 MPLAYER_CONF_OPTS += --disable-mencoder
 endif
 
+ifeq ($(BR2_PACKAGE_FAAD2),y)
+MPLAYER_DEPENDENCIES += faad2
+MPLAYER_CONF_OPTS += --enable-faad
+else
+MPLAYER_CONF_OPTS += --disable-faad
+endif
+
 ifeq ($(BR2_PACKAGE_LIBASS),y)
 MPLAYER_DEPENDENCIES += libass
 MPLAYER_EXTRA_LIBS += -lass
-- 
1.7.10.4

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

* [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (10 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-08 21:25   ` Yann E. MORIN
  2015-03-29 17:11 ` [Buildroot] [PATCH 13/18] package/mplayer: add optional speex support Bernd Kuhls
                   ` (7 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 442f82b..5f9a8d1 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -163,6 +163,14 @@ MPLAYER_DEPENDENCIES += giflib
 MPLAYER_EXTRA_LIBS += -lgif
 endif
 
+ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
+MPLAYER_DEPENDENCIES += rtmpdump
+MPLAYER_CONF_OPTS += --enable-librtmp
+MPLAYER_EXTRA_LIBS += -lrtmp
+else
+MPLAYER_CONF_OPTS += --disable-librtmp
+endif
+
 ifeq ($(BR2_PACKAGE_LZO),y)
 MPLAYER_DEPENDENCIES += lzo
 MPLAYER_CONF_OPTS += --enable-liblzo
-- 
1.7.10.4

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

* [Buildroot] [PATCH 13/18] package/mplayer: add optional speex support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (11 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support Bernd Kuhls
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 5f9a8d1..631e2fe 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -171,6 +171,13 @@ else
 MPLAYER_CONF_OPTS += --disable-librtmp
 endif
 
+ifeq ($(BR2_PACKAGE_SPEEX),y)
+MPLAYER_DEPENDENCIES += speex
+MPLAYER_CONF_OPTS += --enable-speex
+else
+MPLAYER_CONF_OPTS += --disable-speex
+endif
+
 ifeq ($(BR2_PACKAGE_LZO),y)
 MPLAYER_DEPENDENCIES += lzo
 MPLAYER_CONF_OPTS += --enable-liblzo
-- 
1.7.10.4

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

* [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (12 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 13/18] package/mplayer: add optional speex support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-08 21:30   ` Yann E. MORIN
  2015-03-29 17:11 ` [Buildroot] [PATCH 15/18] package/mplayer: disable optional libcdio support Bernd Kuhls
                   ` (5 subsequent siblings)
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 631e2fe..6d9c4f4 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -68,6 +68,14 @@ else
 MPLAYER_CONF_OPTS += --disable-enca
 endif
 
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+MPLAYER_CONF_OPTS += --enable-iconv
+MPLAYER_DEPENDENCIES += libiconv
+MPLAYER_EXTRA_LIBS += -liconv
+else
+MPLAYER_CONF_OPTS += --disable-iconv
+endif
+
 ifeq ($(BR2_PACKAGE_NCURSES),y)
 MPLAYER_CONF_OPTS += --enable-termcap
 MPLAYER_DEPENDENCIES += ncurses
-- 
1.7.10.4

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

* [Buildroot] [PATCH 15/18] package/mplayer: disable optional libcdio support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (13 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 16/18] package/mplayer: add optional bzip2 support Bernd Kuhls
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 6d9c4f4..76c53d7 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -98,6 +98,11 @@ else
 MPLAYER_CONF_OPTS += --disable-bluray
 endif
 
+# cdio support is broken in buildroot atm due to missing libcdio-paranoia
+# package and this patch
+# https://github.com/pld-linux/mplayer/blob/master/mplayer-libcdio.patch
+MPLAYER_CONF_OPTS += --disable-libcdio
+
 ifeq ($(BR2_PACKAGE_LIBDVDREAD),y)
 MPLAYER_CONF_OPTS +=  \
 	--enable-dvdread \
-- 
1.7.10.4

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

* [Buildroot] [PATCH 16/18] package/mplayer: add optional bzip2 support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (14 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 15/18] package/mplayer: disable optional libcdio support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 17/18] package/mplayer: add optional lame support Bernd Kuhls
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    1 +
 1 file changed, 1 insertion(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 76c53d7..97e6a5d 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -198,6 +198,7 @@ else
 MPLAYER_CONF_OPTS += --disable-liblzo
 endif
 
+MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_BZIP2),bzip2)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBTHEORA),libtheora)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng)
 MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg)
-- 
1.7.10.4

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

* [Buildroot] [PATCH 17/18] package/mplayer: add optional lame support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (15 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 16/18] package/mplayer: add optional bzip2 support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-03-29 17:11 ` [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support Bernd Kuhls
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index 97e6a5d..da6e468 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -137,6 +137,13 @@ else
 MPLAYER_CONF_OPTS += --disable-faad
 endif
 
+ifeq ($(BR2_PACKAGE_LAME),y)
+MPLAYER_DEPENDENCIES += lame
+MPLAYER_CONF_OPTS += --enable-mp3lame
+else
+MPLAYER_CONF_OPTS += --disable-mp3lame
+endif
+
 ifeq ($(BR2_PACKAGE_LIBASS),y)
 MPLAYER_DEPENDENCIES += libass
 MPLAYER_EXTRA_LIBS += -lass
-- 
1.7.10.4

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

* [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (16 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 17/18] package/mplayer: add optional lame support Bernd Kuhls
@ 2015-03-29 17:11 ` Bernd Kuhls
  2015-04-08 21:35   ` Yann E. MORIN
  2015-04-07 21:30 ` [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Thomas Petazzoni
  2015-04-08 21:35 ` Thomas Petazzoni
  19 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-29 17:11 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mplayer/mplayer.mk |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
index da6e468..61c4594 100644
--- a/package/mplayer/mplayer.mk
+++ b/package/mplayer/mplayer.mk
@@ -150,6 +150,12 @@ MPLAYER_EXTRA_LIBS += -lass
 MPLAYER_CONF_OPTS += --disable-ass-internal --enable-ass
 endif
 
+ifeq ($(BR2_PACKAGE_LIBMPEG2),y)
+MPLAYER_DEPENDENCIES += libmpeg2
+MPLAYER_CONF_OPTS += --disable-libmpeg2-internal --enable-libmpeg2
+MPLAYER_EXTRA_LIBS += -lmpeg2
+endif
+
 ifeq ($(BR2_PACKAGE_TREMOR),y)
 MPLAYER_DEPENDENCIES += tremor
 MPLAYER_CONF_OPTS += --disable-tremor-internal --enable-tremor
-- 
1.7.10.4

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

* [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf
  2015-03-29 17:11 ` [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf Bernd Kuhls
@ 2015-03-30 20:56   ` Thomas Petazzoni
  0 siblings, 0 replies; 37+ messages in thread
From: Thomas Petazzoni @ 2015-03-30 20:56 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 29 Mar 2015 19:11:17 +0200, Bernd Kuhls wrote:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mplayer/mplayer.mk |    2 ++
>  1 file changed, 2 insertions(+)

Applied, thanks.

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

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

* [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
  2015-03-29 17:11 ` [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support Bernd Kuhls
@ 2015-03-30 20:56   ` Thomas Petazzoni
  2015-03-30 21:06     ` Thomas Petazzoni
  0 siblings, 1 reply; 37+ messages in thread
From: Thomas Petazzoni @ 2015-03-30 20:56 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 29 Mar 2015 19:11:18 +0200, Bernd Kuhls wrote:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mplayer/mplayer.mk |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index 192a42e..f004ca9 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -100,6 +100,11 @@ else
>  MPLAYER_CONF_OPTS += --disable-live
>  endif
>  
> +ifeq ($(BR2_PACKAGE_GIFLIB),y)
> +MPLAYER_DEPENDENCIES += giflib
> +MPLAYER_EXTRA_LIBS += -lgif
> +endif

Any reason not to use --enable-gif / --disable-gif here? Then you don't
need to pass a --extra-libs value. I've applied the patch with this
change, as it seems to build fine. Let me know if that causes a problem.

Thanks,

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

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

* [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
  2015-03-30 20:56   ` Thomas Petazzoni
@ 2015-03-30 21:06     ` Thomas Petazzoni
  2015-03-31 18:38       ` Arnout Vandecappelle
  0 siblings, 1 reply; 37+ messages in thread
From: Thomas Petazzoni @ 2015-03-30 21:06 UTC (permalink / raw)
  To: buildroot

Hello,

On Mon, 30 Mar 2015 22:56:58 +0200, Thomas Petazzoni wrote:

> > +ifeq ($(BR2_PACKAGE_GIFLIB),y)
> > +MPLAYER_DEPENDENCIES += giflib
> > +MPLAYER_EXTRA_LIBS += -lgif
> > +endif
> 
> Any reason not to use --enable-gif / --disable-gif here? Then you don't
> need to pass a --extra-libs value. I've applied the patch with this
> change, as it seems to build fine. Let me know if that causes a problem.

Hum, looking at the ncurses case, things seem to be a bit annoying:

echocheck "termcap"
if test "$_termcap" = auto ; then
  _termcap=no
  for ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
    statement_check term.h 'tgetent(0, 0)' $ld_tmp &&
      extra_ldflags="$extra_ldflags $ld_tmp" && _termcap=yes && break
  done
fi
if test "$_termcap" = yes ; then
  def_termcap='#define HAVE_TERMCAP 1'
  test $ld_tmp && res_comment="using $ld_tmp"
else
  def_termcap='#undef HAVE_TERMCAP'
fi
echores "$_termcap"

So, if you explicitly pass --enable-termcap, autodetection is not done,
and you have to pass -lncurses explicitly in --extra-libs. Otherwise,
if you don't use --enable-termcap and let the autodetection do its
work, it detects -lncurses automatically.

So I'm not sure which one to choose:

 *) Autodetection, which avoids the need for passing explicit -l<foo>
 values, but has the drawback of autodetection: we're not explicitly
 saying which features we want to enable, which may cause mis-use of
 certain libraries.

 *) No autodetection, which forces us to pass the proper -l<foo> value
 for each dependency.

Opinions?

Best regards,

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

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

* [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
  2015-03-30 21:06     ` Thomas Petazzoni
@ 2015-03-31 18:38       ` Arnout Vandecappelle
  2015-03-31 20:07         ` Bernd Kuhls
  0 siblings, 1 reply; 37+ messages in thread
From: Arnout Vandecappelle @ 2015-03-31 18:38 UTC (permalink / raw)
  To: buildroot

On 30/03/15 23:06, Thomas Petazzoni wrote:
> Hello,
> 
> On Mon, 30 Mar 2015 22:56:58 +0200, Thomas Petazzoni wrote:
> 
>>> +ifeq ($(BR2_PACKAGE_GIFLIB),y)
>>> +MPLAYER_DEPENDENCIES += giflib
>>> +MPLAYER_EXTRA_LIBS += -lgif
>>> +endif
>>
>> Any reason not to use --enable-gif / --disable-gif here? Then you don't
>> need to pass a --extra-libs value. I've applied the patch with this
>> change, as it seems to build fine. Let me know if that causes a problem.
> 
> Hum, looking at the ncurses case, things seem to be a bit annoying:
> 
> echocheck "termcap"
> if test "$_termcap" = auto ; then
>   _termcap=no
>   for ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
>     statement_check term.h 'tgetent(0, 0)' $ld_tmp &&
>       extra_ldflags="$extra_ldflags $ld_tmp" && _termcap=yes && break
>   done
> fi
> if test "$_termcap" = yes ; then
>   def_termcap='#define HAVE_TERMCAP 1'
>   test $ld_tmp && res_comment="using $ld_tmp"
> else
>   def_termcap='#undef HAVE_TERMCAP'
> fi
> echores "$_termcap"
> 
> So, if you explicitly pass --enable-termcap, autodetection is not done,
> and you have to pass -lncurses explicitly in --extra-libs. Otherwise,
> if you don't use --enable-termcap and let the autodetection do its
> work, it detects -lncurses automatically.
> 
> So I'm not sure which one to choose:
> 
>  *) Autodetection, which avoids the need for passing explicit -l<foo>
>  values, but has the drawback of autodetection: we're not explicitly
>  saying which features we want to enable, which may cause mis-use of
>  certain libraries.
> 
>  *) No autodetection, which forces us to pass the proper -l<foo> value
>  for each dependency.
> 
> Opinions?

 For the positive case (--enable-termcap), autodetection should be fine. What we
want to catch is that termcap happens to have been built before, so we want an
explicit --disable-termcap.

 Of course, there should be a comment why we don't put the --enable-termcap.

 Regards,
 Arnout



-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
  2015-03-31 18:38       ` Arnout Vandecappelle
@ 2015-03-31 20:07         ` Bernd Kuhls
  2015-04-01 19:28           ` Arnout Vandecappelle
  0 siblings, 1 reply; 37+ messages in thread
From: Bernd Kuhls @ 2015-03-31 20:07 UTC (permalink / raw)
  To: buildroot

Arnout Vandecappelle <arnout@mind.be> wrote in 
news:551AE9C1.70701 at mind.be:

>  For the positive case (--enable-termcap), autodetection should be fine. 

Hi,

no, it is broken:

osdep/`termcap_addgetch2.o:': In
getch2.c function:( .text`termcap_add+0x15':):
getch2.c undefined:(.text+ reference0x15) to:  `undefined tgetstr'
osdep/getch2.o: In function reference to `tgetstr'
osdep`load_termcap/getch2.o'::
getch2.c:In (.function text+`load_termcap0x9f)'::
getch2.cundefined :(reference .textto +0x9f`tgetent): undefined reference' to
getch2.c `:(tgetent'.text
getch2.c+0xdb:():.text undefined+0xdb reference): to undefined ` 
referencetgetnum' to
getch2.c:( .text`tgetnum+0xec'
):getch2.c: undefined (.reference textto +0xec`tgetnum):'
 undefinedgetch2.c: reference(.text+ to0x132) : `tgetnumundefined '
reference getch2.cto:( `.texttgetstr'+0x132)
: undefined reference to `tgetstr'

using this defconfig:

BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_PACKAGE_MPLAYER=y
BR2_PACKAGE_MPLAYER_MENCODER=y
BR2_PACKAGE_NCURSES=y

Regards, Bernd

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

* [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
  2015-03-31 20:07         ` Bernd Kuhls
@ 2015-04-01 19:28           ` Arnout Vandecappelle
  0 siblings, 0 replies; 37+ messages in thread
From: Arnout Vandecappelle @ 2015-04-01 19:28 UTC (permalink / raw)
  To: buildroot

On 31/03/15 22:07, Bernd Kuhls wrote:
> Arnout Vandecappelle <arnout@mind.be> wrote in 
> news:551AE9C1.70701 at mind.be:
> 
>>  For the positive case (--enable-termcap), autodetection should be fine. 
> 
> Hi,
> 
> no, it is broken:

 I meant, in case termcap is available, it should be OK to build without
--enable-termcap because in that case the configure script adds the required libs.


 Regards,
 Arnout



-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support
  2015-03-29 17:11 ` [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support Bernd Kuhls
@ 2015-04-07 20:52   ` Thomas Petazzoni
  0 siblings, 0 replies; 37+ messages in thread
From: Thomas Petazzoni @ 2015-04-07 20:52 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 29 Mar 2015 19:11:19 +0200, Bernd Kuhls wrote:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mplayer/mplayer.mk |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index f004ca9..5ecd25a 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -45,6 +45,14 @@ else
>  MPLAYER_CONF_OPTS += --disable-freetype
>  endif
>  
> +ifeq ($(BR2_PACKAGE_NCURSES),y)
> +MPLAYER_CONF_OPTS += --enable-termcap

I've removed this line.

> +MPLAYER_DEPENDENCIES += ncurses
> +MPLAYER_EXTRA_LIBS += -lncurses

This line.

And added a comment above to explain why we don't pass --enable-termcap.

And then I applied, thanks!

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

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

* [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support
  2015-03-29 17:11 ` [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support Bernd Kuhls
@ 2015-04-07 20:53   ` Thomas Petazzoni
  0 siblings, 0 replies; 37+ messages in thread
From: Thomas Petazzoni @ 2015-04-07 20:53 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 29 Mar 2015 19:11:20 +0200, Bernd Kuhls wrote:

> +ifeq ($(BR2_PACKAGE_SAMBA_SMBCLIENT),y)
> +MPLAYER_CONF_OPTS += --enable-smb
> +MPLAYER_DEPENDENCIES += samba
> +else
> +MPLAYER_CONF_OPTS += --disable-smb
> +endif

Samba 3 has been deprecated. So I've merged this patch, but it's
actually a no-op, unless deprecated packages are enabled. Can you check
whether Samba 4 can be used instead ?

Thanks,

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

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

* [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (17 preceding siblings ...)
  2015-03-29 17:11 ` [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support Bernd Kuhls
@ 2015-04-07 21:30 ` Thomas Petazzoni
  2015-04-08 21:35 ` Thomas Petazzoni
  19 siblings, 0 replies; 37+ messages in thread
From: Thomas Petazzoni @ 2015-04-07 21:30 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 29 Mar 2015 19:11:16 +0200, Bernd Kuhls wrote:

> Bernd Kuhls (18):
>   package/mplayer: needs host-pkgconf
>   package/mplayer: add optional giflib support
>   package/mplayer: add optional ncurses support
>   package/mplayer: add optional samba support
>   package/mplayer: add optional libbluray support
>   package/mplayer: add optional fontconfig support
>   package/mplayer: add optional libfribidi support
>   package/mplayer: add optional libass support
>   package/mplayer: add optional libenca support

Applied up to this point, after switching some of them to autodetection
instead of the extra libs thing.

>   package/mplayer: add optional lzo support
>   package/mplayer: add optional faad2 support
>   package/mplayer: add optional rtmpdump support
>   package/mplayer: add optional speex support
>   package/mplayer: add optional libiconv support
>   package/mplayer: disable optional libcdio support
>   package/mplayer: add optional bzip2 support
>   package/mplayer: add optional lame support
>   package/mplayer: add optional libmpeg2 support

I'll have a look at those ones later on.

Thanks!

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

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

* [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support
  2015-03-29 17:11 ` [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support Bernd Kuhls
@ 2015-04-08 21:19   ` Yann E. MORIN
  0 siblings, 0 replies; 37+ messages in thread
From: Yann E. MORIN @ 2015-04-08 21:19 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2015-03-29 19:11 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/mplayer/mplayer.mk |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index 6fbdd72..a09cf43 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -156,6 +156,13 @@ MPLAYER_DEPENDENCIES += giflib
>  MPLAYER_EXTRA_LIBS += -lgif
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LZO),y)
> +MPLAYER_DEPENDENCIES += lzo
> +MPLAYER_CONF_OPTS += --enable-liblzo
> +else
> +MPLAYER_CONF_OPTS += --disable-liblzo
> +endif
> +
>  MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBTHEORA),libtheora)
>  MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBPNG),libpng)
>  MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_JPEG),jpeg)
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support
  2015-03-29 17:11 ` [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support Bernd Kuhls
@ 2015-04-08 21:21   ` Yann E. MORIN
  0 siblings, 0 replies; 37+ messages in thread
From: Yann E. MORIN @ 2015-04-08 21:21 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2015-03-29 19:11 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
>  package/mplayer/mplayer.mk |    7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index a09cf43..442f82b 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -117,6 +117,13 @@ else
>  MPLAYER_CONF_OPTS += --disable-mencoder
>  endif
>  
> +ifeq ($(BR2_PACKAGE_FAAD2),y)
> +MPLAYER_DEPENDENCIES += faad2
> +MPLAYER_CONF_OPTS += --enable-faad
> +else
> +MPLAYER_CONF_OPTS += --disable-faad
> +endif
> +
>  ifeq ($(BR2_PACKAGE_LIBASS),y)
>  MPLAYER_DEPENDENCIES += libass
>  MPLAYER_EXTRA_LIBS += -lass
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support
  2015-03-29 17:11 ` [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support Bernd Kuhls
@ 2015-04-08 21:25   ` Yann E. MORIN
  2015-04-08 21:33     ` Thomas Petazzoni
  0 siblings, 1 reply; 37+ messages in thread
From: Yann E. MORIN @ 2015-04-08 21:25 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2015-03-29 19:11 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mplayer/mplayer.mk |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index 442f82b..5f9a8d1 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -163,6 +163,14 @@ MPLAYER_DEPENDENCIES += giflib
>  MPLAYER_EXTRA_LIBS += -lgif
>  endif
>  
> +ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
> +MPLAYER_DEPENDENCIES += rtmpdump
> +MPLAYER_CONF_OPTS += --enable-librtmp
> +MPLAYER_EXTRA_LIBS += -lrtmp

Instead of passin extra libs, just let ./configure detect it all by
itself:

    # ./configure will auto-detet librtmp if present, and will use
    # appropriate CFLAGS/LDFLAGS/LIBS (otherwise, it fails to do so
    # if told explicitly to use librtmp with --enable-librtmp
    ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
    MPLAYER_DEPENDENCIES += rtmpdump
    else
    MPLAYER_CONF_OPTS += --disable-librtmp
    endif

Regards,
Yann E. MORIN.

> +else
> +MPLAYER_CONF_OPTS += --disable-librtmp
> +endif
> +
>  ifeq ($(BR2_PACKAGE_LZO),y)
>  MPLAYER_DEPENDENCIES += lzo
>  MPLAYER_CONF_OPTS += --enable-liblzo
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support
  2015-03-29 17:11 ` [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support Bernd Kuhls
@ 2015-04-08 21:30   ` Yann E. MORIN
  2015-04-08 21:32     ` Thomas Petazzoni
  0 siblings, 1 reply; 37+ messages in thread
From: Yann E. MORIN @ 2015-04-08 21:30 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2015-03-29 19:11 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mplayer/mplayer.mk |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index 631e2fe..6d9c4f4 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -68,6 +68,14 @@ else
>  MPLAYER_CONF_OPTS += --disable-enca
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBICONV),y)
> +MPLAYER_CONF_OPTS += --enable-iconv
> +MPLAYER_DEPENDENCIES += libiconv
> +MPLAYER_EXTRA_LIBS += -liconv

Even though that's jsut been merged, I think this has the same issue as
the librtmp: ./configure will find the appropriate CFLAGS/LIBS if not
explicitly told to use iconv, so I'd just add the dependency (like
already suggested for librtmp).

Care to address that ad send a respin, please?

Regards,
Yann E. MORIN.

> +else
> +MPLAYER_CONF_OPTS += --disable-iconv
> +endif
> +
>  ifeq ($(BR2_PACKAGE_NCURSES),y)
>  MPLAYER_CONF_OPTS += --enable-termcap
>  MPLAYER_DEPENDENCIES += ncurses
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support
  2015-04-08 21:30   ` Yann E. MORIN
@ 2015-04-08 21:32     ` Thomas Petazzoni
  0 siblings, 0 replies; 37+ messages in thread
From: Thomas Petazzoni @ 2015-04-08 21:32 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Wed, 8 Apr 2015 23:30:08 +0200, Yann E. MORIN wrote:

> > +ifeq ($(BR2_PACKAGE_LIBICONV),y)
> > +MPLAYER_CONF_OPTS += --enable-iconv
> > +MPLAYER_DEPENDENCIES += libiconv
> > +MPLAYER_EXTRA_LIBS += -liconv
> 
> Even though that's jsut been merged, I think this has the same issue as
> the librtmp: ./configure will find the appropriate CFLAGS/LIBS if not
> explicitly told to use iconv, so I'd just add the dependency (like
> already suggested for librtmp).
> 
> Care to address that ad send a respin, please?

I've addressed that when applying:

+# We intentionally don't pass --enable-libiconv, to let the
+# autodetection find which library to link with.
+ifeq ($(BR2_PACKAGE_LIBICONV),y)
+MPLAYER_DEPENDENCIES += libiconv
+else
+MPLAYER_CONF_OPTS += --disable-iconv
+endif

Thanks,

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

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

* [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support
  2015-04-08 21:25   ` Yann E. MORIN
@ 2015-04-08 21:33     ` Thomas Petazzoni
  0 siblings, 0 replies; 37+ messages in thread
From: Thomas Petazzoni @ 2015-04-08 21:33 UTC (permalink / raw)
  To: buildroot

Dear Yann E. MORIN,

On Wed, 8 Apr 2015 23:25:03 +0200, Yann E. MORIN wrote:

> Instead of passin extra libs, just let ./configure detect it all by
> itself:
> 
>     # ./configure will auto-detet librtmp if present, and will use
>     # appropriate CFLAGS/LDFLAGS/LIBS (otherwise, it fails to do so
>     # if told explicitly to use librtmp with --enable-librtmp
>     ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
>     MPLAYER_DEPENDENCIES += rtmpdump
>     else
>     MPLAYER_CONF_OPTS += --disable-librtmp
>     endif

Done when applying:

+# We intentionally don't pass --enable-librtmp to let autodetection
+# find which library to link with.
+ifeq ($(BR2_PACKAGE_RTMPDUMP),y)
+MPLAYER_DEPENDENCIES += rtmpdump
+else
+MPLAYER_CONF_OPTS += --disable-librtmp
+endif

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

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

* [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support
  2015-03-29 17:11 ` [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support Bernd Kuhls
@ 2015-04-08 21:35   ` Yann E. MORIN
  0 siblings, 0 replies; 37+ messages in thread
From: Yann E. MORIN @ 2015-04-08 21:35 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2015-03-29 19:11 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/mplayer/mplayer.mk |    6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/package/mplayer/mplayer.mk b/package/mplayer/mplayer.mk
> index da6e468..61c4594 100644
> --- a/package/mplayer/mplayer.mk
> +++ b/package/mplayer/mplayer.mk
> @@ -150,6 +150,12 @@ MPLAYER_EXTRA_LIBS += -lass
>  MPLAYER_CONF_OPTS += --disable-ass-internal --enable-ass
>  endif
>  
> +ifeq ($(BR2_PACKAGE_LIBMPEG2),y)
> +MPLAYER_DEPENDENCIES += libmpeg2
> +MPLAYER_CONF_OPTS += --disable-libmpeg2-internal --enable-libmpeg2
> +MPLAYER_EXTRA_LIBS += -lmpeg2
> +endif

Ditto, ./configure detects the LDFLAGS if it auto-finds libmpeg2 (i.e.
without passing --enable-libmpeg2).

Regards,
Yann E. MORIN.

>  ifeq ($(BR2_PACKAGE_TREMOR),y)
>  MPLAYER_DEPENDENCIES += tremor
>  MPLAYER_CONF_OPTS += --disable-tremor-internal --enable-tremor
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies
  2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
                   ` (18 preceding siblings ...)
  2015-04-07 21:30 ` [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Thomas Petazzoni
@ 2015-04-08 21:35 ` Thomas Petazzoni
  2015-04-08 21:46   ` Yann E. MORIN
  19 siblings, 1 reply; 37+ messages in thread
From: Thomas Petazzoni @ 2015-04-08 21:35 UTC (permalink / raw)
  To: buildroot

Dear Bernd Kuhls,

On Sun, 29 Mar 2015 19:11:16 +0200, Bernd Kuhls wrote:

>   package/mplayer: add optional lzo support
>   package/mplayer: add optional faad2 support
>   package/mplayer: add optional rtmpdump support
>   package/mplayer: add optional speex support
>   package/mplayer: add optional libiconv support
>   package/mplayer: disable optional libcdio support
>   package/mplayer: add optional bzip2 support
>   package/mplayer: add optional lame support
>   package/mplayer: add optional libmpeg2 support

I've applied those patches, after fixing up things to rely on
autodection in order to avoid the "extra libs" thing.

However, I'm not entirely happy with how the mplayer package looks
like. Some dependencies have explicit disable:

ifeq ($(BR2_PACKAGE_LAME),y)
MPLAYER_DEPENDENCIES += lame
MPLAYER_CONF_OPTS += --enable-mp3lame
else
MPLAYER_CONF_OPTS += --disable-mp3lame
endif

but some do not:

ifeq ($(BR2_PACKAGE_TREMOR),y)
MPLAYER_DEPENDENCIES += tremor
MPLAYER_CONF_OPTS += --disable-tremor-internal --enable-tremor
endif

and for example, when --disable-tremor is not passed, an internal
tremor implementation is used, as far as I can see.

There are also cases like:

MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_BZIP2),bzip2)

All of this should probably be harmonized to properly get an explicit
disabling for all dependencies, unless there is a good reason not to do
so.

Thanks!

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

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

* [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies
  2015-04-08 21:35 ` Thomas Petazzoni
@ 2015-04-08 21:46   ` Yann E. MORIN
  0 siblings, 0 replies; 37+ messages in thread
From: Yann E. MORIN @ 2015-04-08 21:46 UTC (permalink / raw)
  To: buildroot

Thomas, All,

On 2015-04-08 23:35 +0200, Thomas Petazzoni spake thusly:
> On Sun, 29 Mar 2015 19:11:16 +0200, Bernd Kuhls wrote:
> 
> >   package/mplayer: add optional lzo support
> >   package/mplayer: add optional faad2 support
> >   package/mplayer: add optional rtmpdump support
> >   package/mplayer: add optional speex support
> >   package/mplayer: add optional libiconv support
> >   package/mplayer: disable optional libcdio support
> >   package/mplayer: add optional bzip2 support
> >   package/mplayer: add optional lame support
> >   package/mplayer: add optional libmpeg2 support
> 
> I've applied those patches, after fixing up things to rely on
> autodection in order to avoid the "extra libs" thing.
> 
> However, I'm not entirely happy with how the mplayer package looks
> like. Some dependencies have explicit disable:
> 
> ifeq ($(BR2_PACKAGE_LAME),y)
> MPLAYER_DEPENDENCIES += lame
> MPLAYER_CONF_OPTS += --enable-mp3lame
> else
> MPLAYER_CONF_OPTS += --disable-mp3lame
> endif
> 
> but some do not:
> 
> ifeq ($(BR2_PACKAGE_TREMOR),y)
> MPLAYER_DEPENDENCIES += tremor
> MPLAYER_CONF_OPTS += --disable-tremor-internal --enable-tremor
> endif
> 
> and for example, when --disable-tremor is not passed, an internal
> tremor implementation is used, as far as I can see.
> 
> There are also cases like:
> 
> MPLAYER_DEPENDENCIES += $(if $(BR2_PACKAGE_BZIP2),bzip2)
> 
> All of this should probably be harmonized to properly get an explicit
> disabling for all dependencies, unless there is a good reason not to do
> so.

Well, the reason is pretty obvious:

  - it's not an autotools package, the configure is hand-written
  - some options have explicit --enable/disable-foo
  - some options only have --enable-foo
  - and some only rely on detecting the optional lib(s)

For example, there's no option for bzip2: if the lib is present, it is
enabled, otherwise it is disabled.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

end of thread, other threads:[~2015-04-08 21:46 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf Bernd Kuhls
2015-03-30 20:56   ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support Bernd Kuhls
2015-03-30 20:56   ` Thomas Petazzoni
2015-03-30 21:06     ` Thomas Petazzoni
2015-03-31 18:38       ` Arnout Vandecappelle
2015-03-31 20:07         ` Bernd Kuhls
2015-04-01 19:28           ` Arnout Vandecappelle
2015-03-29 17:11 ` [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support Bernd Kuhls
2015-04-07 20:52   ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support Bernd Kuhls
2015-04-07 20:53   ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 05/18] package/mplayer: add optional libbluray support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 06/18] package/mplayer: add optional fontconfig support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 07/18] package/mplayer: add optional libfribidi support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 08/18] package/mplayer: add optional libass support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 09/18] package/mplayer: add optional libenca support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support Bernd Kuhls
2015-04-08 21:19   ` Yann E. MORIN
2015-03-29 17:11 ` [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support Bernd Kuhls
2015-04-08 21:21   ` Yann E. MORIN
2015-03-29 17:11 ` [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support Bernd Kuhls
2015-04-08 21:25   ` Yann E. MORIN
2015-04-08 21:33     ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 13/18] package/mplayer: add optional speex support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support Bernd Kuhls
2015-04-08 21:30   ` Yann E. MORIN
2015-04-08 21:32     ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 15/18] package/mplayer: disable optional libcdio support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 16/18] package/mplayer: add optional bzip2 support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 17/18] package/mplayer: add optional lame support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support Bernd Kuhls
2015-04-08 21:35   ` Yann E. MORIN
2015-04-07 21:30 ` [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Thomas Petazzoni
2015-04-08 21:35 ` Thomas Petazzoni
2015-04-08 21:46   ` Yann E. MORIN

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.