]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - x11/xorg/xorg
added devmapper, cryptsetup and libpopt
[hdw-linux/hdw-linux.git] / x11 / xorg / xorg
1 # hdw-linux xorg extensions
2
3 # author: hackbard@hackdaworld.dyndns.org
4
5 # [V] 6.7.0
6
7 # [S] 3-3
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/
15
16 custmain="1"
17 custmain()      {
18         # extracting sources
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
23         done
24
25         # change to build directory
26         cd xc
27         
28         # patching
29         if [ -f $confdir/*.patch ] ; then
30                 for i in $confdir/*.patch; do
31                         echo "applying patch .."
32                         patch -Nfp1 < $i
33                 done
34         fi
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
39                 mv ${file}.tmp $file
40         done
41         
42         # build $ install
43         make World && make install && make install.man &&
44         
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
48
49         # add xdm + default config file (yes "" | xf86config ??)
50         
51         # symlink
52         ln -svf X11R6 $root/usr/X11
53                 }
54