blob: 2e3791bfc307b3f9ef38825221acd2d64b9e4bdc [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Embeddable SQL database engine"
2HOMEPAGE = "http://www.sqlite.org"
3SECTION = "libs"
4DEPENDS = "readline ncurses"
5DEPENDS_class-native = ""
6LICENSE = "PD"
7
8inherit autotools pkgconfig
9
10EXTRA_OECONF = "--enable-shared --enable-threadsafe"
11EXTRA_OECONF_class-native = "--enable-shared --enable-threadsafe --disable-readline"
12export config_BUILD_CC = "${BUILD_CC}"
13export config_BUILD_CFLAGS = "${BUILD_CFLAGS}"
14export config_BUILD_LIBS = "${BUILD_LDFLAGS}"
15export config_TARGET_CC = "${CC}"
16export config_TARGET_LINK = "${CCLD}"
17export config_TARGET_CFLAGS = "${CFLAGS}"
18export config_TARGET_LFLAGS = "${LDFLAGS}"
19
20# pread() is in POSIX.1-2001 so any reasonable system must surely support it
21BUILD_CFLAGS += "-DUSE_PREAD"
22TARGET_CFLAGS += "-DUSE_PREAD"
23
24PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}"
25
26FILES_${PN} = "${bindir}/*"
27FILES_lib${BPN} = "${libdir}/*.so.*"
28FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \
29 ${libdir}/pkgconfig ${includedir}"
30FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}"
31FILES_lib${BPN}-staticdev = "${libdir}/lib*.a"
32AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}"
33
34BBCLASSEXTEND = "native nativesdk"