stage 4 package updates
[hdw-linux/hdw-linux.git] / packages / x11 / xorg / xorg
1 # hdw-linux xorg extensions
2
3 # author: hackbard@hackdaworld.dyndns.org
4
5 # [V] 6.8.2
6
7 # [S] 3-3
8 # [D] X11R6.8.2-src1.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
9 # [D] X11R6.8.2-src2.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
10 # [D] X11R6.8.2-src3.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
11 # [D] X11R6.8.2-src4.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
12 # [D] X11R6.8.2-src5.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
13 # [D] X11R6.8.2-src6.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
14 # [D] X11R6.8.2-src7.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/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>' -lr ./`; do
36                 echo "patching file $file ..."
37                 sed "s%#include <linux/config.h>%/* & */%g" $file > ${file}.tmp
38                 mv ${file}.tmp $file
39         done
40         
41         # build $ install
42         make World && make install && make install.man &&
43         
44         # add entry to /etc/ld.so.conf
45         [ -z `grep 'X11' $root/etc/ld.so.conf` ] && \
46         echo "/usr/X11R6/lib" >> $root/etc/ld.so.conf
47
48         # remove xprint.csh file
49         rm -v $root/etc/profile.d/xprint.csh
50         
51         # symlink
52         ln -svf X11R6 $root/usr/X11
53         ln -svf ../X11R6/bin $prefix/bin/X11
54         ln -svf ../X11R6/lib/X11 $prefix/lib/X11
55         ln -svf ../X11R6/include/X11 $prefix/include/X11
56                 }
57