aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netsurf/libparserutils_0.0.2.bb
blob: ea592726f5a313d98d866e7347a88ff59f157445 (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
DESCRIPTION = "LibParserUtils is a library for building efficient parsers"
HOMEPAGE = "http://www.netsurf-browser.org/projects/libparserutils/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "MIT"

PR = "r1"

SRC_URI = "http://www.netsurf-browser.org/projects/releases/libparserutils-${PV}-src.tar.gz"

inherit pkgconfig

EXTRA_OEMAKE = "CURDIR=${S} DESTDIR=${D} PREFIX=${prefix} BUILDDIR=build-OE"

# NOTE: we're using default buildmode here, which results in building only
# static libraries (.a) Not a problem as libparserutils is only used by Netsurf
# at the moment

do_stage () {
        oe_libinstall -a -C build-OE/ libparserutils ${STAGING_LIBDIR}
	install -m 0644 build-OE/libparserutils.pc ${STAGING_LIBDIR}/pkgconfig
	install -d ${STAGING_INCDIR}/parserutils
	install -d ${STAGING_INCDIR}/parserutils/charset
	install -d ${STAGING_INCDIR}/parserutils/input
	install -d ${STAGING_INCDIR}/parserutils/utils
	install -m 0644 include/parserutils/*.h ${STAGING_INCDIR}/parserutils
	install -m 0644 include/parserutils/charset/*.h \
		${STAGING_INCDIR}/parserutils/charset
	install -m 0644 include/parserutils/input/*.h \
		${STAGING_INCDIR}/parserutils/input
	install -m 0644 include/parserutils/utils/*.h \
		${STAGING_INCDIR}/parserutils/utils
}


do_install() {
	oe_runmake install
}

SRC_URI[md5sum] = "5b2e4ddeebe451cc801ccd6e7da06f87"
SRC_URI[sha256sum] = "769be8da5c9a012d2d968fc814567c1067febf3d3df5e18f1ae2521324dcd923"