1 # hdw - linux xdirectfb package
3 # author: hackbard@hackdaworld.dyndns.org
7 # [D] XDirectFB.tar.bz2 cvs:anonymous:directfb.org:cvs/directfb:XDirectFB
8 # [D] xc.tar.bz2 sshcvs:anoncvs:anoncvs.xfree86.org:cvs:xc
10 srcdir="XDirectFB-$ver"
11 [ "$ver" = "cvs" ] && srcdir="XDirectFB"
14 echo "extracting xfree86 xc source ..."
15 tar --use-compress-program=bzip2 -xf $archdir/xc.tar.bz2 -C ../
17 echo "applying xdirectfb patch ..."
19 patch -Nfp0 < ../${srcdir}/xc-directfb.diff &&
21 echo "copying over files ..."
22 cp -a ../${srcdir}/programs/Xserver/hw/directfb \
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/
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
33 echo "building rootless xserver now ..."
34 make World && make install