PKG_NAME="xbmc"
PKG_VERSION="10.0-Dharma"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="http://www.xbmc.org"
PKG_URL="$OPENELEC_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2"
PKG_DEPENDS="boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump dbus libXt libXtst libXmu libXrandr Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmms libmodplug faad2 flac wavpack libmpeg2 libbluray SDL SDL_mixer SDL_image sqlite mysql samba alsa bc"
PKG_BUILD_DEPENDS="toolchain boost Python zlib bzip2 lzo pcre alsa-lib libass enca curl libssh rtmpdump dbus libXt libXtst libXmu libXrandr Mesa glew fontconfig fribidi $LIBJPEG libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmms libmodplug faad2 flac wavpack libmpeg2 libbluray SDL SDL_mixer SDL_image sqlite mysql samba"
PKG_PRIORITY="optional"
PKG_SECTION="mediacenter"
PKG_SHORTDESC="xbmc: XBMC Mediacenter"
PKG_LONGDESC="XBMC Media Center (which was formerly named Xbox Media Center) is a free and open source cross-platform media player and home entertainment system software with a 10-foot user interface designed for the living-room TV. Its graphical user interface allows the user to easily manage video, photos, podcasts, and music from a computer, optical disk, local network, and the internet using a remote control."
PKG_IS_ADDON="no"

PKG_AUTORECONF="no"

if [ "$FAAC_SUPPORT" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS faac"
  PKG_DEPENDS="$PKG_DEPENDS faac"
fi

if [ "$AVAHI_DAEMON" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS avahi"
  PKG_DEPENDS="$PKG_DEPENDS avahi"
fi

if [ "$WEBSERVER" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libmicrohttpd"
  PKG_DEPENDS="$PKG_DEPENDS libmicrohttpd"
fi

if [ "$VDPAU" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libvdpau"
  PKG_DEPENDS="$PKG_DEPENDS libvdpau"
fi

if [ "$VAAPI" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS libva"
  PKG_DEPENDS="$PKG_DEPENDS libva"
fi

if [ "$CRYSTALHD" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS crystalhd"
  PKG_DEPENDS="$PKG_DEPENDS crystalhd"
fi

if [ "$WIIMOTE_SUPPORT" = yes ]; then
  PKG_BUILD_DEPENDS="$PKG_BUILD_DEPENDS wiiuse"
  PKG_DEPENDS="$PKG_DEPENDS wiiuse"
fi

if [ "$PS3REMOTE_SUPPORT" = yes ]; then
  PKG_DEPENDS="$PKG_DEPENDS PyBluez"
fi
