Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 1 | ################################################################################ |
Arnout Vandecappelle (Essensium/Mind) | 1541d64 | 2012-01-23 21:23:25 +0100 | [diff] [blame] | 2 | # |
Alexandre Belloni | f2c2f25 | 2013-06-05 23:53:29 +0000 | [diff] [blame] | 3 | # sqlcipher |
Arnout Vandecappelle (Essensium/Mind) | 1541d64 | 2012-01-23 21:23:25 +0100 | [diff] [blame] | 4 | # |
Alexandre Belloni | 8dfd59d | 2013-06-05 23:53:30 +0000 | [diff] [blame] | 5 | ################################################################################ |
Alexandre Belloni | 7027040 | 2013-06-05 23:53:25 +0000 | [diff] [blame] | 6 | |
Jerzy Grzegorek | df70822 | 2013-11-02 17:13:34 +0100 | [diff] [blame] | 7 | SQLCIPHER_VERSION = v1.1.9 |
Romain Naour | f72755c | 2013-11-05 23:59:17 +0100 | [diff] [blame] | 8 | SQLCIPHER_SITE = http://github.com/sqlcipher/sqlcipher/archive/$(SQLCIPHER_VERSION) |
Arnout Vandecappelle (Essensium/Mind) | 1541d64 | 2012-01-23 21:23:25 +0100 | [diff] [blame] | 9 | SQLCIPHER_DEPENDENCIES = openssl host-tcl |
| 10 | SQLCIPHER_INSTALL_STAGING = YES |
| 11 | |
| 12 | SQLCIPHER_CONF_ENV = \ |
| 13 | CFLAGS+=" $(SQLCIPHER_CFLAGS)" \ |
| 14 | LDFLAGS+=" $(SQLCIPHER_LDFLAGS)" \ |
Peter Korsgaard | 16b17c9 | 2012-01-24 14:59:26 +0100 | [diff] [blame] | 15 | TCLSH_CMD=$(HOST_DIR)/usr/bin/tclsh$(TCL_VERSION_MAJOR) |
Arnout Vandecappelle (Essensium/Mind) | 1541d64 | 2012-01-23 21:23:25 +0100 | [diff] [blame] | 16 | |
| 17 | SQLCIPHER_CONF_OPT = \ |
| 18 | --enable-threadsafe \ |
| 19 | --localstatedir=/var |
| 20 | |
| 21 | SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README |
| 22 | SQLCIPHER_LDFLAGS += -lcrypto |
| 23 | |
| 24 | ifneq ($(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 |
| 28 | SQLCIPHER_CFLAGS += -DSQLITE_DISABLE_LFS |
| 29 | endif |
| 30 | |
| 31 | ifeq ($(BR2_PACKAGE_SQLCIPHER_STAT3),y) |
| 32 | SQLCIPHER_CFLAGS += -DSQLITE_ENABLE_STAT3 |
| 33 | endif |
| 34 | |
| 35 | ifeq ($(BR2_PACKAGE_SQLCIPHER_READLINE),y) |
| 36 | SQLCIPHER_DEPENDENCIES += ncurses readline |
| 37 | SQLCIPHER_CONF_OPT += --with-readline-inc="-I$(STAGING_DIR)/usr/include" |
| 38 | else |
| 39 | SQLCIPHER_CONF_OPT += --disable-readline |
| 40 | endif |
| 41 | |
Arnout Vandecappelle (Essensium/Mind) | e1502eb | 2012-07-03 00:07:32 +0200 | [diff] [blame] | 42 | $(eval $(autotools-package)) |