Skip to contentSkip to conversation

mplayer: enable apng and tdsc only if zlib is available

PATCH New Vicente Olivert Riera 2 participants 2 messages Oct 14, 2015 – Oct 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 package/mplayer/mplayer.mk |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
package/mplayer/mplayer.mk +13 -0
index d896b35..2f58864 100644
@@ -27,6 +27,19 @@ else
 MPLAYER_CONF_OPTS += --disable-big-endian
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+MPLAYER_DEPENDENCIES += zlib
+MPLAYER_CONF_OPTS += \
+	--enable-decoder=apng \
+	--enable-encoder=apng \
+	--enable-decoder=tdsc
+else
+MPLAYER_CONF_OPTS += \
+	--disable-decoder=apng \
+	--disable-encoder=apng \
+	--disable-decoder=tdsc
+endif
+
 ifeq ($(BR2_PACKAGE_SDL),y)
 MPLAYER_CONF_OPTS += \
 	--enable-sdl \
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 mplayer: enable apng and tdsc only if zlib is available

Dear Vicente Olivert Riera,

Quoted 9 lines · Vicente Olivert Riera

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.

Quoted 7 lines

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

---
 package/mplayer/mplayer.mk |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

Applied, thanks.

Thomas

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