Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies
Date: Wed, 8 Apr 2015 23:46:17 +0200	[thread overview]
Message-ID: <20150408214617.GJ4197@free.fr> (raw)
In-Reply-To: <20150408233523.087d9e0c@free-electrons.com>

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.  |
'------------------------------^-------^------------------^--------------------'

      reply	other threads:[~2015-04-08 21:46 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150408214617.GJ4197@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox