summaryrefslogtreecommitdiff
path: root/package/sqlite
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/sqlite
Initial import
Diffstat (limited to 'package/sqlite')
-rw-r--r--package/sqlite/Config.in75
-rw-r--r--package/sqlite/Makefile37
-rw-r--r--package/sqlite/ipkg/libsqlite.control4
-rw-r--r--package/sqlite/ipkg/sqlite-cli.control5
4 files changed, 121 insertions, 0 deletions
diff --git a/package/sqlite/Config.in b/package/sqlite/Config.in
new file mode 100644
index 000000000..b534356b6
--- /dev/null
+++ b/package/sqlite/Config.in
@@ -0,0 +1,75 @@
+config ADK_COMPILE_SQLITE
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBSQLITE
+
+config ADK_PACKAGE_LIBSQLITE
+ prompt "libsqlite......................... Self-contained, embeddable, zero-configuration SQL database engine"
+ tristate
+ default n
+ select ADK_COMPILE_SQLITE
+ select ADK_PACKAGE_LIBNCURSES
+ select ADK_PACKAGE_LIBREADLINE
+ help
+ SQLite is a small C library that implements a self-contained, embeddable,
+ zero-configuration SQL database engine. Features include:
+
+ * Transactions are atomic, consistent, isolated, and durable (ACID)
+ even after system crashes and power failures.
+ * Zero-configuration - no setup or administration needed.
+ * Implements most of SQL92. (Features not supported)
+ * A complete database is stored in a single disk file.
+ * Database files can be freely shared between machines with different
+ byte orders.
+ * Supports databases up to 2 terabytes (241 bytes) in size.
+ * Sizes of strings and BLOBs limited only by available memory.
+ * Small code footprint: less than 30K lines of C code, less than 250KB
+ code space (gcc on i486)
+ * Faster than popular client/server database engines for most common
+ operations.
+ * Simple, easy to use API.
+ * TCL bindings included. Bindings for many other languages available
+ separately.
+ * Well-commented source code with over 95% test coverage.
+ * Self-contained: no external dependencies.
+ * Sources are in the public domain. Use for any purpose.
+
+ http://www.sqlite.org/
+
+ This package contains the shared library, needed by other programs.
+
+config ADK_PACKAGE_SQLITE_CLI
+ prompt "sqlite-cli...................... Command line interface for SQLite"
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBSQLITE
+ help
+ SQLite is a small C library that implements a self-contained, embeddable,
+ zero-configuration SQL database engine. Features include:
+
+ * Transactions are atomic, consistent, isolated, and durable (ACID)
+ even after system crashes and power failures.
+ * Zero-configuration - no setup or administration needed.
+ * Implements most of SQL92. (Features not supported)
+ * A complete database is stored in a single disk file.
+ * Database files can be freely shared between machines with different
+ byte orders.
+ * Supports databases up to 2 terabytes (241 bytes) in size.
+ * Sizes of strings and BLOBs limited only by available memory.
+ * Small code footprint: less than 30K lines of C code, less than 250KB
+ code space (gcc on i486)
+ * Faster than popular client/server database engines for most common
+ operations.
+ * Simple, easy to use API.
+ * TCL bindings included. Bindings for many other languages available
+ separately.
+ * Well-commented source code with over 95% test coverage.
+ * Self-contained: no external dependencies.
+ * Sources are in the public domain. Use for any purpose.
+
+ http://www.sqlite.org/
+
+ This package contains a terminal-based front-end to the SQLite library
+ that can evaluate queries interactively and display the results in
+ multiple formats.
+
diff --git a/package/sqlite/Makefile b/package/sqlite/Makefile
new file mode 100644
index 000000000..5c1a8ce80
--- /dev/null
+++ b/package/sqlite/Makefile
@@ -0,0 +1,37 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= sqlite
+PKG_VERSION:= 3.6.2
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 46f92e42243bc51aaa3871645ce78bd5
+MASTER_SITES:= http://www.sqlite.org/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBSQLITE,libsqlite,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+$(eval $(call PKG_template,SQLITE_CLI,sqlite-cli,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE:= gnu
+CONFIGURE_ENV+= config_BUILD_CC="${HOSTCC}" \
+ config_BUILD_CFLAGS="-O2" \
+ config_TARGET_CC="${TARGET_CC}" \
+ config_TARGET_CFLAGS="${TARGET_CFLAGS}" \
+ config_TARGET_READLINE_INC="-I${STAGING_DIR}/usr/include" \
+ config_TARGET_READLINE_LIBS="-L${STAGING_DIR}/usr/lib -lreadline -lncurses"
+MAKE_FLAGS+= LIBPTHREAD=-lm
+CONFIGURE_ARGS+= --disable-tcl
+BUILD_STYLE:= auto
+INSTALL_STYLE:= auto
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBSQLITE}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libsqlite3.so.* ${IDIR_LIBSQLITE}/usr/lib/
+ ${INSTALL_DIR} ${IDIR_SQLITE_CLI}/usr/bin
+ ${INSTALL_BIN} ${WRKINST}/usr/bin/sqlite3 ${IDIR_SQLITE_CLI}/usr/bin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/sqlite/ipkg/libsqlite.control b/package/sqlite/ipkg/libsqlite.control
new file mode 100644
index 000000000..4b1927042
--- /dev/null
+++ b/package/sqlite/ipkg/libsqlite.control
@@ -0,0 +1,4 @@
+Package: libsqlite
+Priority: optional
+Section: libs
+Description: Self-contained, embeddable, zero-configuration SQL database engine
diff --git a/package/sqlite/ipkg/sqlite-cli.control b/package/sqlite/ipkg/sqlite-cli.control
new file mode 100644
index 000000000..b70c9cf5b
--- /dev/null
+++ b/package/sqlite/ipkg/sqlite-cli.control
@@ -0,0 +1,5 @@
+Package: sqlite-cli
+Priority: optional
+Section: libs
+Description: Command Line Interface (CLI) for SQLite
+Depends: libsqlite, libncurses, libreadline