1 ################################################################################
5 ################################################################################
7 SQLITE_VERSION
= 3110100
8 SQLITE_SOURCE
= sqlite-autoconf-
$(SQLITE_VERSION
).
tar.gz
9 SQLITE_SITE
= http
://www.sqlite.org
/2016
10 SQLITE_LICENSE
= Public domain
11 SQLITE_LICENSE_FILES
= tea
/license.terms
12 SQLITE_INSTALL_STAGING
= YES
14 ifeq ($(BR2_PACKAGE_SQLITE_STAT3
),y
)
15 SQLITE_CFLAGS
+= -DSQLITE_ENABLE_STAT3
18 ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3
),y
)
19 SQLITE_CFLAGS
+= -DSQLITE_ENABLE_FTS3
22 ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY
),y
)
23 SQLITE_CFLAGS
+= -DSQLITE_ENABLE_UNLOCK_NOTIFY
26 ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE
),y
)
27 SQLITE_CFLAGS
+= -DSQLITE_SECURE_DELETE
30 ifeq ($(BR2_PACKAGE_SQLITE_NO_SYNC
),y
)
31 SQLITE_CFLAGS
+= -DSQLITE_NO_SYNC
34 SQLITE_CONF_ENV
= CFLAGS
="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
36 ifeq ($(BR2_STATIC_LIBS
),y
)
37 SQLITE_CONF_OPTS
+= --enable-dynamic-extensions
=no
39 SQLITE_CONF_OPTS
+= --disable-static-shell
42 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS
),y
)
43 SQLITE_CONF_OPTS
+= --enable-threadsafe
45 SQLITE_CONF_OPTS
+= --disable-threadsafe
48 ifeq ($(BR2_PACKAGE_NCURSES
)$(BR2_PACKAGE_READLINE
),yy
)
49 SQLITE_DEPENDENCIES
+= ncurses readline
50 SQLITE_CONF_OPTS
+= --disable-editline
--enable-readline
51 else ifeq ($(BR2_PACKAGE_LIBEDIT
),y
)
52 SQLITE_DEPENDENCIES
+= libedit
53 SQLITE_CONF_OPTS
+= --enable-editline
--disable-readline
55 SQLITE_CONF_OPTS
+= --disable-editline
--disable-readline
58 $(eval
$(autotools-package
))
59 $(eval
$(host-autotools-package
))