blob: 53b1ec8c8aea301c423e3ea269ca540529d5e93b [file] [log] [blame]
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00001################################################################################
Arnout Vandecappelle (Essensium/Mind)1541d642012-01-23 21:23:25 +01002#
Alexandre Bellonif2c2f252013-06-05 23:53:29 +00003# sqlcipher
Arnout Vandecappelle (Essensium/Mind)1541d642012-01-23 21:23:25 +01004#
Alexandre Belloni8dfd59d2013-06-05 23:53:30 +00005################################################################################
Alexandre Belloni70270402013-06-05 23:53:25 +00006
Jerzy Grzegorekdf708222013-11-02 17:13:34 +01007SQLCIPHER_VERSION = v1.1.9
Romain Naourf72755c2013-11-05 23:59:17 +01008SQLCIPHER_SITE = http://github.com/sqlcipher/sqlcipher/archive/$(SQLCIPHER_VERSION)
Arnout Vandecappelle (Essensium/Mind)1541d642012-01-23 21:23:25 +01009SQLCIPHER_DEPENDENCIES = openssl host-tcl
10SQLCIPHER_INSTALL_STAGING = YES
11
12SQLCIPHER_CONF_ENV = \
13 CFLAGS+=" $(SQLCIPHER_CFLAGS)" \
14 LDFLAGS+=" $(SQLCIPHER_LDFLAGS)" \
Peter Korsgaard16b17c92012-01-24 14:59:26 +010015 TCLSH_CMD=$(HOST_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR)
Arnout Vandecappelle (Essensium/Mind)1541d642012-01-23 21:23:25 +010016
17SQLCIPHER_CONF_OPT = \
18 --enable-threadsafe \
19 --localstatedir=/var
20
21SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README
22SQLCIPHER_LDFLAGS += -lcrypto
23
24ifneq ($(BR2_LARGEFILE),y)
25# the sqlite configure script fails to define SQLITE_DISABLE_LFS when
26# --disable-largefile is passed, breaking the build. Work around it by
27# simply adding it to CFLAGS for configure instead
28SQLCIPHER_CFLAGS += -DSQLITE_DISABLE_LFS
29endif
30
31ifeq ($(BR2_PACKAGE_SQLCIPHER_STAT3),y)
32SQLCIPHER_CFLAGS += -DSQLITE_ENABLE_STAT3
33endif
34
35ifeq ($(BR2_PACKAGE_SQLCIPHER_READLINE),y)
36SQLCIPHER_DEPENDENCIES += ncurses readline
37SQLCIPHER_CONF_OPT += --with-readline-inc="-I$(STAGING_DIR)/usr/include"
38else
39SQLCIPHER_CONF_OPT += --disable-readline
40endif
41
Arnout Vandecappelle (Essensium/Mind)e1502eb2012-07-03 00:07:32 +020042$(eval $(autotools-package))