vlc: fix glx support
authorSamuel Martin <s.martin49@gmail.com>
Sun, 9 Feb 2014 12:47:11 +0000 (13:47 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 9 Feb 2014 15:41:24 +0000 (16:41 +0100)
glx support is provided by the mesa3d package; so, enable it only when
mesa3d is part of the package selection.

Fixes:
  http://autobuild.buildroot.org/results/9b4/9b46021ea0064850ce8f1adcb5455d6da5bff459/build-end.log

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/vlc/vlc.mk

index 2730f07980e2cb204e18dd74baf6e7b5bc6f47ea..fd4904034473cd28df0bf1b9f7721a3468a37bfd 100644 (file)
@@ -101,6 +101,13 @@ else
 VLC_CONF_OPT += --disable-flac
 endif
 
+ifeq ($(BR2_PACKAGE_MESA3D),y)
+VLC_CONF_OPT += --enable-glx
+VLC_DEPENDENCIES += mesa3d
+else
+VLC_CONF_OPT += --disable-glx
+endif
+
 ifeq ($(BR2_PACKAGE_OPUS),y)
 VLC_CONF_OPT += --enable-opus
 VLC_DEPENDENCIES += opus