[Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed Apr 8 21:33:17 UTC 2015


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


More information about the buildroot mailing list