export XORG_CONFIG="--host=$HOST --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static"
for package in `cat "$SRCDIR"/autobuild/build-order`; do
    abinfo "Starting to build ${package} ..."
    pushd "$package"-*

    abinfo "Copying replacement config.* for ${package} ..."
    cp -v /usr/bin/config.* .

    abinfo "Configuring ${package} ..."
    case $package in
        luit )
            sed -i -e "/D_XOPEN/s/5/6/" configure
        ;;
    esac
    
    ./configure $XORG_CONFIG
    make
    make DESTDIR="$PKGDIR" install

    popd
done
