-
Notifications
You must be signed in to change notification settings - Fork 1
/
enigma2.bb
44 lines (35 loc) · 1.34 KB
/
enigma2.bb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DESCRIPTION = "Enigma2 is an experimental, but useful framebuffer-based frontend for DVB functions"
MAINTAINER = "OpenPLi team <info@openpli.org>"
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
inherit gitpkgv externalsrc
S = "${FILE_DIRNAME}"
WORKDIR = "${S}/build"
PV = "2.7+git"
PKGV = "2.7+git${GITPKGV}"
PR = "r26"
FILES_${PN} += "${datadir}/keymaps"
FILES_${PN}-meta = "${datadir}/meta"
PACKAGES =+ "${PN}-src"
PACKAGES += "${PN}-meta"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit autotools pkgconfig pythonnative
bindir = "/usr/bin"
sbindir = "/usr/sbin"
EXTRA_OECONF = "\
--enable-maintainer-mode --with-target=native --with-libsdl=no --with-boxtype=${MACHINE} \
--enable-dependency-tracking \
${@base_contains("MACHINE_FEATURES", "textlcd", "--with-textlcd" , "", d)} \
${@base_contains("MACHINE_FEATURES", "colorlcd", "--with-colorlcd" , "", d)} \
BUILD_SYS=${BUILD_SYS} \
HOST_SYS=${HOST_SYS} \
STAGING_INCDIR=${STAGING_INCDIR} \
STAGING_LIBDIR=${STAGING_LIBDIR} \
"
do_install_append() {
install -d ${D}/usr/share/keymaps
}
python populate_packages_prepend () {
enigma2_plugindir = bb.data.expand('${libdir}/enigma2/python/Plugins', d)
do_split_packages(d, enigma2_plugindir, '(.*?/.*?)/.*', 'enigma2-plugin-%s', '%s ', recursive=True, match_path=True, prepend=True, extra_depends="enigma2")
}