#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build libogg

# ensure we dont use size optimization.
  CFLAGS=`echo $CFLAGS | sed -e "s|-Os|-O3|"`
  CXXFLAGS=`echo $CXXFLAGS | sed -e "s|-Os|-O3|"`

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --disable-static \
            --enable-shared \
            --disable-rpath \
            --with-gnu-ld \
            --disable-altivec \
            --disable-doxygen-docs \
            --disable-thorough-tests \
            --disable-cpplibs \
            --disable-xmms-plugin \
            --disable-oggtest \
            --with-ogg=$SYSROOT_PREFIX/usr

make

$MAKEINSTALL
