0f9c0bf3d5
Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/bin' | xargs sed -i 's%$(HOST_DIR)/usr/bin%$(HOST_DIR)/bin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
35 lines
992 B
Makefile
35 lines
992 B
Makefile
################################################################################
|
|
#
|
|
# sqlcipher
|
|
#
|
|
################################################################################
|
|
|
|
SQLCIPHER_VERSION = v3.2.0
|
|
SQLCIPHER_SITE = $(call github,sqlcipher,sqlcipher,$(SQLCIPHER_VERSION))
|
|
SQLCIPHER_DEPENDENCIES = openssl host-tcl
|
|
SQLCIPHER_INSTALL_STAGING = YES
|
|
|
|
SQLCIPHER_CONF_ENV = \
|
|
CFLAGS="$(TARGET_CFLAGS) $(SQLCIPHER_CFLAGS)" \
|
|
TCLSH_CMD=$(HOST_DIR)/bin/tclsh$(TCL_VERSION_MAJOR)
|
|
|
|
SQLCIPHER_CONF_OPTS = \
|
|
--enable-threadsafe \
|
|
--disable-tcl
|
|
|
|
SQLCIPHER_CFLAGS += -DSQLITE_HAS_CODEC # Required according to the README
|
|
SQLCIPHER_CONF_ENV += LIBS="-lcrypto -lz"
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLCIPHER_STAT3),y)
|
|
SQLCIPHER_CFLAGS += -DSQLITE_ENABLE_STAT3
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SQLCIPHER_READLINE),y)
|
|
SQLCIPHER_DEPENDENCIES += ncurses readline
|
|
SQLCIPHER_CONF_OPTS += --with-readline-inc="-I$(STAGING_DIR)/usr/include"
|
|
else
|
|
SQLCIPHER_CONF_OPTS += --disable-readline
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|