#!/bin/sh

. config/options $1

cd $PKG_BUILD
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --x-includes="$SYSROOT_PREFIX/usr/include" \
            --x-libraries="$SYSROOT_PREFIX/usr/lib" \
            --disable-silent-rules \
            --enable-shared \
            --disable-static \
            --disable-gtk-doc \
            --enable-largefile \
            --enable-atomic \
            --disable-gcov \
            --disable-valgrind \
            --enable-xlib \
            --enable-xlib-xrender \
            --disable-xcb \
            --disable-xlib-xcb \
            --disable-xcb-shm \
            --disable-qt \
            --disable-quartz \
            --disable-quartz-font \
            --disable-quartz-image \
            --disable-win32 \
            --disable-win32-font \
            --disable-skia \
            --disable-os2 \
            --disable-beos \
            --disable-drm \
            --disable-drm-xr \
            --disable-gallium \
            --disable-xcb-drm \
            --enable-png \
            --enable-gl \
            --disable-directfb \
            --disable-vg \
            --disable-egl \
            --enable-glx \
            --disable-wgl \
            --disable-script \
            --enable-ft \
            --enable-fc \
            --enable-ps \
            --enable-pdf \
            --enable-svg \
            --disable-test-surfaces \
            --disable-tee \
            --disable-xml \
            --enable-pthread \
            --disable-gobject \
            --disable-full-testing \
            --disable-trace \
            --enable-interpreter \
            --disable-symbol-lookup \
            --enable-some-floating-point \
            --with-gnu-ld \
            --with-x

make
$MAKEINSTALL
