aboutsummaryrefslogtreecommitdiff
path: root/recipes/netsurf/libwapcaplet_0.0.2.bb
blob: 02c1d7a2c90ec8a87f8c1f72a8005f0db42e0a20 (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
DESCRIPTION = "LibWapcaplet is a string internment library, written in C"
HOMEPAGE = "http://www.netsurf-browser.org/projects/libwapcaplet/"
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "MIT"

PR = "r1"

SRC_URI = "http://download.netsurf-browser.org/libs/releases/libwapcaplet-${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 libnsbmp is only used by Netsurf
# at the moment

do_stage() {
	oe_libinstall -a -C build-OE/ libwapcaplet ${STAGING_LIBDIR}
	install -m 0644 build-OE/libwapcaplet.pc ${STAGING_LIBDIR}/pkgconfig
	install -d ${STAGING_INCDIR}/libwapcaplet
	install -m 0644 include/libwapcaplet/*.h ${STAGING_INCDIR}/libwapcaplet
}

do_install() {
	oe_runmake install
}

SRC_URI[md5sum] = "c73b5ff5fce55819cc698e8cb486d5eb"
SRC_URI[sha256sum] = "4246215ceff620a882d170b3ef4abaa04fcb4190122a62b6e9b3e662ab880869"