summaryrefslogtreecommitdiffstats
path: root/meta/packages/sqlite/sqlite3.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/sqlite/sqlite3.inc')
-rw-r--r--meta/packages/sqlite/sqlite3.inc44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/packages/sqlite/sqlite3.inc b/meta/packages/sqlite/sqlite3.inc
new file mode 100644
index 0000000000..01290c2e41
--- /dev/null
+++ b/meta/packages/sqlite/sqlite3.inc
@@ -0,0 +1,44 @@
1DESCRIPTION = "An Embeddable SQL Database Engine"
2SECTION = "libs"
3PRIORITY = "optional"
4DEPENDS = "readline ncurses"
5LICENSE = "PD"
6
7SRC_URI = "http://www.sqlite.org/sqlite-${PV}.tar.gz \
8 file://cross-compile.patch;patch=1 \
9 file://libtool.patch;patch=1 \
10 file://ldflags.patch;patch=1"
11S = "${WORKDIR}/sqlite-${PV}"
12
13inherit autotools pkgconfig
14
15EXTRA_OECONF = "--disable-tcl --enable-shared \
16 --enable-threadsafe"
17export config_BUILD_CC = "${BUILD_CC}"
18export config_BUILD_CFLAGS = "${BUILD_CFLAGS}"
19export config_BUILD_LIBS = "${BUILD_LDFLAGS}"
20export config_TARGET_CC = "${CC}"
21export config_TARGET_LINK = "${CCLD}"
22export config_TARGET_CFLAGS = "${CFLAGS}"
23export config_TARGET_LFLAGS = "${LDFLAGS}"
24
25do_compile_prepend() {
26 oe_runmake sqlite3.h
27 install -m 0644 sqlite3.h ${STAGING_INCDIR}
28}
29
30do_stage() {
31 oe_libinstall -so libsqlite3 ${STAGING_LIBDIR}
32}
33
34#do_install() {
35# oe_runmake install DESTDIR=${D} prefix=${prefix} exec_prefix=${exec_prefix}
36#}
37
38PACKAGES = "libsqlite libsqlite-dev libsqlite-doc sqlite3 sqlite3-dbg"
39FILES_sqlite3 = "${bindir}/*"
40FILES_libsqlite = "${libdir}/*.so.*"
41FILES_libsqlite-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so \
42 ${libdir}/pkgconfig ${includedir}"
43FILES_libsqlite-doc = "${docdir} ${mandir} ${infodir}"
44AUTO_LIBNAME_PKGS = "libsqlite"