2019-10-30 01:56:03 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# pkcs11-helper
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-07-31 22:22:39 +02:00
|
|
|
PKCS11_HELPER_VERSION = 1.27
|
|
|
|
PKCS11_HELPER_SOURCE = pkcs11-helper-$(PKCS11_HELPER_VERSION).0.tar.bz2
|
|
|
|
PKCS11_HELPER_SITE = https://github.com/OpenSC/pkcs11-helper/releases/download/pkcs11-helper-$(PKCS11_HELPER_VERSION)
|
2019-10-30 01:56:03 +01:00
|
|
|
PKCS11_HELPER_LICENSE = GPL-2.0 or BSD-3-Clause
|
|
|
|
PKCS11_HELPER_LICENSE_FILES = COPYING COPYING.BSD COPYING.GPL
|
2020-04-26 00:47:19 +02:00
|
|
|
PKCS11_HELPER_DEPENDENCIES = host-pkgconf
|
2019-10-30 01:56:03 +01:00
|
|
|
PKCS11_HELPER_AUTORECONF = YES
|
|
|
|
PKCS11_HELPER_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
PKCS11_HELPER_CONF_OPTS = \
|
|
|
|
--disable-crypto-engine-polarssl \
|
|
|
|
--disable-crypto-engine-cryptoapi
|
|
|
|
|
2020-05-01 12:27:58 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --enable-slotevent --enable-threading
|
|
|
|
else
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --disable-slotevent --disable-threading
|
|
|
|
endif
|
|
|
|
|
2019-10-30 01:56:03 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
PKCS11_HELPER_DEPENDENCIES += gnutls
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-gnutls
|
|
|
|
else
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --disable-crypto-engine-gnutls
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
|
|
|
PKCS11_HELPER_DEPENDENCIES += libnss
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-nss
|
|
|
|
else
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --disable-crypto-engine-nss
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
|
|
PKCS11_HELPER_DEPENDENCIES += mbedtls
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-mbedtls
|
|
|
|
else
|
|
|
|
PKCS11_HELPER_CONF_OPTS += --disable-crypto-engine-mbedtls
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
PKCS11_HELPER_DEPENDENCIES += openssl
|
|
|
|
PKCS11_HELPER_CONF_OPTS += \
|
|
|
|
--enable-openssl \
|
|
|
|
--enable-crypto-engine-openssl
|
|
|
|
else
|
|
|
|
PKCS11_HELPER_CONF_OPTS += \
|
|
|
|
--disable-openssl \
|
|
|
|
--disable-crypto-engine-openssl
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|