#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build zlib
$SCRIPTS/build sg3_utils
$SCRIPTS/build glib
$SCRIPTS/build udev
$SCRIPTS/build eggdbus
$SCRIPTS/build expat
$SCRIPTS/build Linux-PAM

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --datadir=/usr/share \
            --libexecdir=/usr/lib/polkit-1 \
            --localstatedir=/var \
            --disable-static \
            --enable-shared \
            --disable-man-pages \
            --disable-gtk-doc \
            --disable-nls \
            --disable-introspection \
            --with-authfw=pam \
            --with-os-type=redhat \

make

$MAKEINSTALL
