enigma2 srctree bitbake recipe: fix dependencies (copied latest from openembedded...
[openblackhole/openblackhole-enigma2.git] / enigma2.bb
1 DESCRIPTION = "Enigma2 is an experimental, but useful framebuffer-based frontend for DVB functions"
2 MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
3 DEMUXTOOL = "${@["replex","projectx"][bb.data.getVar("TARGET_FPU",d,1) == 'hard']}"
4 DEPENDS = "jpeg libungif libmad libpng libsigc++-1.2 gettext-native \
5         dreambox-dvbincludes freetype libdvbsi++ python python-twisted swig-native  \
6         dvd+rw-tools dvdauthor mjpegtools cdrkit python-imaging ${DEMUXTOOL} \
7         libfribidi libxmlccwrap libdreamdvd libdvdcss tuxtxt-enigma2 ethtool \
8         gstreamer gst-plugins-bad gst-plugins-good gst-plugins-ugly \
9         python-wifi hotplug-e2-helper"
10 RDEPENDS_${PN} = "python-codecs python-core python-lang python-re python-threading \
11         python-xml python-fcntl gst-plugin-decodebin gst-plugin-decodebin2 python-stringold \
12         python-pickle gst-plugin-app \
13         gst-plugin-id3demux gst-plugin-mad gst-plugin-ogg gst-plugin-playbin \
14         gst-plugin-typefindfunctions gst-plugin-audioconvert gst-plugin-audioresample \
15         gst-plugin-wavparse python-netclient gst-plugin-mpegstream \
16         gst-plugin-flac gst-plugin-mpegdemux gst-plugin-dvdsub \
17         gst-plugin-souphttpsrc gst-plugin-mpegaudioparse gst-plugin-subparse \
18         gst-plugin-apetag gst-plugin-icydemux gst-plugin-autodetect gst-plugin-audioparsersbad \
19         python-twisted-core python-elementtree python-compression \
20         python-utf8-hack \
21         enigma2-fonts \
22         glibc-gconv-iso8859-15 ethtool"
23
24 # DVD playback is integrated, we need the libraries
25 RDEPENDS_${PN} += "libdreamdvd"
26 RRECOMMENDS_${PN} = "libdvdcss"
27
28 RDEPENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "blindscan", "virtual/blindscanutils" , "", d)}"
29
30 # Magic is the default skin, so we should depend on it.
31 DEPENDS += "enigma2-plugin-skins-magic"
32 RDEPENDS_${PN} += "enigma2-plugin-skins-magic"
33
34 # We depend on the font which we use for TXT subtitles (defined in skin_subtitles.xml)
35 DEPENDS += "font-valis-enigma"
36 RDEPENDS_${PN} += "font-valis-enigma"
37
38 RDEPENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "alsa", "gst-plugin-alsa alsa-conf", "", d)}"
39
40 # proper hdtv hardware should be able to playback these codecs (hmm, what about DVD/CD?)
41 # and rtsp support is not expected to be useful without h264 decoder
42 RDEPENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "hdtv", "\
43         gst-plugin-avi gst-plugin-matroska gst-plugin-qtdemux \
44         gst-plugin-udp gst-plugin-rtsp gst-plugin-rtp gst-plugin-rtpmanager \
45         gst-plugin-cdxaparse gst-plugin-cdio gst-plugin-vcdsrc", "", d)}"
46
47 # pick the vorbis decoder based on FPU capability
48 RDEPENDS_${PN} += "${@["gst-plugin-ivorbisdec","gst-plugin-vorbis"][bb.data.getVar("TARGET_FPU",d,1) == 'hard']}"
49
50 RDEPENDS_enigma2_append_dm7020 = " gst-plugin-ossaudio"
51
52 # FPU hardware should be able to downmix DTS
53 RRECOMMENDS_${PN} = "${@["","gst-plugin-dtsdec"][bb.data.getVar("TARGET_FPU",d,1) == 'hard']}"
54
55 # 'forward depends' - no two providers can have the same PACKAGES_DYNAMIC, however both
56 # enigma2 and enigma2-plugins produce enigma2-plugin-*.
57 #DEPENDS += "enigma2-plugins"
58 #PACKAGES_DYNAMIC = "enigma2-plugin-*"
59
60 DESCRIPTION_append_enigma2-plugin-extensions-cutlisteditor = "enables you to cut your movies."
61 RDEPENDS_enigma2-plugin-extensions-cutlisteditor = "aio-grab"
62 DESCRIPTION_append_enigma2-plugin-extensions-graphmultiepg = "shows a graphical timeline EPG."
63 DESCRIPTION_append_enigma2-plugin-extensions-pictureplayer = "displays photos on the TV."
64 DESCRIPTION_append_enigma2-plugin-systemplugins-frontprocessorupdate = "keeps your frontprocessor up to date."
65 DESCRIPTION_append_enigma2-plugin-systemplugins-positionersetup = "helps you installing a motorized dish."
66 DESCRIPTION_append_enigma2-plugin-systemplugins-satelliteequipmentcontrol = "allows you to fine-tune DiSEqC-settings."
67 DESCRIPTION_append_enigma2-plugin-systemplugins-satfinder = "helps you to align your dish."
68 DESCRIPTION_append_enigma2-plugin-systemplugins-skinselector = "shows a menu with selectable skins."
69 DESCRIPTION_append_enigma2-plugin-systemplugins-videomode = "selects advanced video modes"
70 RDEPENDS_enigma2-plugin-systemplugins-nfiflash = "python-twisted-web"
71 RDEPENDS_enigma2-plugin-systemplugins-softwaremanager = "python-twisted-web"
72 DESCRIPTION_append_enigma2-plugin-systemplugins-crashlogautosubmit = "automatically send crashlogs to Dream Multimedia"
73 RDEPENDS_enigma2-plugin-systemplugins-crashlogautosubmit = "python-twisted-mail python-twisted-names python-compression python-mime python-email"
74 DESCRIPTION_append_enigma2-plugin-systemplugins-cleanupwizard = "informs you on low internal memory on system startup."
75 DESCRIPTION_append_enigma2-plugin-extensions-modem = "opens a menu to connect to internet via builtin modem."
76 RDEPENDS_enigma2-plugin-extensions-modem = "dreambox-modem-ppp-scripts"
77 DESCRIPTION_append_enigma2-plugin-systemplugins-wirelesslan = "helps you configuring your wireless lan"
78 RDEPENDS_enigma2-plugin-systemplugins-wirelesslan = "wpa-supplicant wireless-tools python-wifi"
79 DESCRIPTION_append_enigma2-plugin-systemplugins-networkwizard = "provides easy step by step network configuration"
80 RDEPENDS_enigma2-plugin-extensions-dvdburn = "dvd+rw-tools dvdauthor mjpegtools cdrkit python-imaging ${DEMUXTOOL}"
81 RDEPENDS_enigma2-plugin-systemplugins-hotplug = "hotplug-e2-helper"
82
83 inherit gitpkgv srctree
84
85 PV = "2.7+git"
86 PKGV = "2.7+git${GITPKGV}"
87 PR = "r26"
88
89 FILES_${PN} += "${datadir}/keymaps"
90 FILES_${PN}-meta = "${datadir}/meta"
91 PACKAGES =+ "${PN}-src"
92 PACKAGES += "${PN}-meta"
93 PACKAGE_ARCH = "${MACHINE_ARCH}"
94
95 inherit autotools pkgconfig
96
97 # fonts: Rarely changed, but updated everytime. Put in separate package,
98 # so the dm7025 can keep them in squashfs. Also saves bandwidth...
99 PACKAGES =+ "enigma2-fonts"
100 PV_enigma2-fonts = "2010.11.14"
101 PR_enigma2-fonts = "r0"
102 PKGV_enigma2-fonts = "${PV_enigma2-fonts}"
103 FILES_enigma2-fonts = "${datadir}/fonts"
104
105 bindir = "/usr/bin"
106 sbindir = "/usr/sbin"
107
108 EXTRA_OECONF = "\
109         --enable-maintainer-mode --with-target=native --with-libsdl=no --with-boxtype=${MACHINE} \
110         ${@base_contains("MACHINE_FEATURES", "textlcd", "--with-textlcd" , "", d)} \
111         ${@base_contains("MACHINE_FEATURES", "colorlcd", "--with-colorlcd" , "", d)} \
112         BUILD_SYS=${BUILD_SYS} \
113         HOST_SYS=${HOST_SYS} \
114         STAGING_INCDIR=${STAGING_INCDIR} \
115         STAGING_LIBDIR=${STAGING_LIBDIR} \
116         "
117
118 do_install_append() {
119         install -d ${D}/usr/share/keymaps
120 }
121
122 python populate_packages_prepend () {
123         enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
124         do_split_packages(d, enigma2_plugindir, '(.*?/.*?)/.*', 'enigma2-plugin-%s', '%s ', recursive=True, match_path=True, prepend=True, extra_depends="enigma2")
125 }