73 lines
1.9 KiB
Makefile
73 lines
1.9 KiB
Makefile
# $OpenBSD: Makefile,v 1.119 2016/03/11 20:28:30 naddy Exp $
|
|
|
|
COMMENT= GNU Transport Layer Security library
|
|
|
|
V= 3.4.10
|
|
DISTNAME= gnutls-${V}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
CATEGORIES= security
|
|
|
|
SHARED_LIBS += gnutls 43.0 # 36.2
|
|
SHARED_LIBS += gnutlsxx 29.1 # 29.0
|
|
|
|
HOMEPAGE= http://www.gnutls.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# LGPLv2.1+ - GPLv3+
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
WANTLIB += c ffi gmp hogweed idn m nettle p11-kit pthread stdc++
|
|
WANTLIB += tasn1 z
|
|
|
|
MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v${V:R}/ \
|
|
http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/gnutls/v${V:R}/
|
|
|
|
MODULES= devel/gettext
|
|
|
|
LIB_DEPENDS= devel/libidn \
|
|
security/libtasn1 \
|
|
security/libnettle \
|
|
security/p11-kit>=0.23.2
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
# regression tests need this
|
|
PORTHOME= ${WRKDIR}
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --disable-guile \
|
|
--disable-valgrind-tests \
|
|
--with-default-trust-store-file=/etc/ssl/cert.pem \
|
|
--with-unbound-root-key-file=/var/unbound/db/root.key
|
|
|
|
# OpenBSD's unbound does not provide libdane
|
|
CONFIGURE_ARGS += --disable-libdane
|
|
|
|
# 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_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gnutls
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnutls
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/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)
|
|
TEST_DEPENDS += textproc/gsed
|
|
pre-test:
|
|
gsed -Ei 's,#include <stdlib.h>,&\n#include <signal.h>,' \
|
|
${WRKSRC}/tests/*.c
|
|
|
|
.include <bsd.port.mk>
|