#!/bin/sh

################################################################################
#      This file is part of OpenELEC - http://www.openelec.tv
#      Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
#  This Program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2, or (at your option)
#  any later version.
#
#  This Program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with OpenELEC.tv; see the file COPYING.  If not, write to
#  the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
#  http://www.gnu.org/copyleft/gpl.html
################################################################################

. config/options $1

cd $PKG_BUILD
py_cv_mod_gtk_=yes \
py_cv_mod_dbus_=yes \
ac_cv_func_chroot=no \
./configure --host=$TARGET_NAME \
            --build=$HOST_NAME \
            --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --disable-static \
            --enable-shared \
            --with-distro=none \
            --disable-glib \
            --disable-gobject \
            --disable-qt3 \
            --disable-qt4 \
            --disable-gtk \
            --disable-gtk3 \
            --enable-dbus \
            --disable-dbm \
            --disable-gdbm \
            --enable-libdaemon \
            --enable-python \
            --disable-pygtk \
            --enable-python-dbus \
            --disable-mono \
            --disable-monodoc \
            --enable-autoipd \
            --disable-doxygen-doc \
            --disable-doxygen-dot \
            --disable-doxygen-man \
            --disable-doxygen-rtf \
            --disable-doxygen-xml \
            --disable-doxygen-chm \
            --disable-doxygen-chi \
            --disable-doxygen-html \
            --disable-doxygen-ps \
            --disable-doxygen-pdf \
            --disable-core-docs \
            --disable-manpages \
            --disable-xmltoman \
            --disable-tests \
            --enable-compat-libdns_sd \
            --disable-compat-howl \
            --with-xml=expat \
            --with-avahi-user=avahi \
            --with-avahi-group=avahi \
            --with-autoipd-user=avahiautoipd \
            --with-autoipd-group=avahiautoipd \
            --disable-nls

make V=1

$MAKEINSTALL
