freebsd-ports/security/tpm2-tools/Makefile
Piotr Kubaj 12faa7eed0 security/tpm2-tools: fix build on GCC architectures
Use C11 compiler:
tools/tpm2_tool.c:92: error: 'tpm2_option_flags' has no member named 'verbose'
tools/tpm2_tool.c:103: error: 'tpm2_option_flags' has no member named 'quiet'
tools/tpm2_tool.c:116: error: 'tpm2_option_flags' has no member named 'enable_errata'
2020-10-07 12:23:51 +00:00

31 lines
707 B
Makefile

# $FreeBSD$
PORTNAME= tpm2-tools
DISTVERSION= 4.2.1
CATEGORIES= security
MASTER_SITES= https://github.com/tpm2-software/tpm2-tools/releases/download/${DISTVERSION}/
MAINTAINER= tstruk@gmail.com
COMMENT= TPM2 tools
LICENSE= BSD2CLAUSE
LIB_DEPENDS= libtss2-esys.so:security/tpm2-tss \
libcurl.so:ftp/curl \
libuuid.so:misc/e2fsprogs-libuuid
USES= compiler:c11 gmake libtool pkgconfig ssl
GNU_CONFIGURE= yes
CONFIGURE_ENV= CRYPTO_CFLAGS="-I${OPENSSLINC}" CRYPTO_LIBS="-L${OPENSSLLIB} -lcrypto"
CONFIGURE_ARGS= --disable-hardening --disable-fapi
BROKEN_SSL= openssl
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200085
BROKEN_SSL+= base
.endif
.include <bsd.port.post.mk>