1################################################################################ 2# 3# libp11 4# 5################################################################################ 6 7LIBP11_VERSION = 0.4.11 8LIBP11_SITE = https://github.com/OpenSC/libp11/releases/download/libp11-$(LIBP11_VERSION) 9LIBP11_DEPENDENCIES = openssl host-pkgconf 10LIBP11_INSTALL_STAGING = YES 11LIBP11_LICENSE = LGPL-2.1+ 12LIBP11_LICENSE_FILES = COPYING 13 14# pkg-config returns a libcrypto enginesdir prefixed with the sysroot, 15# so let's rip it out. 16LIBP11_CONF_OPTS = \ 17 --with-enginesdir=`$(PKG_CONFIG_HOST_BINARY) --variable enginesdir libcrypto | xargs readlink -f | sed 's%^$(STAGING_DIR)%%'` 18 19ifeq ($(BR2_PACKAGE_P11_KIT),y) 20LIBP11_CONF_OPTS += --with-pkcs11-module=/usr/lib/p11-kit-proxy.so 21endif 22 23HOST_LIBP11_DEPENDENCIES = host-pkgconf host-openssl 24 25$(eval $(autotools-package)) 26$(eval $(host-autotools-package)) 27