diff options
Diffstat (limited to 'meta/packages/sqlite/sqlite3.inc')
-rw-r--r-- | meta/packages/sqlite/sqlite3.inc | 44 |
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 @@ | |||
1 | DESCRIPTION = "An Embeddable SQL Database Engine" | ||
2 | SECTION = "libs" | ||
3 | PRIORITY = "optional" | ||
4 | DEPENDS = "readline ncurses" | ||
5 | LICENSE = "PD" | ||
6 | |||
7 | SRC_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" | ||
11 | S = "${WORKDIR}/sqlite-${PV}" | ||
12 | |||
13 | inherit autotools pkgconfig | ||
14 | |||
15 | EXTRA_OECONF = "--disable-tcl --enable-shared \ | ||
16 | --enable-threadsafe" | ||
17 | export config_BUILD_CC = "${BUILD_CC}" | ||
18 | export config_BUILD_CFLAGS = "${BUILD_CFLAGS}" | ||
19 | export config_BUILD_LIBS = "${BUILD_LDFLAGS}" | ||
20 | export config_TARGET_CC = "${CC}" | ||
21 | export config_TARGET_LINK = "${CCLD}" | ||
22 | export config_TARGET_CFLAGS = "${CFLAGS}" | ||
23 | export config_TARGET_LFLAGS = "${LDFLAGS}" | ||
24 | |||
25 | do_compile_prepend() { | ||
26 | oe_runmake sqlite3.h | ||
27 | install -m 0644 sqlite3.h ${STAGING_INCDIR} | ||
28 | } | ||
29 | |||
30 | do_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 | |||
38 | PACKAGES = "libsqlite libsqlite-dev libsqlite-doc sqlite3 sqlite3-dbg" | ||
39 | FILES_sqlite3 = "${bindir}/*" | ||
40 | FILES_libsqlite = "${libdir}/*.so.*" | ||
41 | FILES_libsqlite-dev = "${libdir}/*.a ${libdir}/*.la ${libdir}/*.so \ | ||
42 | ${libdir}/pkgconfig ${includedir}" | ||
43 | FILES_libsqlite-doc = "${docdir} ${mandir} ${infodir}" | ||
44 | AUTO_LIBNAME_PKGS = "libsqlite" | ||