add in-place bitbake recipe
[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 DEPENDS = "jpeg libungif libmad libpng libsigc++-1.2 gettext-native \
4         dreambox-dvbincludes freetype libdvbsi++ python python-twisted swig-native  \
5         dvd+rw-tools dvdauthor mjpegtools cdrkit python-imaging replex \
6         libfribidi libxmlccwrap libdreamdvd libdvdcss tuxtxt-enigma2 ethtool \
7         gstreamer gst-plugins-bad gst-plugins-good gst-plugins-ugly"
8 RDEPENDS_${PN} = "python-codecs python-core python-lang python-re python-threading \
9         python-xml python-fcntl gst-plugin-decodebin gst-plugin-decodebin2 python-stringold \
10         python-pickle gst-plugin-app \
11         gst-plugin-id3demux gst-plugin-mad gst-plugin-ogg gst-plugin-playbin \
12         gst-plugin-typefindfunctions gst-plugin-audioconvert gst-plugin-audioresample \
13         gst-plugin-wavparse python-netclient gst-plugin-mpegstream gst-plugin-selector \
14         gst-plugin-flac gst-plugin-mpegdemux \
15         gst-plugin-neonhttpsrc gst-plugin-mpegaudioparse gst-plugin-subparse \
16         gst-plugin-apetag gst-plugin-icydemux gst-plugin-autodetect \
17         python-twisted-core python-elementtree \
18         enigma2-fonts \
19         glibc-gconv-iso8859-15 ethtool"
20
21 RDEPENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "blindscan", "virtual/blindscanutils" , "", d)}"
22
23 # Magic is the default skin, so we should depend on it.
24 DEPENDS += "enigma2-plugin-skins-magic"
25 RDEPENDS_${PN} += "enigma2-plugin-skins-magic"
26
27 # We depend on the font which we use for TXT subtitles (defined in skin_subtitles.xml)
28 DEPENDS += "font-valis-enigma"
29 RDEPENDS_${PN} += "font-valis-enigma"
30
31 RDEPENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "alsa", "gst-plugin-alsa alsa-conf", "", d)}"
32
33 # proper hdtv hardware should be able to playback these codecs
34 RDEPENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "hdtv", "gst-plugin-avi gst-plugin-matroska \
35                                                                                 gst-plugin-qtdemux gst-plugin-cdxaparse gst-plugin-cdio gst-plugin-vcdsrc gst-plugin-vorbis", "", d)}"
36
37 RDEPENDS_enigma2_append_dm7020 = " gst-plugin-ossaudio gst-plugin-ivorbisdec"
38 RDEPENDS_enigma2_append_dm7025 = " gst-plugin-ivorbisdec"
39 RDEPENDS_enigma2_append_dm800 = " gst-plugin-ivorbisdec"
40
41 # FPU hardware should be able to downmix DTS
42 RRECOMMENDS_${PN} = "${@["","gst-plugin-dtsdec"][bb.data.getVar("TARGET_FPU",d,1) == 'hard']}"
43
44 # 'forward depends' - no two providers can have the same PACKAGES_DYNAMIC, however both
45 # enigma2 and enigma2-plugins produce enigma2-plugin-*.
46 #DEPENDS += "enigma2-plugins"
47 #PACKAGES_DYNAMIC = "enigma2-plugin-*"
48
49 DESCRIPTION_append_enigma2-plugin-extensions-cutlisteditor = "enables you to cut your movies."
50 RDEPENDS_enigma2-plugin-extensions-cutlisteditor = "aio-grab"
51 DESCRIPTION_append_enigma2-plugin-extensions-graphmultiepg = "shows a graphical timeline EPG."
52 DESCRIPTION_append_enigma2-plugin-extensions-pictureplayer = "displays photos on the TV."
53 DESCRIPTION_append_enigma2-plugin-systemplugins-frontprocessorupdate = "keeps your frontprocessor up to date."
54 DESCRIPTION_append_enigma2-plugin-systemplugins-positionersetup = "helps you installing a motorized dish."
55 DESCRIPTION_append_enigma2-plugin-systemplugins-satelliteequipmentcontrol = "allows you to fine-tune DiSEqC-settings."
56 DESCRIPTION_append_enigma2-plugin-systemplugins-satfinder = "helps you to align your dish."
57 DESCRIPTION_append_enigma2-plugin-systemplugins-skinselector = "shows a menu with selectable skins."
58 DESCRIPTION_append_enigma2-plugin-systemplugins-videomode = "selects advanced video modes"
59 RDEPENDS_enigma2-plugin-extensions-dvdplayer = "libdreamdvd"
60 RRECOMMENDS_enigma2-plugin-extensions-dvdplayer = "libdvdcss"
61 RDEPENDS_enigma2-plugin-systemplugins-nfiflash = "python-twisted-web"
62 RDEPENDS_enigma2-plugin-systemplugins-softwaremanager = "python-twisted-web"
63 DESCRIPTION_append_enigma2-plugin-systemplugins-crashlogautosubmit = "automatically send crashlogs to Dream Multimedia"
64 RDEPENDS_enigma2-plugin-systemplugins-crashlogautosubmit = "python-twisted-mail python-twisted-names python-compression python-mime python-email"
65 DESCRIPTION_append_enigma2-plugin-systemplugins-cleanupwizard = "informs you on low internal memory on system startup."
66 DESCRIPTION_append_enigma2-plugin-extensions-modem = "opens a menu to connect to internet via builtin modem."
67 RDEPENDS_enigma2-plugin-extensions-modem = "dreambox-modem-ppp-scripts"
68 DESCRIPTION_append_enigma2-plugin-systemplugins-wirelesslan = "helps you configuring your wireless lan"
69 RDEPENDS_enigma2-plugin-systemplugins-wirelesslan = "wpa-supplicant wireless-tools python-wifi"
70 DESCRIPTION_append_enigma2-plugin-systemplugins-networkwizard = "provides easy step by step network configuration"
71 RDEPENDS_enigma2-plugin-extensions-dvdburn = "dvd+rw-tools dvdauthor mjpegtools cdrkit python-imaging replex"
72
73 inherit gitpkgv srctree
74
75 PN = "enigma2-debug"
76 PV = "2.7+git"
77 PKGV = "2.7+git${GITPKGV}"
78 PR = "r24"
79
80 FILES_${PN} += "${datadir}/keymaps"
81 FILES_${PN}-meta = "${datadir}/meta"
82 PACKAGES += "${PN}-meta"
83 PACKAGE_ARCH = "${MACHINE_ARCH}"
84
85 inherit autotools pkgconfig
86
87 bindir = "/usr/bin"
88 sbindir = "/usr/sbin"
89
90 EXTRA_OECONF = "--enable-maintainer-mode --with-target=native --with-libsdl=no --with-boxtype=${MACHINE}"
91
92 EXTRA_OECONF += "${@base_contains("MACHINE_FEATURES", "textlcd", "--with-textlcd" , "", d)}"
93 EXTRA_OECONF += "${@base_contains("MACHINE_FEATURES", "colorlcd", "--with-colorlcd" , "", d)}"
94
95 do_install_append() {
96         install -d ${D}/usr/share/keymaps
97 }
98
99 python populate_packages_prepend () {
100         enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
101
102         do_split_packages(d, enigma2_plugindir, '(.*?/.*?)/.*', 'enigma2-plugin-%s', '%s ', recursive=True, match_path=True, prepend=True, extra_depends="enigma2")
103 }