python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / cryptsetup / cryptsetup.mk
blob8337bed2fc24a78ebc21fcb650966fec95f761d8
1 ################################################################################
3 # cryptsetup
5 ################################################################################
7 CRYPTSETUP_VERSION_MAJOR = 1.7
8 CRYPTSETUP_VERSION = $(CRYPTSETUP_VERSION_MAJOR).4
9 CRYPTSETUP_SOURCE = cryptsetup-$(CRYPTSETUP_VERSION).tar.xz
10 CRYPTSETUP_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/cryptsetup/v$(CRYPTSETUP_VERSION_MAJOR)
11 CRYPTSETUP_DEPENDENCIES = lvm2 popt util-linux host-pkgconf \
12 $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
13 CRYPTSETUP_LICENSE = GPLv2+ (programs), LGPLv2.1+ (library)
14 CRYPTSETUP_LICENSE_FILES = COPYING COPYING.LGPL
15 CRYPTSETUP_INSTALL_STAGING = YES
17 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
18 CRYPTSETUP_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -lintl"
19 endif
21 # cryptsetup uses libgcrypt by default, but can be configured to use OpenSSL
22 # or kernel crypto modules instead
23 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
24 CRYPTSETUP_DEPENDENCIES += libgcrypt
25 CRYPTSETUP_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
26 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=gcrypt
27 else ifeq ($(BR2_PACKAGE_OPENSSL),y)
28 CRYPTSETUP_DEPENDENCIES += openssl
29 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=openssl
30 else
31 CRYPTSETUP_CONF_OPTS += --with-crypto_backend=kernel
32 endif
34 $(eval $(autotools-package))