1 |
|
# $MidnightBSD$ |
2 |
|
|
3 |
|
PORTNAME= gnutls |
4 |
< |
PORTVERSION= 2.12.23 |
5 |
< |
PORTREVISION= 3 |
4 |
> |
PORTVERSION= 3.2.16 |
5 |
> |
PORTREVISION= 0 |
6 |
|
CATEGORIES= security net |
7 |
< |
MASTER_SITES= \ |
8 |
< |
ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ \ |
9 |
< |
http://www.ring.gr.jp/pub/net/gnupg/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ |
7 |
> |
MASTER_SITES= GNUPG/gnutls/v3.2 |
8 |
|
|
9 |
|
MAINTAINER= novel@FreeBSD.org |
10 |
|
COMMENT= GNU Transport Layer Security library |
11 |
|
|
12 |
< |
LICENSE= gpl3 |
12 |
> |
LICENSE= gpl3 lgpl2.1 |
13 |
> |
LICENSE_COMB= multi |
14 |
> |
LICENSE_FILE_gpl3= ${WRKSRC}/COPYING |
15 |
> |
LICENSE_FILE_lgpl2.1= ${WRKSRC}/COPYING.LESSER |
16 |
|
|
17 |
< |
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \ |
18 |
< |
gpg-error:${PORTSDIR}/security/libgpg-error \ |
18 |
< |
p11-kit:${PORTSDIR}/security/p11-kit |
17 |
> |
LIB_DEPENDS= libnettle.so:${PORTSDIR}/security/nettle \ |
18 |
> |
libtasn1.so:${PORTSDIR}/security/libtasn1 |
19 |
|
|
20 |
< |
CONFLICTS= gnutls-devel-[0-9]* |
21 |
< |
|
22 |
< |
USES= pathfix pkgconfig iconv gmake shebangfix |
23 |
< |
USE_PERL5_BUILD= yes |
24 |
< |
USE_BZIP2= yes |
25 |
< |
USE_GNOME= ltverhack |
26 |
< |
GNU_CONFIGURE= yes |
20 |
> |
USES= gmake iconv libtool makeinfo pathfix pkgconfig tar:xz |
21 |
|
USE_LDCONFIG= yes |
22 |
< |
USE_AUTOTOOLS= libtool |
23 |
< |
LIBTOOLFILES= configure lib/configure libextra/configure |
24 |
< |
SHEBANG_FILES= doc/scripts/gdoc doc/scripts/sort2.pl |
22 |
> |
GNU_CONFIGURE= yes |
23 |
> |
CONFIGURE_ARGS= --disable-guile \ |
24 |
> |
--disable-silent-rules \ |
25 |
> |
--enable-local-libopts |
26 |
|
CPPFLAGS+= -I${LOCALBASE}/include |
27 |
|
LDFLAGS+= -L${LOCALBASE}/lib |
28 |
< |
CPPFLAGS+= -fPIC |
34 |
< |
CONFIGURE_ARGS+= --disable-guile |
28 |
> |
MAKE_ENV= MAKEINFOFLAGS=--no-split |
29 |
|
|
30 |
+ |
OPTIONS_DEFINE= CRYWRAP EXAMPLES LIBDANE NLS P11KIT TPM ZLIB |
31 |
+ |
OPTIONS_DEFAULT= CRYWRAP P11KIT TPM ZLIB |
32 |
+ |
OPTIONS_SUB= yes |
33 |
|
|
34 |
< |
INFO= gnutls |
34 |
> |
CRYWRAP_DESC= Enable Crywrap TLS proxy service |
35 |
> |
CRYWRAP_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn |
36 |
> |
CRYWRAP_CONFIGURE_ENABLE= crywrap |
37 |
|
|
38 |
< |
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS |
38 |
> |
LIBDANE_DESC= DNSSEC support for DANE (danetool --check) |
39 |
> |
LIBDANE_LIB_DEPENDS= libunbound.so:${PORTSDIR}/dns/unbound |
40 |
> |
LIBDANE_CONFIGURE_ENABLE= libdane |
41 |
|
|
42 |
< |
LIBTASN1_DESC= Use system libtasn1 instead of local one |
43 |
< |
CXX_DESC= Install C++ library |
43 |
< |
LZO_DESC= LZO compression |
42 |
> |
NLS_CONFIGURE_ENABLE= nls |
43 |
> |
NLS_USES= gettext |
44 |
|
|
45 |
< |
OPTIONS_DEFAULT= LIBTASN1 CXX |
45 |
> |
P11KIT_DESC= PKCS\#11 and p11-kit support |
46 |
> |
P11KIT_CONFIGURE_WITH= p11-kit |
47 |
> |
P11KIT_LIB_DEPENDS= libp11-kit.so:${PORTSDIR}/security/p11-kit |
48 |
|
|
49 |
< |
.include <bsd.mport.options.mk> |
49 |
> |
TPM_DESC= TPM (trousers) support |
50 |
> |
TPM_CONFIGURE_WITH= tpm |
51 |
> |
TPM_LIB_DEPENDS= libtspi.so:${PORTSDIR}/security/trousers |
52 |
|
|
53 |
< |
.if ${PORT_OPTIONS:MLIBTASN1} |
50 |
< |
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1 |
51 |
< |
.else |
52 |
< |
CONFIGURE_ARGS+= --with-included-libtasn1 |
53 |
< |
.endif |
53 |
> |
ZLIB_CONFIGURE_WITH= zlib |
54 |
|
|
55 |
< |
.if ${PORT_OPTIONS:MLZO} |
56 |
< |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
57 |
< |
CONFIGURE_ARGS+= --with-lzo |
58 |
< |
.else |
59 |
< |
CONFIGURE_ARGS+= --with-lzo=no |
60 |
< |
.endif |
55 |
> |
INFO= gnutls gnutls-guile |
56 |
|
|
62 |
– |
.if ${PORT_OPTIONS:MCXX} |
63 |
– |
PLIST_SUB+= CXX="" |
64 |
– |
.else |
65 |
– |
CONFIGURE_ARGS+= --disable-cxx |
66 |
– |
PLIST_SUB+= CXX="@comment " |
67 |
– |
.endif |
68 |
– |
|
69 |
– |
.if ${PORT_OPTIONS:MNLS} |
70 |
– |
USES+= gettext |
71 |
– |
PLIST_SUB+= NLS="" |
72 |
– |
.else |
73 |
– |
CONFIGURE_ARGS+= --disable-nls |
74 |
– |
PLIST_SUB+= NLS="@comment " |
75 |
– |
.endif |
76 |
– |
|
77 |
– |
PORTDOCS= AUTHORS NEWS README THANKS |
78 |
– |
PORTEXAMPLES= *.c |
79 |
– |
|
57 |
|
post-patch: |
58 |
< |
@${FIND} ${WRKSRC} -name "Makefile.in" -type f |\ |
82 |
< |
${XARGS} ${REINPLACE_CMD} -e 's|[$$][(]LTLIBPTHREAD[)]||g' |
83 |
< |
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|g' \ |
84 |
< |
${WRKSRC}/doc/doxygen/Doxyfile.in |
58 |
> |
@${RM} ${WRKSRC}/doc/*.info* |
59 |
|
|
60 |
|
post-install: |
61 |
< |
.if ${PORT_OPTIONS:MEXAMPLES} |
62 |
< |
@${MKDIR} ${EXAMPLESDIR} |
63 |
< |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \ |
90 |
< |
${EXAMPLESDIR} |
91 |
< |
.endif |
92 |
< |
.if ${PORT_OPTIONS:MDOCS} |
93 |
< |
@${MKDIR} ${DOCSDIR} |
94 |
< |
.for i in ${PORTDOCS} |
95 |
< |
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
96 |
< |
.endfor |
97 |
< |
.endif |
61 |
> |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
62 |
> |
${INSTALL_DATA} ${WRKSRC}/doc/examples/*.[ch] ${STAGEDIR}${EXAMPLESDIR} |
63 |
> |
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgnutls*.so.* |
64 |
|
|
65 |
|
.include <bsd.port.mk> |