@ -30,6 +30,8 @@ PKG_CONFIG_DEPENDS := \
CONFIG_SQLITE3_FTS4 \
CONFIG_SQLITE3_FTS5 \
CONFIG_SQLITE3_JSON1 \
CONFIG_SQLITE3_LIBEDIT \
CONFIG_SQLITE3_READLINE \
CONFIG_SQLITE3_RTREE \
CONFIG_SQLITE3_SESSION \
CONFIG_SQLITE3_THREADSAFE
@ -70,7 +72,11 @@ define Package/sqlite3-cli
$( call Package/sqlite3/Default)
SECTION:= utils
CATEGORY:= Utilities
DEPENDS:= +libsqlite3 +libncurses +libreadline
DEPENDS := \
+libsqlite3 \
+SQLITE3_LIBEDIT:libedit \
+SQLITE3_READLINE:libreadline \
+SQLITE3_READLINE:libncursesw
TITLE += ( cli)
e n d e f
@ -81,6 +87,10 @@ $(call Package/sqlite3/Default/description)
formats.
e n d e f
d e f i n e P a c k a g e / s q l i t e 3 - c l i / c o n f i g
source " $( SOURCE) /Config-cli.in "
e n d e f
TARGET_CFLAGS += \
-DHAVE_ISNAN= 1 \
-DHAVE_MALLOC_USABLE_SIZE= 1 \
@ -89,7 +99,6 @@ TARGET_CFLAGS += \
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--disable-editline \
--disable-static-shell \
$( if $( CONFIG_SQLITE3_DYNAMIC_EXTENSIONS) ,--enable-dynamic-extensions,--disable-dynamic-extensions) \
$( if $( CONFIG_SQLITE3_FTS3) ,--enable-fts3,--disable-fts3) \
@ -100,6 +109,14 @@ CONFIGURE_ARGS += \
$( if $( CONFIG_SQLITE3_SESSION) ,--enable-session,--disable-session) \
$( if $( CONFIG_SQLITE3_THREADSAFE) ,--enable-threadsafe,--disable-threadsafe)
i f e q ( $( CONFIG_SQLITE 3_LIBEDIT ) , y )
CONFIGURE_ARGS += --disable-readline
e l s e i f e q ( $( CONFIG_SQLITE 3_READLINE ) , y )
CONFIGURE_ARGS += --disable-editline
e l s e
CONFIGURE_ARGS += --disable-editline --disable-readline
e n d i f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/sqlite3{ ,ext} .h $( 1) /usr/include/