[Lunar-commits] <moonbase> mesa-lib: build all drivers if none are selected

Paul Bredbury brebs at lunar-linux.org
Fri Oct 9 10:44:19 CEST 2009


commit 29c2cd6ab1adeb8ed6f9bb2cb1161229a5f0fe25
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Fri Oct 9 15:44:19 2009 +0700

    mesa-lib: build all drivers if none are selected
    
    Fixed the logic in BUILD.
---
 xorg7/mesa-lib/BUILD |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/xorg7/mesa-lib/BUILD b/xorg7/mesa-lib/BUILD
index 609139a..94f63e5 100644
--- a/xorg7/mesa-lib/BUILD
+++ b/xorg7/mesa-lib/BUILD
@@ -1,7 +1,10 @@
 (
 
-  OPTS+=" --with-dri-drivers="  &&
-  OPTS+=$(echo $MESADRIVER | sed s/\ /,/g)  &&
+  if [[ -n $MESADRIVER ]] ; then
+    # Build selected drivers only, rather than the default of all of them
+    OPTS+=" --with-dri-drivers="  &&
+    OPTS+=$(echo $MESADRIVER | sed s/\ /,/g)
+  fi
 
   # Excludes glew headers, and prevents need for /usr/include/GL/gl{,u,ut}.h
   rm -r progs/{demos,samples}  &&


More information about the Lunar-commits mailing list