aboutsummaryrefslogtreecommitdiff
path: root/security/gnutls/Makefile
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2014-07-23 09:54:02 +0000
committerTijl Coosemans <tijl@FreeBSD.org>2014-07-23 09:54:02 +0000
commit3ab1b8443ec60e4983c4666f0e84cedab20e81d2 (patch)
treed13723a66084b6936010f3cea6404da7bbcf103b /security/gnutls/Makefile
parent63d0ab27e8fc88df6e11d9fb8b37620420285dd1 (diff)
downloadports-3ab1b8443ec60e4983c4666f0e84cedab20e81d2.tar.gz
ports-3ab1b8443ec60e4983c4666f0e84cedab20e81d2.zip
Notes
Diffstat (limited to 'security/gnutls/Makefile')
-rw-r--r--security/gnutls/Makefile98
1 files changed, 27 insertions, 71 deletions
diff --git a/security/gnutls/Makefile b/security/gnutls/Makefile
index fae43d4505c2..4df5ade03f0e 100644
--- a/security/gnutls/Makefile
+++ b/security/gnutls/Makefile
@@ -1,95 +1,51 @@
-# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= gnutls
-PORTVERSION= 2.12.23
-PORTREVISION= 6
+PORTVERSION= 3.2.15
CATEGORIES= security net
-MASTER_SITES= \
- ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ \
- http://www.ring.gr.jp/pub/net/gnupg/gnutls/v${PORTVERSION:C/.[0-9]+$//}/
+MASTER_SITES= GNUPG/gnutls/v3.2
-MAINTAINER= novel@FreeBSD.org
+MAINTAINER= bdrewery@FreeBSD.org
COMMENT= GNU Transport Layer Security library
-LICENSE= GPLv3
+LICENSE= GPLv3 LGPL21
+LICENSE_COMB= multi
+LICENSE_FILE_GPLv3= ${WRKSRC}/COPYING
+LICENSE_FILE_LGPL21= ${WRKSRC}/COPYING.LESSER
LIB_DEPENDS= libnettle.so:${PORTSDIR}/security/nettle \
- libgpg-error.so:${PORTSDIR}/security/libgpg-error \
- libp11-kit.so:${PORTSDIR}/security/p11-kit
+ libp11-kit.so:${PORTSDIR}/security/p11-kit \
+ libidn.so:${PORTSDIR}/dns/libidn \
+ libtasn1.so:${PORTSDIR}/security/libtasn1 \
+ libtspi.so:${PORTSDIR}/security/trousers
-CONFLICTS= gnutls-devel-[0-9]*
-
-USES= gmake iconv libtool:keepla pathfix perl5 pkgconfig shebangfix tar:bzip2
-USE_PERL5= build
-GNU_CONFIGURE= yes
+USES= gmake iconv libtool makeinfo pathfix pkgconfig tar:xz
USE_LDCONFIG= yes
-SHEBANG_FILES= doc/scripts/gdoc doc/scripts/sort2.pl
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-guile \
+ --disable-silent-rules \
+ --enable-local-libopts
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_ARGS+= --disable-guile
-CONFIGURE_ARGS_PREFIX= ${STAGEDIR}${PREFIX}
-
-INFO= gnutls
-
-OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS EXAMPLES DOCS
-
-LIBTASN1_DESC= Use system libtasn1 instead of local one
-CXX_DESC= Install C++ library
-LZO_DESC= LZO compression
-
-OPTIONS_DEFAULT= LIBTASN1 CXX
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MLIBTASN1}
-LIB_DEPENDS+= libtasn1.so:${PORTSDIR}/security/libtasn1
-.else
-CONFIGURE_ARGS+= --with-included-libtasn1
-.endif
+MAKE_ENV= MAKEINFOFLAGS=--no-split
-.if ${PORT_OPTIONS:MLZO}
-LIB_DEPENDS+= liblzo2.so:${PORTSDIR}/archivers/lzo2
-CONFIGURE_ARGS+= --with-lzo
-.else
-CONFIGURE_ARGS+= --with-lzo=no
-.endif
+OPTIONS_DEFINE= EXAMPLES LIBDANE NLS
+OPTIONS_SUB= yes
-.if ${PORT_OPTIONS:MCXX}
-PLIST_SUB+= CXX=""
-.else
-CONFIGURE_ARGS+= --disable-cxx
-PLIST_SUB+= CXX="@comment "
-.endif
+LIBDANE_DESC= DNSSEC support for DANE (danetool --check)
+LIBDANE_LIB_DEPENDS= libunbound.so:${PORTSDIR}/dns/unbound
+LIBDANE_CONFIGURE_ENABLE= libdane
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-.else
-CONFIGURE_ARGS+= --disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
-PORTDOCS= AUTHORS NEWS README THANKS
-PORTEXAMPLES= *.c
+INFO= gnutls gnutls-guile
post-patch:
- @${FIND} ${WRKSRC} -name "Makefile.in" -type f |\
- ${XARGS} ${REINPLACE_CMD} -e 's|[$$][(]LTLIBPTHREAD[)]||g'
- @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \
- ${WRKSRC}/doc/doxygen/Doxyfile.in
+ @${RM} ${WRKSRC}/doc/*.info*
post-install:
-.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \
- ${STAGEDIR}${EXAMPLESDIR}
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
-.for i in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
-.endfor
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/doc/examples/*.[ch] ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>