#!/bin/sh # # Build and install XFree86-4.0 on Slackware Linux. # CWD=`pwd` cd /tmp tar xyvf $CWD/X400src-1.tar.bz2 tar xyvf $CWD/X400src-2.tar.bz2 tar xyvf $CWD/X400src-3.tar.bz2 cd xc zcat $CWD/xfree86.cf.diff.gz | patch -p0 zcat $CWD/xf86site.def.diff.gz | patch -p0 zcat $CWD/site.def.diff.gz | patch -p1 make World -i CDEBUGFLAGS=-O2 make install make install.man # Work around an egcs optimization problem that # breaks Netscape (still there, I think): ( cd lib rm -f {X11,X11/unshared}/{imLcFlt.o,FilterEv.o} rm -f {Xt,Xt/unshared}/{Event.o,Callback.o,Destroy.o,NextEvent.o} make CDEBUGFLAGS="" ) mkdir -p /usr/X11R6/lib/fonts/CID echo 0 > /usr/X11R6/lib/fonts/CID/fonts.dir echo 0 > /usr/X11R6/lib/fonts/CID/fonts.scale cat << EOF OK, at this point the rebuilt libX11 and libXt shared libraries need to be reinstalled by hand. Trying to use a "make World ... install" after those last lines used to recompile libX11 and libXt will cause the whole tree to be rebuilt, which we don't want. Also, make sure the authdir symlink doesn't dangle. EOF