libav: Add libsdl to DEPENDS only when x11 is enabled
authorKhem Raj <raj.khem@gmail.com>
Sat, 19 Apr 2014 09:59:28 +0000 (02:59 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Apr 2014 10:43:26 +0000 (11:43 +0100)
commit6b11e8b5e9f3515aa508532854904f10cc3e4ee8
treeb4005ecc277d5d1d7257104718dba820675f03d7
parente7842eb8fca4392a43c108f0bccc906e010ee087
libav: Add libsdl to DEPENDS only when x11 is enabled

When we have opengl in distro features but not x11 and try to
build libav then it calls out to build libsdl which inturn has depependency on libglu
and libglu fails to build

ld: error: cannot find -lGL
| collect2: error: ld returned 1 exit status
| make: *** [libGLU.la] Error 1
| ERROR: oe_runmake failed

since libglu wants glx enabled in mesa and glx in mesa is (righly) enabled only when x11
is in distro features.

This breaks the dependency chain leading to this problem

(From OE-Core rev: fe9fe5ca5039743fc80d14f0518b95929c458b1a)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-multimedia/libav/libav.inc