#!/bin/bash # bootstrap an installation of Xorg # make sure you have zlib, expat and freetype built and installed already # lots of stuff will need pkg-config to build CWD=$(pwd) # INSTALL_EM=YES PACKAGES=$(pwd)/PKGS export PACKAGES [[ ${INSTALL_EM} ]] && INSTALLPKG='-I' export INSTALLPKG # for dir in freetype fontconfig x11-skel ; do for dir in fontconfig x11-skel ; do ( cd ${dir} PKG_DEST_DIR=${PACKAGES} \ src2pkg -X -E -W ${INSTALLPKG} ) done ( cd x11 for dir in proto util lib ; do ( cd ${dir} PACKAGES=${PACKAGES} . ${dir}.GroupBuild ) done ) # out-of-tree items !! need drm before mesa for dir in xaw3d drm mesa xterm ; do ( cd ${dir} PKG_DEST_DIR=${PACKAGES} \ src2pkg -X -E -W ${INSTALLPKG} ) done # pixman is not needed for xorg-server-1.3.0 # but is by gtk2 & Co. and later server versions # libxml needs python is this for pyxcb? # python glib2 libxml, pygobject for dir in pixman ; do ( cd ${dir} PKG_DEST_DIR=${PACKAGES} \ src2pkg -X -E -W ${INSTALLPKG} ) done # to compile the sever, you'll need the raw sources of Mesa unpacked in # the xserver directory. Then, when you compile thee drivers, xf86-video-ati # and xf86-video-nv will look for xorg-server sources in the xserver dir. ( cd x11 for dir in data app xserver driver font doc ; do ( cd ${dir} PACKAGES=${PACKAGES} . ${dir}.GroupBuild ) done ) # gtk2 stuff needs to go here before compiz # does pixman need to be recompiled here? # then re-compile pixman and add --enable-gtk ( cd pixman PKG_DEST_DIR=${PACKAGES} \ src2pkg -X -E -W ${INSTALLPKG} ) ( cd compiz PKG_DEST_DIR=${PACKAGES} \ src2pkg -X -E -W ${INSTALLPKG} ) # extra fonts for dir in dejavu-fonts-ttf liberation-fonts-ttf ; do ( cd ${dir} PKG_DEST_DIR=${PACKAGES}/FONT \ src2pkg -X -E -W ${INSTALLPKG} ) done