aboutsummaryrefslogtreecommitdiffstats
path: root/meta-arago-extras/recipes-multimedia/hevc-arm-decoder/hevc-arm-decoder_git.bb
blob: 069e8397357008984dfc781f873bcc1cb75cd3ae (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
SUMMARY = "ARM HEVC Decoder with Unit Test Application"
HOMEPAGE = "https://git.ti.com/processor-sdk/hevc_arm_decoder/"
LICENSE = "TI-TSPA"
LIC_FILES_CHKSUM = "file://Inc/exp_pp_h265decoder.h;beginline=1;endline=27;md5=51a0ae5cca603a21186bf6ff458f3be9"
PR = "r4"

COMPATIBLE_MACHINE = "dra7xx|keystone"

BRANCH = "master"

SRC_URI = "git://git.ti.com/processor-sdk/hevc_arm_decode.git;protocol=git;branch=${BRANCH} \
           file://Testparams.cfg \
"

SRCREV = "4004c553e672538d0c3b5fa2ea0490ec095d0060"

PV = "01.00.00.01"

S = "${WORKDIR}/git"

do_configure() {
    sed "s/-lpthread/-pthread/g" -i ${S}/Client/Build/ARM/makefile
}

do_compile() {
    cd ${S}/Client/Build/ARM
    oe_runmake CC="${CC}" LINKER="${CC}"
}

do_install() {
    install -d ${D}${libdir}
    install -m 755 ${S}/Lib/h265vdec_pp_lib.a ${D}${libdir}

    install -d ${D}${includedir}
    install -m 644 ${S}/Inc/exp_pp_h265decoder.h ${D}${includedir}

    install -d ${D}${bindir}
    install -m 755 ${S}/Client/Build/ARM/Out/h265vdec_pp ${D}${bindir}

    install -d ${D}${datadir}/ti/examples/h265vdec
    install -m 644 ${WORKDIR}/Testparams.cfg ${D}${datadir}/ti/examples/h265vdec

    install -d ${D}${docdir}/${PN}
    for doc in ${S}/Docs/*; do
        install -m 664 ${doc} ${D}${docdir}/${PN}
    done
}

FILES_${PN} += "\
    ${datadir}/ti/*  \
"

INSANE_SKIP_${PN} += "ldflags"