#!/bin/sh

. config/options

$SCRIPTS/build toolchain
$SCRIPTS/build SDL
$SCRIPTS/build jpeg
$SCRIPTS/build libpng
$SCRIPTS/build tiff

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --enable-shared \
            --disable-static \
            --enable-bmp \
            --enable-gif \
            --enable-jpg \
            --enable-jpg-shared \
            --disable-lbm \
            --enable-pcx \
            --enable-png \
            --enable-png-shared \
            --enable-pnm \
            --enable-tga \
            --enable-tif \
            --enable-tif-shared \
            --enable-xcf \
            --enable-xpm \
            --enable-xv \
                              
make

$MAKEINSTALL
