1 |
< |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.19 2011/09/10 22:10:14 laffer1 Exp $ |
1 |
> |
# $MidnightBSD$ |
2 |
|
|
3 |
|
PORTNAME= gnutls |
4 |
< |
PORTVERSION= 2.10.2 |
4 |
> |
PORTVERSION= 3.2.16 |
5 |
|
PORTREVISION= 0 |
6 |
|
CATEGORIES= security net |
7 |
< |
MASTER_SITES= ${MASTER_SITE_GNU} \ |
8 |
< |
${MASTER_SITE_GNUPG} |
9 |
< |
MASTER_SITE_SUBDIR= ${PORTNAME} |
7 |
> |
MASTER_SITES= GNUPG/gnutls/v3.2 |
8 |
|
|
9 |
< |
MAINTAINER= ports@MidnightBSD.org |
9 |
> |
MAINTAINER= novel@FreeBSD.org |
10 |
|
COMMENT= GNU Transport Layer Security library |
13 |
– |
LICENSE= gpl3 |
11 |
|
|
12 |
< |
LIB_DEPENDS= gcrypt.18:${PORTSDIR}/security/libgcrypt \ |
13 |
< |
gpg-error.0:${PORTSDIR}/security/libgpg-error |
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 |
< |
CONFLICTS= gnutls-devel-[0-9]* |
17 |
> |
LIB_DEPENDS= libnettle.so:${PORTSDIR}/security/nettle \ |
18 |
> |
libtasn1.so:${PORTSDIR}/security/libtasn1 |
19 |
|
|
20 |
< |
USE_BZIP2= yes |
21 |
< |
USE_ICONV= yes |
22 |
< |
USE_GNOME= pkgconfig ltverhack |
23 |
< |
GNU_CONFIGURE= yes |
24 |
< |
MAKE_JOBS_SAFE= yes |
20 |
> |
USES= gmake iconv libtool makeinfo pathfix pkgconfig tar:xz |
21 |
|
USE_LDCONFIG= yes |
22 |
< |
USE_AUTOTOOLS= libtool |
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 |
< |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" |
30 |
< |
CONFIGURE_ARGS+= --disable-guile |
31 |
< |
MANCOMPRESSED= no |
28 |
> |
MAKE_ENV= MAKEINFOFLAGS=--no-split |
29 |
|
|
30 |
< |
.include <bsd.port.pre.mk> |
30 |
> |
OPTIONS_DEFINE= CRYWRAP EXAMPLES LIBDANE NLS P11KIT TPM ZLIB |
31 |
> |
OPTIONS_DEFAULT= CRYWRAP P11KIT TPM ZLIB |
32 |
> |
OPTIONS_SUB= yes |
33 |
|
|
34 |
< |
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1) |
35 |
< |
LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1 |
36 |
< |
.else |
38 |
< |
CONFIGURE_ARGS+= --with-included-libtasn1 |
39 |
< |
.endif |
34 |
> |
CRYWRAP_DESC= Enable Crywrap TLS proxy service |
35 |
> |
CRYWRAP_LIB_DEPENDS= libidn.so:${PORTSDIR}/dns/libidn |
36 |
> |
CRYWRAP_CONFIGURE_ENABLE= crywrap |
37 |
|
|
38 |
< |
.if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) |
39 |
< |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
40 |
< |
CONFIGURE_ARGS+= --with-lzo |
44 |
< |
.else |
45 |
< |
CONFIGURE_ARGS+= --with-lzo=no |
46 |
< |
.endif |
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 |
< |
.if defined(WITHOUT_CXX) |
43 |
< |
CONFIGURE_ARGS+= --disable-cxx |
50 |
< |
PLIST_SUB+= CXX="@comment " |
51 |
< |
.else |
52 |
< |
PLIST_SUB+= CXX="" |
53 |
< |
.endif |
42 |
> |
NLS_CONFIGURE_ENABLE= nls |
43 |
> |
NLS_USES= gettext |
44 |
|
|
45 |
< |
.if defined(WITHOUT_NLS) |
46 |
< |
CONFIGURE_ARGS+= --disable-nls |
47 |
< |
PLIST_SUB+= NLS="@comment " |
58 |
< |
.else |
59 |
< |
USE_GETTEXT= yes |
60 |
< |
PLIST_SUB+= NLS="" |
61 |
< |
.endif |
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 |
< |
.if defined(WITH_CAMELLIA) |
50 |
< |
CONFIGURE_ARGS+= --enable-camellia |
51 |
< |
.endif |
49 |
> |
TPM_DESC= TPM (trousers) support |
50 |
> |
TPM_CONFIGURE_WITH= tpm |
51 |
> |
TPM_LIB_DEPENDS= libtspi.so:${PORTSDIR}/security/trousers |
52 |
|
|
53 |
< |
.if !defined(NOPORTDOCS) |
68 |
< |
PORTDOCS= AUTHORS NEWS README THANKS |
69 |
< |
.endif |
70 |
< |
EXAMPLES= doc/examples/*.c |
53 |
> |
ZLIB_CONFIGURE_WITH= zlib |
54 |
|
|
55 |
< |
pre-configure: |
73 |
< |
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ |
74 |
< |
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in |
55 |
> |
INFO= gnutls gnutls-guile |
56 |
|
|
57 |
+ |
post-patch: |
58 |
+ |
@${RM} ${WRKSRC}/doc/*.info* |
59 |
+ |
|
60 |
|
post-install: |
61 |
< |
@${MKDIR} ${EXAMPLESDIR} |
62 |
< |
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} |
63 |
< |
.if !defined(NOPORTDOCS) |
80 |
< |
@${MKDIR} ${DOCSDIR} |
81 |
< |
.for i in ${PORTDOCS} |
82 |
< |
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
83 |
< |
.endfor |
84 |
< |
.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 "Makefile.man" |
87 |
< |
.include <bsd.port.post.mk> |
65 |
> |
.include <bsd.port.mk> |