summaryrefslogtreecommitdiff
path: root/recipes/vdr/vdr_1.7.10.bb
blob: de5121431fab47c9944e60ab1395afdc3259d259 (plain)
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
require vdr.inc
PR = "r3"

SRC_URI += " file://fixpaths.patch;patch=1 \
           file://cplusplus.patch;patch=1 \
           file://disable_plugin.patch;patch=1 \
           file://linkerflags.patch;patch=1 \
          "

SRC_URI_append_linux-uclibceabi = " file://libintl.patch;patch=1 "
SRC_URI_append_uclinux-uclibc = " file://libintl.patch;patch=1 "

CFLAGS_append += " -I${STAGING_INCDIR}/freetype2"

PLUGINDIR = "${libdir}/vdr/plugins"

do_install () {
      oe_runmake 'DESTDIR=${D}' \
                 'PREFIX=${prefix}' \
                 'CONFDIR=${sysconfdir}/vdr' \
                 'VIDEODIR=/var/lib/vdr/video' \
                 'PLUGINLIBDIR=${PLUGINDIR}' \
                 'LOCDIR=${datadir}/locale' \
                 install
}

PACKAGES_DYNAMIC += "vdr-plugin-*"

python populate_packages_prepend () {
        plugindir = bb.data.expand('${PLUGINDIR}', d)
        do_split_packages(d, plugindir, '^libvdr-(.*)\.so*', 'libvdr-%s', 'vdr plugin %s',  extra_depends='')
}

FILES_${PN} = "${bindir}/* /var/lib/vdr/conf/* ${sysconfdir}/*"
FILES_${PN}-dbg += "${PLUGINDIR}/.debug/*"