[Lunar-commits] <moonbase> gtk+-2: add NVIDIA-beta.

Florin Braescu florin at lunar-linux.org
Sat Nov 12 14:46:03 CET 2011


commit dd5dcb4e7fd29315cf43f7c962d9d8c768ea929c
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sat Nov 12 14:46:03 2011 +0100

    gtk+-2: add NVIDIA-beta.
---
 graphics/gtk+-2/BUILD |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/graphics/gtk+-2/BUILD b/graphics/gtk+-2/BUILD
index e383cd4..a98970f 100644
--- a/graphics/gtk+-2/BUILD
+++ b/graphics/gtk+-2/BUILD
@@ -23,18 +23,28 @@
 
   OPTS+=" --with-gdktarget=x11"
 
-# remove the NVIDIA module to prevent the compiling failing
-  WITH_NV="n"  &&
+# remove the existing NVIDIA or NVIDIA-beta module to prevent the compiling failing
+  WITH_NV="n"   &&
+  WITH_NVB="n"  &&
   if module_installed NVIDIA; then
-    WITH_NV="y"  &&
-    lrm NVIDIA
+      WITH_NV="y"  &&
+      lrm NVIDIA
+    else
+      if module_installed NVIDIA-beta; then
+        WITH_NVB="y"  &&
+        lrm NVIDIA-beta
+      fi
   fi  &&
 
   default_build  &&
 
-# restore the NVIDIA module, if it was previously installed
+# restore the NVIDIA or NVIDIA-beta module, if it was previously installed
   if [ $WITH_NV = "y" ]; then
-    lin NVIDIA
+      lin NVIDIA
+    else
+      if [ $WITH_NVB = "y" ]; then
+        lin NVIDIA-beta
+      fi
   fi
 
 ) > $C_FIFO 2>&1


More information about the Lunar-commits mailing list