# -*- sh -*-
# This is a file run by sh used for replacing certain variables from input
# files in the XBMC packaging.

BUILD_DEPENDS="debhelper (>= 7.0.50~),
 python-support,
 cmake,
 autopoint | gettext,
 autotools-dev,
 autoconf,
 automake,
 unzip,
 libboost-dev,
 zip,
 libtool,
 libgles2-mesa-dev [armel] | libgl1-mesa-dev | libgl-dev,
 libglu1-mesa-dev | libglu-dev,
 libglew-dev,
 libmad0-dev,
 libjpeg-dev,
 libsamplerate-dev,
 libogg-dev,
 libvorbis-dev,
 libmp3lame-dev,
 libfreetype6-dev,
 libfontconfig-dev,
 libbz2-dev,
 libfribidi-dev,
 libsqlite3-dev,
 libmysqlclient-dev,
 libasound2-dev | libasound-dev,
 libpng12-dev | libpng-dev,
 libpcre3-dev,
 liblzo2-dev,
 libcdio-dev,
 libsdl-dev,
 libsdl-image1.2-dev,
 libsdl-mixer1.2-dev,
 libenca-dev,
 libjasper-dev,
 libxt-dev,
 libxmu-dev,
 libcurl4-gnutls-dev | libcurl-dev,
 libdbus-1-dev,
 libpulse-dev,
 libavahi-common-dev,
 libavahi-client-dev,
 libxrandr-dev,
 libmpeg2-4-dev,
 libass-dev (>= 0.9.8),
 libflac-dev,
 python-dev,
 gawk,
 gperf,
 nasm [!amd64],
 yasm,
 libcwiid-dev,
 libbluetooth-dev,
 zlib1g-dev,
 libsmbclient-dev,
 libiso9660-dev,
 libssl-dev,
 lsb-release,
 libmicrohttpd-dev,
 libmodplug-dev,
 librtmp-dev,
 curl,
 libyajl-dev,
 libboost-thread-dev,
 gdc,
 fpc,
 cvs,
 libomxil-bellagio-dev [armel],
 python-imaging,
 libplist-dev,
 libhal-storage-dev,
 libcec-dev (>= 1.1),
 libudev-dev,
 libafpclient-dev,
 libshairport-dev,
 libnfs-dev,
 libbluray-dev,
 libtinyxml-dev,
 libvdpau-dev,
 libcrystalhd-dev,
 libssh-dev,
 swig,
 openjdk-7-jre | openjdk-6-jre,
 libtag1x8,
 libtiff4-dev | libtiff-dev,
 libva-dev,
 libltdl-dev,
 libavcodec-dev,
 libavfilter-dev,
 libavformat-dev,
 libavutil-dev,
 libpostproc-dev,
 libswscale-dev,"

case "$1" in
    BUILD_DEPENDS)
        printf "$BUILD_DEPENDS"
        ;;
    XBMC_LIVE_DEPENDS)
        XBMC_LIVE_DEPENDS="xbmc (= \${binary:Version}),
         openssh-server,
         \${python:Depends},
         python-apt,
         adduser,
         sudo,
         whois,
         \${misc:Depends},
         \${shlibs:Depends},"
        if [ $(lsb_release -cs) = "lucid" ]; then
            XBMC_LIVE_DEPENDS="$XBMC_LIVE_DEPENDS
         mkpasswd,"
        fi
        if [ $(lsb_release -cs) = "natty" ]; then
            XBMC_LIVE_DEPENDS="$XBMC_LIVE_DEPENDS
         uxlaunch,"
        fi
        if [ $(lsb_release -cs) = "oneiric" ]; then
            XBMC_LIVE_DEPENDS="$XBMC_LIVE_DEPENDS
         lightdm,"
        fi

        printf "$XBMC_LIVE_DEPENDS"
        ;;
esac

exit 0
