summaryrefslogtreecommitdiffstats
path: root/external/meta-iot-cloud/recipes-support/http-parser/http-parser_2.8.1.bb
blob: 8fd2fba9af171b08115a86dc43b2938f8a93026b (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
SUMMARY = "Parser for HTTP messages written in C"
HOMEPAGE = "https://github.com/nodejs/http-parser"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=9bfa835d048c194ab30487af8d7b3778"

SRC_URI = "git://github.com/nodejs/http-parser.git"
SRCREV = "54f55a2f02a823e5f5c87abe853bb76d1170718d"

PR = "r0"

S = "${WORKDIR}/git"

EXTRA_OEMAKE = "\
    'CFLAGS=${CFLAGS} -Wno-implicit-fallthrough' \
"

do_configure[noexec] = "1"

do_compile() {
    oe_runmake library package
}

do_install() {
    oe_libinstall -C ${S} -so libhttp_parser ${D}${libdir}

    install -d ${D}${includedir}
    install -m 0644 ${S}/*.h ${D}${includedir}
}

BBCLASSEXTEND = "native nativesdk"