#!/bin/sh

. config/options $1

cd $PKG_BUILD

# create some files needed for autoreconf
  touch NEWS AUTHORS ChangeLog
  do_autoreconf

./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 \
            --with-sdl-prefix=$SYSROOT_PREFIX/usr \

make

$MAKEINSTALL
