PKGNAME=pkcs11-helper
PKGSEC=libs
PKGDEP="gnutls mbedtls nss openssl"
PKGDEP__RETRO="gnutls"
PKGDES="Library to interact with PKCS#11 providers"

AUTOTOOLS_AFTER=(
    '--enable-threading'
    '--enable-token'
    '--enable-data'
    '--enable-certificate'
    '--enable-slotevent'
    '--enable-openssl'
    '--enable-crypto-engine-openssl'
    '--enable-crypto-engine-gnutls'
    '--enable-crypto-engine-nss'
    '--disable-crypto-engine-polarssl'
    '--enable-crypto-engine-mbedtls'
    '--disable-crypto-engine-cryptoapi'
    '--disable-doc'
)
AUTOTOOLS_AFTER__RETRO=(
    "${AUTOTOOLS_AFTER[@]}"
    '--disable-crypto-engine-openssl'
    '--enable-crypto-engine-gnutls'
    '--disable-crypto-engine-nss'
    '--disable-crypto-engine-mbedtls'
)

# Needed by Afterglow, whereas FAIL_ARCH defaults to mainline-only.
FAIL_ARCH="!(mainline|retro)"
