#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build SDL
#$SCRIPTS/build flac
#$SCRIPTS/build libmad
#$SCRIPTS/build libogg

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --enable-shared \
            --disable-static \
             --disable-music-cmd \
             --disable-music-wave \
            --disable-music-mod \
            --disable-music-midi \
            --disable-music-timidity-midi \
             --disable-music-native-midi \
             --disable-music-native-midi-gpl \
            --disable-music-ogg \
             --disable-music-ogg-shared \
            --disable-music-flac \
            --disable-music-flac-shared \
            --disable-music-mp3 \
            --disable-smpegtest \
             --disable-music-mp3-shared \
             --disable-music-mp3-mad-gpl

make

$MAKEINSTALL
