blob: 5bff33b8515052b1cb3f69b907a8eff4117851f9 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Embeddable SQL database engine"
2HOMEPAGE = "http://www.sqlite.org"
3SECTION = "libs"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05004
5PE = "3"
6
7def sqlite_download_version(d):
8 pvsplit = d.getVar('PV', True).split('.')
9 if len(pvsplit) < 4:
10 pvsplit.append('0')
11 return pvsplit[0] + ''.join([part.rjust(2,'0') for part in pvsplit[1:]])
12
13SQLITE_PV = "${@sqlite_download_version(d)}"
14
15S = "${WORKDIR}/sqlite-autoconf-${SQLITE_PV}"
16
17UPSTREAM_CHECK_URI = "http://www.sqlite.org/"
18UPSTREAM_CHECK_REGEX = "releaselog/(?P<pver>(\d+[\.\-_]*)+)\.html"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019
20inherit autotools pkgconfig
21
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050022PACKAGECONFIG ?= ""
23PACKAGECONFIG_class-native = ""
24
25PACKAGECONFIG[editline] = "--enable-editline,--disable-editline,libedit"
26PACKAGECONFIG[readline] = "--enable-readline,--disable-readline,readline ncurses"
27
28EXTRA_OECONF = " \
29 --enable-shared \
30 --enable-threadsafe \
31 --disable-static-shell \
32"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033
34# pread() is in POSIX.1-2001 so any reasonable system must surely support it
35BUILD_CFLAGS += "-DUSE_PREAD"
36TARGET_CFLAGS += "-DUSE_PREAD"
37
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038# Provide column meta-data API
39BUILD_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA"
40TARGET_CFLAGS += "-DSQLITE_ENABLE_COLUMN_METADATA"
41
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
43
44FILES_${PN} = "${bindir}/*"
45FILES_lib${BPN} = "${libdir}/*.so.*"
46FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050047 ${libdir}/pkgconfig ${includedir}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050048FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}"
49FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050050
Patrick Williamsc124f4f2015-09-15 14:41:29 -050051AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}"
52
53BBCLASSEXTEND = "native nativesdk"