enigma2-hbbtv-plugin: add partial (~90%) support for HBBTV 1.5
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-common.inc
1 SUMMARY = "Framebuffer-based digital media application"
2 LICENSE = "Proprietary"
3
4 SYSTEMD_SERVICE_${PN} = "enigma2.service"
5
6 inherit systemd
7
8 # Qt won't start without this fonts directory.
9 do_install_append() {
10     install -d ${D}${libdir}/fonts
11 }
12
13 PACKAGES += "${PN}-meta"
14
15 RDEPENDS_${PN} += " \
16         cdfs \
17         e2fsprogs-e2fsck \
18         e2fsprogs-mke2fs \
19         enigma2-autofs \
20         hdparm \
21         libpagecache \
22         python-argparse \
23         python-codecs \
24         python-core \
25         python-crypt \
26         python-ctypes \
27         python-dbus \
28         python-fcntl \
29         python-importlib \
30         python-ioctl \
31         python-lang \
32         python-monotonic \
33         python-netaddr \
34         python-netclient \
35         python-netserver \
36         python-pickle \
37         python-re \
38         python-shell \
39         python-subprocess \
40         python-twisted-core \
41         python-twisted-web \
42         python-xml \
43         python-zopeinterface \
44         sdparm \
45         util-linux-blkid \
46         util-linux-sfdisk \
47 "
48 RDEPENDS_${PN}_append_libc-glibc = " \
49         glibc-gconv-iso8859-15 \
50 "
51
52 FILES_${PN} += "${datadir}/fonts ${datadir}/keymaps ${libdir}/fonts ${libdir}/libopen.so"
53 FILES_${PN}-dev = "${includedir} ${libdir}/*.la ${libdir}/pkgconfig"
54 FILES_${PN}-meta = "${datadir}/meta"
55
56 require enigma2-core-plugins.inc
57
58 # Override systemd_postinst from systemd.bbclass to replace 'restart' with 'start'.
59 systemd_postinst() {
60 OPTS=""
61 if [ -n "$D" ]; then
62     OPTS="--root=$D"
63 fi
64 if type systemctl >/dev/null 2>/dev/null; then
65     systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
66     if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
67         systemctl start ${SYSTEMD_SERVICE}
68     fi
69 fi
70 }