summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-01-14 18:39:28 +0000
committerChris Larson <clarson@kergoth.com>2004-01-14 18:39:28 +0000
commit818b95bcba604f9e78e4d3adad7f3897da5f01fe (patch)
tree0c12cad4125b24fbddef71fd602fd5c42f40a6ce
parent8d1e9a91e2ec47698dfdabb85a696c24663f29d3 (diff)
BUGFIX: Dont use our target header paths with the native builds in sqlite. Fixes the build failure.
BKrev: 40058ce0y2kO4nr8V7r_et1diRcbhA
-rw-r--r--sqlite/sqlite_2.8.9.oe33
1 files changed, 33 insertions, 0 deletions
diff --git a/sqlite/sqlite_2.8.9.oe b/sqlite/sqlite_2.8.9.oe
index e69de29bb2..b1e71879c8 100644
--- a/sqlite/sqlite_2.8.9.oe
+++ b/sqlite/sqlite_2.8.9.oe
@@ -0,0 +1,33 @@
+DESCRIPTION="An Embeddable SQL Database Engine"
+SECTION="libs"
+PRIORITY="optional"
+RDEPENDS="libc6 readline libncurses5"
+DEPENDS=virtual/libc base/readline base/ncurses
+
+SRC_URI = http://www.hwaci.com/sw/${PN}/${P}.tar.gz \
+ file://${FILESDIR}/crosscompile.patch;patch=1
+
+S = ${WORKDIR}/${PN}
+
+inherit autotools libtool
+
+EXTRA_OECONF = '--without-tcl --enable-static --enable-shared'
+export config_BUILD_CC=${BUILD_CC}
+export config_BUILD_CFLAGS=${BUILD_CFLAGS}
+export config_TARGET_CC=${CC}
+export config_TARGET_LINK=${CCLD}
+export config_TARGET_CFLAGS=${CFLAGS}
+
+do_compile () {
+ oe_runmake 'LIBREADLINE=-L${STAGING_LIBDIR} -lreadline -lncurses'
+}
+
+do_stage() {
+ oe_soinstall .libs/libsqlite.so.0.8.6 ${STAGING_LIBDIR}
+ install -m 0644 sqlite.h ${STAGING_INCDIR}
+}
+
+do_install() {
+ oe_runmake install prefix=${D} exec_prefix=${D}
+}
+