aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux/packaging/debian/var_info
blob: e3e4b3033393bbb99e5a9d3bc35cba39344c6ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- 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,
 autotools-dev, autoconf, automake, unzip, libboost-dev, zip, libtool,
 libgl1-mesa-dev | libgl-dev, libglu-dev, libglew-dev, libmad0-dev,
 libjpeg-dev, libsamplerate-dev, libogg-dev, libvorbis-dev, libfreetype6-dev,
 libfontconfig-dev, libbz2-dev, libfribidi-dev, libsqlite3-dev,
 libmysqlclient-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, libxtst-dev, libxmu-dev,
 libxinerama-dev, libcurl4-gnutls-dev | libcurl-dev, libdbus-1-dev,
 libhal-storage-dev, libhal-dev, libpulse-dev, libavahi-common-dev,
 libavahi-client-dev, libxrandr-dev, libavcodec-dev, libavformat-dev,
 libavutil-dev, libpostproc-dev, libswscale-dev, liba52-dev, libdts-dev,
 libmpeg2-4-dev, libass-dev, libmpcdec-dev, libflac-dev, libwavpack-dev,
 python-dev, gawk, gperf, nasm [!amd64], libcwiid1-dev, libbluetooth-dev,
 zlib1g-dev, libmms-dev, libsmbclient-dev, libfaad-dev, libiso9660-dev,
 libssl-dev, lsb-release, libvdpau-dev | nvidia-190-libvdpau-dev |
 nvidia-185-libvdpau-dev | nvidia-180-libvdpau-dev,"

if [ $(lsb_release -is) = "Ubuntu" ]; then
    BUILD_DEPENDS="$BUILD_DEPENDS libfaac-dev, libcrystalhd-dev,"
fi

case "$1" in
    BUILD_DEPENDS)
        printf "$BUILD_DEPENDS"
        ;;
    LIBCURL_DEPENDS)
	LIBCURL_DEPENDS=$(cat /var/lib/dpkg/info/libcurl3.shlibs | \
	    sed 's/^[^[:space:]]\+\?[[:space:]]\+\?[^[:space:]]\+\?[[:space:]]\+\?\(.*\)$/\1/')
	printf "$LIBCURL_DEPENDS"
	;;
    XBMC_LIVE_DEPENDS)
        XBMC_LIVE_DEPENDS="xbmc-standalone (= \${binary:Version}),
         policykit,
         openssh-server,
         \${python:Depends},
         python-apt,
         adduser,
         sudo,
         \${misc:Depends},"
        if [ $(lsb_release -cs) = "karmic" ]; then
            XBMC_LIVE_DEPENDS="$XBMC_LIVE_DEPENDS
         devicekit-disks,
         devicekit-power,"
        fi
        printf "$XBMC_LIVE_DEPENDS"
esac

exit 0