summaryrefslogtreecommitdiffstats
path: root/meta-agl-drm-lease/recipes-support/tomlc99/tomlc99_git.bb
blob: 6df5ae5d02705e274ba9275118b8e0825f548a29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=95bbe2f9180443b5dcef3fb959804a65"

SRC_URI = "git://github.com/cktan/tomlc99;protocol=https;branch=master"

PV = "1.0+git${SRCPV}"
SRCREV = "034b23ed3e4e5ee5345040eabed470f204d7f668"

S = "${WORKDIR}/git"

TARGET_CC_ARCH += "${LDFLAGS}"

do_install () {
        oe_runmake install prefix=${D}/${prefix}

        ln -rs ${D}/${prefix}/lib/libtoml.so.0.0 ${D}${prefix}/lib/libtoml.so

        sed 's:^prefix=.*:prefix=${prefix}:' ${S}/libtoml.pc.sample > libtoml.pc
        install -d ${D}${prefix}/lib/pkgconfig
        install libtoml.pc ${D}${prefix}/lib/pkgconfig/
}