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