1 # hdw-linux xorg extensions
3 # author: hackbard@hackdaworld.dyndns.org
8 # [D] X11R6.7.0-src1.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
9 # [D] X11R6.7.0-src2.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
10 # [D] X11R6.7.0-src3.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
11 # [D] X11R6.7.0-src4.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
12 # [D] X11R6.7.0-src5.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
13 # [D] X11R6.7.0-src6.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
14 # [D] X11R6.7.0-src7.tar.gz http://freedesktop.org/~xorg/X11R6.7.0/src/
19 for i in 1 2 3 4 5 6 7; do
20 echo "extracting xorg $ver package $i ..."
21 tar --use-compress-program=gzip \
22 -xf $archdir/X11R${ver}-src${i}.tar.gz
25 # change to build directory
29 if [ -f $confdir/*.patch ] ; then
30 for i in $confdir/*.patch; do
31 echo "applying patch .."
35 for file in `grep '<linux/config.h>' -r ./programs/Xserver/hw | \
36 awk -F: '{ print $1 }'`; do
37 echo "patching file $file ..."
38 sed 's%#include <linux/config.h>%%g' $file > ${file}.tmp
43 make World && make install && make install.man &&
45 # add entry to /etc/ld.so.conf
46 [ -z `grep 'X11' $root/etc/ld.so.conf` ] && \
47 echo "/usr/X11R6/lib" >> $root/etc/ld.so.conf
49 # add xdm + default config file (yes "" | xf86config ??)
52 ln -svf X11R6 $root/usr/X11