#! /bin/bash

./bootstrap && \
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
    --disable-cddax \
    --disable-gtk \
    --disable-vcdx \
    --enable-caca \
    --enable-dvdread \
    --enable-faad \
    --enable-ffmpeg \
    --enable-flac \
    --enable-goom \
    --enable-livedotcom \
    --enable-nls \
    --enable-optimizations \
    --enable-quicktime \
    --enable-real \
    --enable-realrtsp \
    --enable-release \
    --enable-sdl \
    --enable-shout \
    --enable-shared-libvlc \
    --enable-theora \
    --enable-twolame \
    --with-caca-config-path=/usr/win32/bin \
    --with-dvdnav-config-path=/usr/win32/bin \
    --with-ffmpeg-faac \
    --with-ffmpeg-mp3lame \
    --with-ffmpeg-zlib \
    --with-freetype-config-path=/usr/win32/bin \
    --with-fribidi-config-path=/usr/win32/bin \
    --with-livedotcom-tree=/usr/win32/live.com \
    --with-sdl-config-path=/usr/win32/bin \
    --with-wx-config-path=/usr/win32/bin \
    --with-xml2-config-path=/usr/win32/bin
