kumquat-buildroot/package/pkcs11-helper/pkcs11-helper.mk
Fabrice Fontaine 665c1a8963 package/pkcs11-helper: needs host-pkgconf
pkg-config is used unconditionally in configure.ac to find dependencies
(openssl, gnutls and nss)

Fixes:
 - http://autobuild.buildroot.org/results/c01ae4f1a7babf94c841d4bb737408a9c8869845

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-04-26 11:55:23 +02:00

52 lines
1.5 KiB
Makefile

################################################################################
#
# pkcs11-helper
#
################################################################################
PKCS11_HELPER_VERSION = 1.26
PKCS11_HELPER_SITE = $(call github,OpenSC,pkcs11-helper,pkcs11-helper-$(PKCS11_HELPER_VERSION))
PKCS11_HELPER_LICENSE = GPL-2.0 or BSD-3-Clause
PKCS11_HELPER_LICENSE_FILES = COPYING COPYING.BSD COPYING.GPL
PKCS11_HELPER_DEPENDENCIES = host-pkgconf
PKCS11_HELPER_AUTORECONF = YES
PKCS11_HELPER_INSTALL_STAGING = YES
PKCS11_HELPER_CONF_OPTS = \
--disable-crypto-engine-polarssl \
--disable-crypto-engine-cryptoapi
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))