86 lines
2.2 KiB
Makefile
86 lines
2.2 KiB
Makefile
COMMENT= GNU Transport Layer Security library
|
|
|
|
V= 3.7.4
|
|
DISTNAME= gnutls-${V}
|
|
REVISION= 0
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
CATEGORIES= security
|
|
|
|
SHARED_LIBS += gnutls 47.3 # 62.0
|
|
SHARED_LIBS += gnutlsxx 30.1 # 30.0
|
|
SHARED_LIBS += gnutls-dane 1.1 # 4.1
|
|
|
|
HOMEPAGE= http://www.gnutls.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# LGPLv2.1+ - GPLv3+
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} brotlicommon brotlidec brotlienc
|
|
WANTLIB += c crypto event ffi gmp hogweed iconv idn2 intl m nettle
|
|
WANTLIB += p11-kit ssl tasn1 unbound unistring z zstd
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MASTER_SITES= https://www.gnupg.org/ftp/gcrypt/gnutls/v${V:C/^([0-9]+\.[0-9]+).*/\1/}/ \
|
|
ftp://ftp.gnutls.org/gcrypt/gnutls/v${V:C/^([0-9]+\.[0-9]+).*/\1/}/
|
|
|
|
# needed for tests
|
|
BUILD_DEPENDS= devel/cmocka
|
|
|
|
LIB_DEPENDS= archivers/brotli \
|
|
archivers/zstd \
|
|
converters/libunistring \
|
|
devel/gettext,-runtime \
|
|
devel/libidn2 \
|
|
net/libunbound \
|
|
security/libtasn1 \
|
|
security/libnettle \
|
|
security/p11-kit
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
# regression tests need this
|
|
PORTHOME= ${WRKDIR}
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ARGS= --disable-guile \
|
|
--disable-ssl3-support \
|
|
--disable-valgrind-tests \
|
|
--with-default-trust-store-file=/etc/ssl/cert.pem \
|
|
--with-unbound-root-key-file=/var/unbound/db/root.key
|
|
|
|
# requires security/trousers: not committed (aja@), needs kernel support
|
|
# for tpm(4): http://bsssd.sourceforge.net/
|
|
CONFIGURE_ARGS += --without-tpm
|
|
|
|
# prevents dependency on devel/autogen
|
|
CONFIGURE_ARGS += --enable-local-libopts
|
|
CONFIGURE_ARGS += ac_cv_prog_autogen=
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
|
.if ${MACHINE_ARCH:Mi386}
|
|
LDFLAGS+= -Wl,-z,notext
|
|
.endif
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="${LDFLAGS}"
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnutls
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnutls
|
|
${INSTALL_DATA} ${WRKSRC}/doc/examples/*.c \
|
|
${PREFIX}/share/examples/gnutls
|
|
|
|
# warning: implicit declaration of function 'kill'
|
|
# error: 'SIGTERM' undeclared (first use in this function)
|
|
pre-test:
|
|
perl -i -pe 's,#include <stdlib.h>,$$&\n#include <signal.h>,' \
|
|
${WRKSRC}/tests/*.c
|
|
|
|
.include <bsd.port.mk>
|