Permalink
Browse files

xbmc: fix XVBA build with legacy/non-legacy gpu drivers

Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information...
1 parent faaea81 commit 42706f338b9ef073e4a4d71785098e16931dc366 @sraue sraue committed Mar 4, 2013
Showing with 10 additions and 4 deletions.
  1. +1 −1 config/graphic
  2. +9 −3 packages/mediacenter/xbmc/meta
View
2 config/graphic
@@ -34,7 +34,7 @@ fi
get_graphicdrivers() {
if [ "$GRAPHIC_DRIVERS" = "all" ]; then
- GRAPHIC_DRIVERS="i915 i965 r200 r300 r600 fglrx nvidia vmware virtualbox"
+ GRAPHIC_DRIVERS="i915 i965 r200 r300 r600 fglrx fglrx-legacy nvidia vmware virtualbox"
fi
for drv in $GRAPHIC_DRIVERS; do
View
12 packages/mediacenter/xbmc/meta
@@ -184,6 +184,12 @@ if [ "$CRYSTALHD" = yes ]; then
PKG_DEPENDS="$PKG_DEPENDS crystalhd"
fi
-if [ "$XVBA" = yes ]; then
- PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS xf86-video-fglrx"
-fi
+get_graphicdrivers
+
+for drv in $GRAPHIC_DRIVERS; do
+ if [ "$drv" = "fglrx" -a "$XVBA" = yes ]; then
+ PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS xf86-video-fglrx"
+ elif [ "$drv" = "fglrx-legacy" -a "$XVBA" = yes ]; then
+ PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS xf86-video-fglrx-legacy"
+ fi
+done

0 comments on commit 42706f3

Please sign in to comment.