#!/bin/sh

. config/options

$SCRIPTS/build toolchain

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --disable-static \
            --enable-shared \
            --enable-mmx \
            --enable-sse2 \
            --disable-vmx \
            --disable-gtk \
            --with-gnu-ld

echo "" > test/Makefile.am

make

$MAKEINSTALL

cp $SYSROOT_PREFIX/usr/lib/pkgconfig/pixman-1.pc \
   $SYSROOT_PREFIX/usr/lib/pkgconfig/pixman.pc
cp -rf $SYSROOT_PREFIX/usr/include/pixman-1 \
   $SYSROOT_PREFIX/usr/include/pixman
