OLD | NEW |
---|---|
1 #!/bin/sh | 1 #!/bin/sh |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 PPATH=/usr/lib/pkgconfig | 6 PPATH=/usr/lib/pkgconfig |
7 LPATH="$(pwd)" | 7 LPATH="$(pwd)" |
8 export PKG_CONFIG_PATH="${LPATH}"/lib/pkgconfig:"${PPATH}" | 8 export PKG_CONFIG_PATH="${LPATH}"/lib/pkgconfig:"${PPATH}" |
9 export PATH="${LPATH}/bin:${PATH}" | |
9 | 10 |
10 # Print an early message about what we think we're building. | 11 # Print an early message about what we think we're building. |
11 # Informative only, if this fails, comment it out. | 12 # Informative only, if this fails, comment it out. |
12 arch=$(python -c 'import platform; print platform.architecture()[0]') | 13 arch=$(python -c 'import platform; print platform.architecture()[0]') |
13 echo "Builiding for $arch ..." | 14 echo "Building for $arch ..." |
15 | |
16 PKGS="util-macros-1.11.0 xproto-7.0.20 xcb-proto-1.6 libXfont-1.4.3 \ | |
17 dri2proto-2.3 libxkbfile-1.0.7 libdrm-2.4.26 libXmu-1.0.5" | |
14 | 18 |
15 rm -f .xorg.stop | 19 rm -f .xorg.stop |
16 for p in util-macros-1.11.0 xproto-7.0.20 xcb-proto-1.6 libXfont-1.4.3 \ | 20 for p in ${PKGS} ; do |
17 dri2proto-2.3 libxkbfile-1.0.7 libdrm-2.4.26 \ | |
18 libXmu-1.0.5 ; do | |
19 if [ -f $p.succeeded ] ; then | 21 if [ -f $p.succeeded ] ; then |
20 echo $p already done | 22 echo $p already done |
21 else | 23 else |
22 tar xzf ../$p.tar.gz | 24 tar xzf ../$p.tar.gz |
23 if [ -f $p/configure ] ; then | 25 if [ -f $p/configure ] ; then |
24 ( cd $p && ./configure --prefix="$LPATH" --exec_prefix="$LPATH" && \ | 26 ( cd $p && ./configure --prefix="$LPATH" --exec_prefix="$LPATH" && \ |
25 make && make install ) >$p.output 2>&1 && mv $p.output $p.succeeded | 27 make && make install ) >$p.output 2>&1 && mv $p.output $p.succeeded |
26 else | 28 else |
27 ( cd $p && ./autogen.sh --prefix="$LPATH" --exec_prefix="$LPATH" && \ | 29 ( cd $p && ./autogen.sh --prefix="$LPATH" --exec_prefix="$LPATH" && \ |
28 make && make install ) >$p.output 2>&1 && mv $p.output $p.succeeded | 30 make && make install ) >$p.output 2>&1 && mv $p.output $p.succeeded |
29 fi | 31 fi |
30 if [ -f $p.succeeded ] ; then | 32 if [ -f $p.succeeded ] ; then |
31 echo $p done | 33 echo $p done |
32 else | 34 else |
33 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED | 35 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED |
34 touch .xorg.stop | 36 touch .xorg.stop |
35 break | 37 break |
36 fi | 38 fi |
37 fi | 39 fi |
38 done | 40 done |
39 | 41 |
40 mv=7.11 | 42 mv=${MESA_VER-8.0.1} |
41 p=Mesa-${mv} | 43 p=Mesa-${mv} |
42 | 44 |
43 if [ -f $p.succeeded ] ; then | 45 if [ -f $p.succeeded ] ; then |
44 echo $p already done | 46 echo $p already done |
45 else | 47 else |
46 tar xzf ../MesaGLUT-${mv}.tar.gz | 48 [ -d lib ] || mkdir lib |
Peter Mayo
2012/03/05 21:11:51
perhaps 'mkdir -p lib'
| |
47 tar xzf ../MesaLib-${mv}.tar.gz | 49 tar xzf ../MesaLib-${mv}.tar.gz |
48 ( cd $p && ./configure --prefix="$LPATH" --exec_prefix="$LPATH" \ | 50 ( cd $p && \ |
49 --with-gallium-drivers= --with-dri-drivers= && \ | 51 ./configure --prefix="$LPATH" --exec_prefix="$LPATH" \ |
52 --with-driver=xlib \ | |
53 --with-gallium-drivers=swrast --with-dri-drivers= && \ | |
50 make && make install ) >$p.output 2>&1 && mv $p.output $p.succeeded | 54 make && make install ) >$p.output 2>&1 && mv $p.output $p.succeeded |
51 if [ -f $p.succeeded ] ; then | 55 if [ -f $p.succeeded ] ; then |
52 echo $p done | 56 echo $p done |
57 cp $p/lib/gallium/libGL.so lib/libllvmpipe.so | |
58 echo llvmpipe.so built for $arch | |
53 else | 59 else |
54 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED | 60 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED |
55 touch .xorg.stop | 61 touch .xorg.stop |
56 fi | 62 fi |
57 fi | 63 fi |
58 | 64 |
59 | 65 |
60 # | 66 # |
61 # The builders are wilder/older versions of linux. pixman is missing a | 67 # The builders are wilder/older versions of linux. pixman is missing a |
62 # referenced symbol on Hardy. Xfont fails to read the fonts, and it has | 68 # referenced symbol on Hardy. Xfont fails to read the fonts, and it has |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 ( cd glx && make ) && \ | 105 ( cd glx && make ) && \ |
100 ( cd hw/vfb && make Xvfb && makeXvfbMoreStatically ) ) >$p.output 2>&1 && \ | 106 ( cd hw/vfb && make Xvfb && makeXvfbMoreStatically ) ) >$p.output 2>&1 && \ |
101 mv $p.output $p.succeeded | 107 mv $p.output $p.succeeded |
102 if [ -f $p.succeeded ] ; then | 108 if [ -f $p.succeeded ] ; then |
103 cp $p/hw/vfb/Xvfb bin/. | 109 cp $p/hw/vfb/Xvfb bin/. |
104 echo "Built Xvfb for $arch sucessfully." | 110 echo "Built Xvfb for $arch sucessfully." |
105 else | 111 else |
106 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED \; see $p.output | 112 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED \; see $p.output |
107 fi | 113 fi |
108 fi | 114 fi |
OLD | NEW |