xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-devtools/lemon/lemon.inc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1DESCRIPTION = "The Lemon Parser Generator"
2HOMEPAGE = "http://www.hwaci.com/sw/lemon/"
3LICENSE = "PD"
4SECTION = "devel"
5
6SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
7           file://lemon.1"
8
9S = "${WORKDIR}/sqlite-${PV}/tool"
10
11do_compile() {
12    ${CC} ${CFLAGS} lemon.c -c -o lemon.o
13    ${CCLD} ${LDFLAGS} lemon.o -o lemon
14}
15
16do_install() {
17    install -d ${D}${bindir}
18    install -m 0755 lemon ${D}${bindir}
19    install -m 0644 lempar.c ${D}${bindir}
20    install -d ${D}${mandir}/man1
21    install -m 0644 ${WORKDIR}/lemon.1 ${D}${mandir}/man1/
22}
23
24BBCLASSEXTEND = "native"
25
26