aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/buglabs/bug2v4l2_git.bb
blob: 924607e1faf7941fe19320c6d1e9325e25043745 (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
36
37
DESCRIPTION = "Video 4 Linux 2 Tools for Bug 2.0"
LICENSE = "BSD"
DEPENDS = "virtual/kernel python"

inherit distutils-base

PV = "0.01"
PR = "r2"

PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = "bug20"

SRCREV = "8321b5766b464a4cf80ff5f1c03276ee7f136d81"
SRC_URI = "git://gitorious.org/bl-camera2-test-app/bl-camera2-test-app.git;protocol=git"

S = "${WORKDIR}/git"

EXTRA_OEMAKE += " KDIR=${STAGING_KERNEL_DIR} OE_PATH=${STAGING_INCDIR} "

do_install () {
    install -d ${D}${bindir}/
    install -m 0755 ${S}/bug2v4l2 ${D}${bindir}/

    install -d ${D}${libdir}/${PYTHON_DIR}/site-packages/bug2v4l2
    install -m 0755 ${S}/python/build/bug2v4l2/* ${D}${libdir}/${PYTHON_DIR}/site-packages/bug2v4l2

    install -d ${D}${datadir}/bug2v4l2/examples
    install -m 0755 ${S}/python/examples/* ${D}${datadir}/bug2v4l2/examples
    install -m 0755 ${S}/examples/* ${D}${datadir}/bug2v4l2/examples
}

FILES_${PN} += "${bindir}/bug2v4l2"
FILES_${PN} += "${libdir}/${PYTHON_DIR}/site-packages/bug2v4l2"
FILES_${PN}-debug += "${bindir}/.debug/bug2v4l2"

PACKAGES =+ "${PN}-examples"
FILES_${PN}-examples = "${datadir}/bug2v4l2/examples"