#!/bin/sh

. config/options

$SCRIPTS/build toolchain

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

make -C libfaac

$MAKEINSTALL -C libfaac

mkdir -p $SYSROOT_PREFIX/usr/include
  cp include/*.h $SYSROOT_PREFIX/usr/include
