]> hackdaworld.org Git - hdw-linux/hdw-linux.git/blob - packages/hackbard/xdirectfb/xdirectfb
last 0.3 fixes
[hdw-linux/hdw-linux.git] / packages / hackbard / xdirectfb / xdirectfb
1 # hdw - linux xdirectfb package
2 #
3 # author: hackbard@hackdaworld.dyndns.org
4 #
5 # [V] cvs
6 # [S] 3-5
7 # [D] XDirectFB.tar.bz2 cvs:anonymous:directfb.org:cvs/directfb:XDirectFB
8 # [D] xc.tar.bz2 sshcvs:anoncvs:anoncvs.xfree86.org:cvs:xc
9
10 srcdir="XDirectFB-$ver"
11 [ "$ver" = "cvs" ] && srcdir="XDirectFB"
12
13 build_main()    {
14         echo "extracting xfree86 xc source ..."
15         tar --use-compress-program=bzip2 -xf $archdir/xc.tar.bz2 -C ../
16
17         echo "applying xdirectfb patch ..."
18         cd ../xc &&
19         patch -Nfp0 < ../${srcdir}/xc-directfb.diff &&
20
21         echo "copying over files ..."
22         cp -a ../${srcdir}/programs/Xserver/hw/directfb \
23                 programs/Xserver/hw/
24         #cp -a ../${srcdir}/programs/Xserver/GL/directfb \
25         #       programs/Xserver/GL/
26         #cp -a ../${srcdir}/lib/GL/directfb lib/GL/
27         cp -a ../${srcdir}/config/cf/* config/cf/
28
29         echo "patching host.def - prefix /opt/xdirectfb ..."
30         sed "s%/usr/local/X11R6%$root/opt/xdirectfb%g" config/cf/host.def > t~
31         mv t~ config/cf/host.def
32
33         echo "building rootless xserver now ..."
34         make World && make install
35                 }