[Lunar-commits] <moonbase> mesa-lib: fix the compile.

Florin Braescu florin at lunar-linux.org
Sun Sep 6 16:00:17 CEST 2009


commit 91e3ca01a680435f5b59c5e3d11b5c7c692cc428
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sun Sep 6 17:00:17 2009 +0300

    mesa-lib: fix the compile.
    
    It can be installed without glew or glut. In fact glew depeds on mesa-lib.
---
 xorg7/mesa-lib/BUILD   |   18 +++++++++++-------
 xorg7/mesa-lib/DEPENDS |    4 ++--
 2 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/xorg7/mesa-lib/BUILD b/xorg7/mesa-lib/BUILD
index 9048e1c..ef12591 100644
--- a/xorg7/mesa-lib/BUILD
+++ b/xorg7/mesa-lib/BUILD
@@ -1,15 +1,19 @@
 (
 
-  OPTS+="--with-dri-drivers=" &&
+  OPTS+=" --with-dri-drivers=" &&
   OPTS+=$(echo $MESADRIVER | sed s/\ /,/g) &&
-  ./configure --prefix=/usr $OPTS && 
 
-  prepare_install &&
+  # Copy some headers, to avoid compile errors.
+  mkdir -p /usr/include/GL/  &&
+  install -m644 -t /usr/include/GL/ include/GL/gl{,u,ut}.h  &&
+  install -m644 -t /usr/include/GL/ include/GL/gle{w,xt}.h  &&
 
-  make && 
+  ./configure --prefix=/usr $OPTS  &&
+  prepare_install  &&
 
-  make install &&                 
-#  install -v -m644 include/GLView.h /usr/include/        &&
-  install -v -m755 progs/xdemos/glxinfo progs/xdemos/glxgears /usr/bin
+  make all  &&
+  make install  &&                 
+
+  install -v -m755 progs/xdemos/glx{gears,info} /usr/bin/
 
 ) > $C_FIFO 2>&1
diff --git a/xorg7/mesa-lib/DEPENDS b/xorg7/mesa-lib/DEPENDS
index 42477c4..fabe1e9 100644
--- a/xorg7/mesa-lib/DEPENDS
+++ b/xorg7/mesa-lib/DEPENDS
@@ -1,9 +1,9 @@
-depends libdrm      
 depends glproto     
+depends dri2proto
+depends libdrm      
 depends libX11      
 depends makedepend  
 depends libXi        
 depends libXext
 depends libXfixes
 depends libXdamage
-depends dri2proto


More information about the Lunar-commits mailing list