Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
Date: Tue, 31 Mar 2015 20:38:57 +0200	[thread overview]
Message-ID: <551AE9C1.70701@mind.be> (raw)
In-Reply-To: <20150330230606.2702a000@free-electrons.com>

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

  reply	other threads:[~2015-03-31 18:38 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 [this message]
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

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=551AE9C1.70701@mind.be \
    --to=arnout@mind.be \
    --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