Chromium Code Reviews| Index: xvfb/building/then-build |
| =================================================================== |
| --- xvfb/building/then-build (revision 0) |
| +++ xvfb/building/then-build (revision 0) |
| @@ -0,0 +1,91 @@ |
| +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.
|
| +LPATH=$(pwd) |
|
Peter Mayo
2012/02/08 05:32:48
quoting: starting here, and then all references in
|
| +export PKG_CONFIG_PATH=${LPATH}/lib/pkgconfig:${PPATH} |
| + |
| +rm -f .xorg.stop |
| +for p in util-macros-1.11.0 xproto-7.0.20 xcb-proto-1.6 libXfont-1.4.3 \ |
| + dri2proto-2.3 libxkbfile-1.0.7 talloc-2.0.1 libdrm-2.4.26 \ |
| + libXmu-1.0.5 ; do |
| + if [ -f $p.succeeded ] ; then |
| + echo $p already done |
| + else |
| + tar xzf ../$p.tar.gz |
| + if [ -f $p/configure ] ; then |
| + ( cd $p && ./configure --prefix=$LPATH --exec_prefix=$LPATH && make && \ |
| + make install ) >$p.output 2>&1 && mv $p.output $p.succeeded |
| + else |
| + ( cd $p && ./autogen.sh --prefix=$LPATH --exec_prefix=$LPATH && make && \ |
| + make install ) >$p.output 2>&1 && mv $p.output $p.succeeded |
| + fi |
| + if [ -f $p.succeeded ] ; then |
| + echo $p done |
| + else |
| + echo $p FAILED ; tail -80 $p.output ; echo $p FAILED |
| + touch .xorg.stop |
| + break |
| + fi |
| + fi |
| +done |
| + |
| +mv=7.11 |
| +p=Mesa-${mv} |
| + |
| +if [ -f $p.succeeded ] ; then |
| + echo $p already done |
| +else |
| + tar xzf ../MesaGLUT-${mv}.tar.gz |
| + tar xzf ../MesaLib-${mv}.tar.gz |
| + ( cd $p && \ |
| + ./configure --prefix=$LPATH --exec_prefix=$LPATH && make && make install \ |
| + ) >$p.output 2>&1 && mv $p.output $p.succeeded |
| + if [ -f $p.succeeded ] ; then |
| + echo $p done |
| + else |
| + echo $p FAILED ; tail -80 $p.output ; echo $p FAILED |
| + touch .xorg.stop |
| + fi |
| +fi |
| + |
| + |
| +# |
| +# The builders are wilder/older versions of linux. pixman is missing a |
| +# referenced symbol on Hardy. Xfont fails to read the fonts, and it has |
| +# recursive dependencies we have to add to the top level to link statically. |
| +# pixman is also a dependency of libfb.la, so we have to subvert that too. |
| +# Peter Mayo - Feb 24, 2011 |
| +# |
| +function makeXvfbMoreStatically() { |
| +[ -f Xvfb ] && rm -f Xvfb |
| +make -n Xvfb 2>&1 | tail -1 |\ |
| + sed -e "s/^.*;//" \ |
| + -e "s%libfb.la%.libs/libfb.a%" -e "s% -l\(pixman-1\)% /usr/lib/lib\1.a%" \ |
| + -e "s% -l\(Xfont\)% ../../../lib/lib\1.a -lfreetype -lfontenc%" \ |
| + | bash -x |
| +} |
| + |
| +if [ \! -f .xorg.stop ] ; then |
| + p=xorg-server-1.9.3.901 |
| + [ -d bin ] || mkdir bin |
| + tar xzvf ../$p.tar.gz |
| + ( cd $p && ./configure --disable-config-hal --disable-dri --disable-glx \ |
| + --prefix=/usr && \ |
| + ( cd fb && make ) && \ |
| + ( cd xfixes && make ) && \ |
| + ( cd Xext && make ) && \ |
| + ( cd dbe && make ) && \ |
| + ( cd record && make ) && \ |
| + ( cd randr && make ) && \ |
| + ( cd render && make ) && \ |
| + ( cd damageext && make ) && \ |
| + ( cd miext/damage && make ) && \ |
| + ( cd miext/shadow && make ) && \ |
| + ( cd Xi && make ) && \ |
| + ( cd xkb && make ) && \ |
| + ( cd composite && make ) && \ |
| + ( cd dix && make ) && \ |
| + ( cd mi && make ) && \ |
| + ( cd os && make ) && \ |
| + ( cd glx && make ) && \ |
| + ( cd hw/vfb && make Xvfb && makeXvfbMoreStatically ) ) && \ |
| + cp $p/hw/vfb/Xvfb bin/. |
| +fi |