mplayer: enable apng and tdsc only if zlib is available
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Wed, 14 Oct 2015 14:15:24 +0000 (15:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 15 Oct 2015 11:28:11 +0000 (13:28 +0200)
commit9731582d5c10d362878a194aa34bfcc0825a4395
treefa43372e5798126045c7f2e832d8e36ffb89b5d8
parentf63dc20700da5bf5b7373a73c435f0019d26f097
mplayer: enable apng and tdsc only if zlib is available

apng and tdsc are enabled by default, but they need zlib, otherwise the
compilation will fail with an error like this one:

libavcodec/pngdec.c:35:18: fatal error: zlib.h: No such file or
directory
 #include <zlib.h>
                  ^
compilation terminated.

So add an autodep on BR2_PACKAGE_ZLIB to enable or disable support for
apng and tdsc accordingly.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mplayer/mplayer.mk