enigma2: bump version to 4.3.3r1
[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 RRECOMMENDS_${PN} += " \
52         enigma2-journald \
53 "
54
55 FILES_${PN} += "${datadir}/fonts ${datadir}/keymaps ${libdir}/fonts ${libdir}/libopen.so"
56 FILES_${PN}-dev = "${includedir} ${libdir}/*.la ${libdir}/pkgconfig"
57 FILES_${PN}-meta = "${datadir}/meta"
58
59 require enigma2-core-plugins.inc
60
61 # Override systemd_postinst from systemd.bbclass to replace 'restart' with 'start'.
62 systemd_postinst() {
63 OPTS=""
64 if [ -n "$D" ]; then
65     OPTS="--root=$D"
66 fi
67 if type systemctl >/dev/null 2>/dev/null; then
68     systemctl $OPTS ${SYSTEMD_AUTO_ENABLE} ${SYSTEMD_SERVICE}
69     if [ -z "$D" -a "${SYSTEMD_AUTO_ENABLE}" = "enable" ]; then
70         systemctl start ${SYSTEMD_SERVICE}
71     fi
72 fi
73 }