Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 PPATH=/usr/lib/pkgconfig | |
|
cmp
2012/02/07 19:52:14
Add #!/bin/sh to the top, add a Chromium license h
Peter Mayo
2012/02/08 05:32:48
Done.
| |
| 2 LPATH=$(pwd) | |
|
Peter Mayo
2012/02/08 05:32:48
quoting: starting here, and then all references in
| |
| 3 export PKG_CONFIG_PATH=${LPATH}/lib/pkgconfig:${PPATH} | |
| 4 | |
| 5 rm -f .xorg.stop | |
| 6 for p in util-macros-1.11.0 xproto-7.0.20 xcb-proto-1.6 libXfont-1.4.3 \ | |
| 7 dri2proto-2.3 libxkbfile-1.0.7 talloc-2.0.1 libdrm-2.4.26 \ | |
| 8 libXmu-1.0.5 ; do | |
| 9 if [ -f $p.succeeded ] ; then | |
| 10 echo $p already done | |
| 11 else | |
| 12 tar xzf ../$p.tar.gz | |
| 13 if [ -f $p/configure ] ; then | |
| 14 ( cd $p && ./configure --prefix=$LPATH --exec_prefix=$LPATH && make && \ | |
| 15 make install ) >$p.output 2>&1 && mv $p.output $p.succeeded | |
| 16 else | |
| 17 ( cd $p && ./autogen.sh --prefix=$LPATH --exec_prefix=$LPATH && make && \ | |
| 18 make install ) >$p.output 2>&1 && mv $p.output $p.succeeded | |
| 19 fi | |
| 20 if [ -f $p.succeeded ] ; then | |
| 21 echo $p done | |
| 22 else | |
| 23 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED | |
| 24 touch .xorg.stop | |
| 25 break | |
| 26 fi | |
| 27 fi | |
| 28 done | |
| 29 | |
| 30 mv=7.11 | |
| 31 p=Mesa-${mv} | |
| 32 | |
| 33 if [ -f $p.succeeded ] ; then | |
| 34 echo $p already done | |
| 35 else | |
| 36 tar xzf ../MesaGLUT-${mv}.tar.gz | |
| 37 tar xzf ../MesaLib-${mv}.tar.gz | |
| 38 ( cd $p && \ | |
| 39 ./configure --prefix=$LPATH --exec_prefix=$LPATH && make && make install \ | |
| 40 ) >$p.output 2>&1 && mv $p.output $p.succeeded | |
| 41 if [ -f $p.succeeded ] ; then | |
| 42 echo $p done | |
| 43 else | |
| 44 echo $p FAILED ; tail -80 $p.output ; echo $p FAILED | |
| 45 touch .xorg.stop | |
| 46 fi | |
| 47 fi | |
| 48 | |
| 49 | |
| 50 # | |
| 51 # The builders are wilder/older versions of linux. pixman is missing a | |
| 52 # referenced symbol on Hardy. Xfont fails to read the fonts, and it has | |
| 53 # recursive dependencies we have to add to the top level to link statically. | |
| 54 # pixman is also a dependency of libfb.la, so we have to subvert that too. | |
| 55 # Peter Mayo - Feb 24, 2011 | |
| 56 # | |
| 57 function makeXvfbMoreStatically() { | |
| 58 [ -f Xvfb ] && rm -f Xvfb | |
| 59 make -n Xvfb 2>&1 | tail -1 |\ | |
| 60 sed -e "s/^.*;//" \ | |
| 61 -e "s%libfb.la%.libs/libfb.a%" -e "s% -l\(pixman-1\)% /usr/lib/lib\1.a%" \ | |
| 62 -e "s% -l\(Xfont\)% ../../../lib/lib\1.a -lfreetype -lfontenc%" \ | |
| 63 | bash -x | |
| 64 } | |
| 65 | |
| 66 if [ \! -f .xorg.stop ] ; then | |
| 67 p=xorg-server-1.9.3.901 | |
| 68 [ -d bin ] || mkdir bin | |
| 69 tar xzvf ../$p.tar.gz | |
| 70 ( cd $p && ./configure --disable-config-hal --disable-dri --disable-glx \ | |
| 71 --prefix=/usr && \ | |
| 72 ( cd fb && make ) && \ | |
| 73 ( cd xfixes && make ) && \ | |
| 74 ( cd Xext && make ) && \ | |
| 75 ( cd dbe && make ) && \ | |
| 76 ( cd record && make ) && \ | |
| 77 ( cd randr && make ) && \ | |
| 78 ( cd render && make ) && \ | |
| 79 ( cd damageext && make ) && \ | |
| 80 ( cd miext/damage && make ) && \ | |
| 81 ( cd miext/shadow && make ) && \ | |
| 82 ( cd Xi && make ) && \ | |
| 83 ( cd xkb && make ) && \ | |
| 84 ( cd composite && make ) && \ | |
| 85 ( cd dix && make ) && \ | |
| 86 ( cd mi && make ) && \ | |
| 87 ( cd os && make ) && \ | |
| 88 ( cd glx && make ) && \ | |
| 89 ( cd hw/vfb && make Xvfb && makeXvfbMoreStatically ) ) && \ | |
| 90 cp $p/hw/vfb/Xvfb bin/. | |
| 91 fi | |
| OLD | NEW |