2021-04-19 02:21:30 +02:00
PORTNAME = pkcs11-tools
DISTVERSIONPREFIX = v
DISTVERSION = 2.3.0
CATEGORIES = security
MAINTAINER = eric.devolder@gmail.com
COMMENT = Tools for managing PKCS11 cryptographic tokens
LICENSE = APACHE20
2021-04-20 20:26:59 +02:00
BROKEN_SSL = libressl
2021-04-20 11:55:45 +02:00
BROKEN_SSL_REASON_libressl = error: use of undeclared identifier 'EVP_PKEY_X25519' ( LibreSSL has no support for Edwards curves)
2021-04-19 02:21:30 +02:00
BUILD_DEPENDS = autoconf>0:devel/autoconf \
autoconf-archive>0:devel/autoconf-archive \
automake>0:devel/automake \
flex:textproc/flex
RUN_DEPENDS = bash:shells/bash
USES = bison compiler:c11 libtool:build pkgconfig ssl
USE_GITHUB = yes
GH_ACCOUNT = Mastercard
GH_TUPLE = coreutils:gnulib:5b3a6f94f:gnulib \
oasis-tcs:pkcs11:df530bf:oasis_pkcs11
GNU_CONFIGURE = yes
MAKE_ENV = LIBCRYPTO_RPATH = ${ OPENSSLBASE } /lib
2021-04-20 20:26:59 +02:00
# workaround for Bug#255277:
2021-04-19 02:21:30 +02:00
LDFLAGS += ${ OPENSSLBASE } /lib/libcrypto.a # -lcrypto # fails to find symbol in the shared library: ld: error: undefined symbol: EVP_PKEY_meth_get_digestsign
INSTALL_TARGET = install-strip
2021-04-21 12:10:36 +02:00
. i n c l u d e < b s d . p o r t . o p t i o n s . m k >
. i f ${SSL_DEFAULT} = = base && ${ OPSYS } = = FreeBSD && ${ OSVERSION } < 1200085
BROKEN = OpenSSL version is too old, lacks symbols: error: use of undeclared identifier 'EVP_PKEY_X25519' , etc.
. e n d i f
2021-04-19 02:21:30 +02:00
post-extract :
@${ RMDIR } ${ WRKSRC } /.gnulib ${ WRKSRC } /include/oasis-pkcs11
@${ MV } ${ WRKSRC_gnulib } ${ WRKSRC } /.gnulib
@${ MV } ${ WRKSRC_oasis_pkcs11 } ${ WRKSRC } /include/oasis-pkcs11
pre-configure :
@cd ${ WRKSRC } && BUILD_PORT = 1 ${ WRKSRC } /bootstrap.sh
. i n c l u d e < b s d . p o r t . m k >