sqlite: bump to version 3.11.1
[buildroot-gz.git] / package / sqlite / sqlite.mk
blob0029fd67feffe79973a0ac3addab759d2adfdfda
1 ################################################################################
3 # sqlite
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
16 endif
18 ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_FTS3),y)
19 SQLITE_CFLAGS += -DSQLITE_ENABLE_FTS3
20 endif
22 ifeq ($(BR2_PACKAGE_SQLITE_ENABLE_UNLOCK_NOTIFY),y)
23 SQLITE_CFLAGS += -DSQLITE_ENABLE_UNLOCK_NOTIFY
24 endif
26 ifeq ($(BR2_PACKAGE_SQLITE_SECURE_DELETE),y)
27 SQLITE_CFLAGS += -DSQLITE_SECURE_DELETE
28 endif
30 ifeq ($(BR2_PACKAGE_SQLITE_NO_SYNC),y)
31 SQLITE_CFLAGS += -DSQLITE_NO_SYNC
32 endif
34 SQLITE_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) $(SQLITE_CFLAGS)"
36 ifeq ($(BR2_STATIC_LIBS),y)
37 SQLITE_CONF_OPTS += --enable-dynamic-extensions=no
38 else
39 SQLITE_CONF_OPTS += --disable-static-shell
40 endif
42 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
43 SQLITE_CONF_OPTS += --enable-threadsafe
44 else
45 SQLITE_CONF_OPTS += --disable-threadsafe
46 endif
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
54 else
55 SQLITE_CONF_OPTS += --disable-editline --disable-readline
56 endif
58 $(eval $(autotools-package))
59 $(eval $(host-autotools-package))