# [V] cvs
# [S] 3-5
# [D] XDirectFB.tar.bz2 cvs:anonymous:directfb.org:cvs/directfb:XDirectFB
-# [D] xc.tar.bz2 sshcvs:anoncvs:anoncvs.xfree86.org:cvs:xc
+## [D] xc.tar.bz2 sshcvs:anoncvs:anoncvs.xfree86.org:cvs:xc
+# [D] X11R6.8.2-src1.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+# [D] X11R6.8.2-src2.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+# [D] X11R6.8.2-src3.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+# [D] X11R6.8.2-src4.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+# [D] X11R6.8.2-src5.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+# [D] X11R6.8.2-src6.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+# [D] X11R6.8.2-src7.tar.gz http://ftp.gwdg.de/pub/x11/x.org/pub/X11R6.8.2/src/
+xver="6.8.2"; xtype="xorg"
srcdir="XDirectFB-$ver"
[ "$ver" = "cvs" ] && srcdir="XDirectFB"
build_main() {
- echo "extracting xfree86 xc source ..."
- tar --use-compress-program=bzip2 -xf $archdir/xc.tar.bz2 -C ../
+
+ if [ "$xtype" = "xorg" ] ; then
+ for i in 1 2 3 4 5 6 7; do
+ echo "extracting $xtype $xver package $i ..."
+ tar --use-compress-program=gzip -C ../ \
+ -xf $archdir/X11R${xver}-src${i}.tar.gz
+ done
+ else
+ echo "extracting xfree86 xc source ..."
+ tar --use-compress-program=bzip2 -xf $archdir/xc.tar.bz2 -C ../
+ fi
echo "applying xdirectfb patch ..."
cd ../xc &&
- patch -Nfp0 < ../${srcdir}/xc-directfb.diff &&
+
+ if [ "$xtype" = "xorg" ] ; then
+ patch -Nfp0 < ../${srcdir}/xc-directfb-xorg.diff
+ else
+ patch -Nfp0 < ../${srcdir}/xc-directfb.diff
+ fi
echo "copying over files ..."
cp -a ../${srcdir}/programs/Xserver/hw/directfb \
mv t~ config/cf/host.def
echo "building rootless xserver now ..."
- make World && make install
+ make World && make && make install
}