# $NetBSD: Makefile,v 1.161 2016/07/09 06:38:54 wiz Exp $
DISTNAME= gnutls-3.3.18
PKGREVISION= 2
CATEGORIES= security devel
MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnutls.org/
COMMENT= GNU Transport Layer Security library
LICENSE= gnu-gpl-v3 AND gnu-lgpl-v2.1
USE_LANGUAGES= c c++
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake gsed perl pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-p11-kit
# this library duplicates (and conflicts with) openssl
CONFIGURE_ARGS+= --disable-openssl-compatibility
CONFIGURE_ARGS+= --disable-guile
CONFIGURE_ARGS+= --disable-libdane
CONFIGURE_ARGS+= --without-tpm
CONFIGURE_ARGS+= AUTOGEN=/bin/true
TEST_TARGET= check
INFO_FILES= yes
REPLACE_PERL+= doc/scripts/gdoc doc/scripts/sort2.pl
PKGCONFIG_OVERRIDE= lib/gnutls.pc.in
PKGCONFIG_OVERRIDE+= libdane/gnutls-dane.pc.in
MAKE_ENV+= RM=${RM:Q}
MAKE_ENV+= TZ=UTC
EGDIR= ${PREFIX}/share/examples/gnutls
# Assembler support is broken for SunOS in 3.2.9.
CONFIGURE_ARGS.SunOS+= --disable-hardware-acceleration
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR} include/gnutls
post-install:
cd ${WRKSRC}/doc/examples && ${INSTALL_DATA} *.c ${DESTDIR}${EGDIR}
.include "../../archivers/lzo/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/libcfg+/buildlink3.mk"
# Avoid creating a fake zlib.pc, because if it does
# gnutls will add a Requires.private for it in its .pc file
CHECK_BUILTIN.zlib:=yes
.include "../../devel/zlib/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
BUILDLINK_API_DEPENDS.libtasn1+= libtasn1>=0.3.4
.include "../../security/libtasn1/buildlink3.mk"
.include "../../security/nettle/buildlink3.mk"
# guile is useful for selftests, but bindings should be separate pkgs
#.include "../../lang/guile/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
CVSweb <webmaster@jp.NetBSD.org>