# Created by: Sergei Kolobov # $FreeBSD$ PORTNAME= gnutls PORTVERSION= 2.12.23 PORTREVISION= 3 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]+$//}/ MAINTAINER= novel@FreeBSD.org COMMENT= GNU Transport Layer Security library LICENSE= GPLv3 LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \ gpg-error:${PORTSDIR}/security/libgpg-error \ p11-kit:${PORTSDIR}/security/p11-kit CONFLICTS= gnutls-devel-[0-9]* USES= pathfix pkgconfig iconv gmake perl5 shebangfix USE_PERL5= build USE_BZIP2= yes USE_GNOME= ltverhack GNU_CONFIGURE= yes USE_LDCONFIG= yes USE_AUTOTOOLS= libtool LIBTOOLFILES= configure lib/configure libextra/configure SHEBANG_FILES= doc/scripts/gdoc doc/scripts/sort2.pl CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CPPFLAGS+= -fPIC CONFIGURE_ARGS+= --disable-guile CONFIGURE_ARGS_PREFIX= ${STAGEDIR}${PREFIX} INFO= gnutls OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS LIBTASN1_DESC= Use system libtasn1 instead of local one CXX_DESC= Install C++ library LZO_DESC= LZO compression OPTIONS_DEFAULT= LIBTASN1 CXX .include .if ${PORT_OPTIONS:MLIBTASN1} LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1 .else CONFIGURE_ARGS+= --with-included-libtasn1 .endif .if ${PORT_OPTIONS:MLZO} LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 CONFIGURE_ARGS+= --with-lzo .else CONFIGURE_ARGS+= --with-lzo=no .endif .if ${PORT_OPTIONS:MCXX} PLIST_SUB+= CXX="" .else CONFIGURE_ARGS+= --disable-cxx PLIST_SUB+= CXX="@comment " .endif .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " .endif PORTDOCS= AUTHORS NEWS README THANKS PORTEXAMPLES= *.c 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 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 .include