#
# Note to packagers:
#  - grab xbmc sources from http://mirrors.xbmc.org/releases/source/
#  - bootstrap
#  - package
#

PKG_NAME=xbmc-pvr
PKG_VERSION=5136a4fcc2e9d272fbfc668e843976f573f5d8a5
PKG_URL="$DISTRO_SRCS/$PKG_NAME-${PKG_VERSION}.tar.bz2"
PKG_REV=1
PKG_DEPENDS="$TARGET_LIBC Python boost zlib bzip2 lzo pcre alsa-lib libssh libass enca curl dbus libXt libXtst libXmu libXrandr libXinerama fontconfig fribidi jpeg libpng tiff freetype jasper libmad libsamplerate libogg libvorbis libcdio libmms libmodplug faad2 flac wavpack libmpeg2 SDL SDL-mixer SDL-image sqlite alsa yajl"
PKG_RUN_DEPENDS="mesa-demos xdpyinfo libmysqlclient libsmbclient"
PKG_BUILD_DEPENDS="toolchain boost mysql samba unzip zip"
PKG_USE="opengl opengles openmax joystick zeroconf webserver vdpau vaapi crystalhd pulseaudio dvdcss bluray rtmp nonfree externalffmpeg tvheadend"
PKG_DEPENDS_opengl="mesa glew"
PKG_DEPENDS_opengles="glew"
PKG_USE_DEFAULT_opengl=yes
PKG_BUILD_DEPENDS_opengles="OpenGLES"
PKG_BUILD_DEPENDS_openmax="OpenMAX"
PKG_USE_DESC_joystick="Enable Joystick support"
PKG_USE_DESC_faac="Enable AAC encoding support"
PKG_USE_DESC_webserver="Enable Web Server support"
PKG_DEPENDS_webserver="libmicrohttpd"
PKG_DEPENDS_vdpau="libvdpau"
PKG_DEPENDS_vaapi="libva"
PKG_DEPENDS_zeroconf="avahi"
PKG_DEPENDS_crystalhd="crystalhd"
PKG_DEPENDS_pulseaudio="pulseaudio"
PKG_USE_DESC_nonfree="Enable Non-Free modules"
PKG_DEPENDS_bluray="libbluray"
PKG_USE_DESC_rtmp="Enable RTMP support"
PKG_DEPENDS_rtmp="rtmpdump"
PKG_DEPENDS_externalffmpeg="ffmpeg"
PKG_DEPENDS_tvheadend="tvheadend"
PKG_PRIORITY=optional
PKG_SECTION=multimedia
PKG_SHORTDESC="XBMC MediaCenter with pvr support"
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."
