summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/lemon/lemon.inc
blob: 57b9fb710ef4e11494390b66c4eabd5d276943c8 (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
DESCRIPTION = "The Lemon Parser Generator"
HOMEPAGE = "http://www.hwaci.com/sw/lemon/"
LICENSE = "PD"
SECTION = "devel"

SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
           file://lemon.1"

S = "${WORKDIR}/sqlite-${PV}/tool"

do_compile() {
    ${CC} ${CFLAGS} lemon.c -c -o lemon.o
    ${CCLD} ${LDFLAGS} lemon.o -o lemon
}

do_install() {
    install -d ${D}${bindir}
    install -m 0755 lemon ${D}${bindir}
    install -m 0644 lempar.c ${D}${bindir}
    install -d ${D}${mandir}/man1
    install -m 0644 ${WORKDIR}/lemon.1 ${D}${mandir}/man1/
}

BBCLASSEXTEND = "native"