#!/bin/sh

. config/options $1

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --disable-debug \
            --enable-malloc \
            --with-glib=no \
            --enable-shared \
            --disable-static \

make

$MAKEINSTALL
cp -f $ROOT/$PKG_DIR/scripts/$1-config $ROOT/$TOOLCHAIN/bin/$1-config
