1 |
< |
# New ports collection makefile for: gnutls |
2 |
< |
# Date created: 13 Nov 2002 |
3 |
< |
# Whom: Sergei Kolobov <sergei@kolobov.com> |
4 |
< |
# |
5 |
< |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.8 2008/05/22 21:43:17 laffer1 Exp $ |
6 |
< |
# $FreeBSD: ports/security/gnutls/Makefile,v 1.42 2006/09/08 18:24:27 novel Exp $ |
7 |
< |
# |
1 |
> |
# $MidnightBSD$ |
2 |
|
|
3 |
|
PORTNAME= gnutls |
4 |
< |
PORTVERSION= 2.4.1 |
5 |
< |
PORTREVISION= 1 |
4 |
> |
PORTVERSION= 2.12.23 |
5 |
> |
PORTREVISION= 2 |
6 |
|
CATEGORIES= security net |
7 |
< |
MASTER_SITES= http://josefsson.org/gnutls/releases/ \ |
14 |
< |
ftp://ftp.gnutls.org/pub/gnutls/ \ |
15 |
< |
${MASTER_SITE_GNUPG} \ |
16 |
< |
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \ |
17 |
< |
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/ |
18 |
< |
MASTER_SITE_SUBDIR= alpha/gnutls |
7 |
> |
MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ |
8 |
|
|
9 |
|
MAINTAINER= ports@MidnightBSD.org |
10 |
|
COMMENT= GNU Transport Layer Security library |
11 |
< |
LICENSE= gpl3 |
23 |
< |
LIB_DEPENDS= gcrypt.15:${PORTSDIR}/security/libgcrypt \ |
24 |
< |
gpg-error.0:${PORTSDIR}/security/libgpg-error |
11 |
> |
LICENSE= gpl3 |
12 |
|
|
13 |
+ |
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \ |
14 |
+ |
gpg-error:${PORTSDIR}/security/libgpg-error \ |
15 |
+ |
p11-kit:${PORTSDIR}/security/p11-kit |
16 |
+ |
|
17 |
+ |
CONFLICTS= gnutls-devel-[0-9]* |
18 |
+ |
|
19 |
+ |
USE_PATHFIX= yes |
20 |
|
USE_BZIP2= yes |
21 |
|
USE_ICONV= yes |
22 |
< |
USE_GNOME= pkgconfig ltverhack |
22 |
> |
USE_PKGCONFIG= build |
23 |
> |
USE_GNOME= ltverhack gnomehack |
24 |
|
GNU_CONFIGURE= yes |
25 |
+ |
MAKE_JOBS_SAFE= yes |
26 |
|
USE_LDCONFIG= yes |
27 |
< |
USE_AUTOTOOLS= libtool:15 |
28 |
< |
USE_GCC= 3.4+ |
27 |
> |
USE_AUTOTOOLS= libtool |
28 |
> |
LIBTOOLFILES= configure lib/configure libextra/configure |
29 |
|
CPPFLAGS+= -I${LOCALBASE}/include |
30 |
|
LDFLAGS+= -L${LOCALBASE}/lib |
31 |
< |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" |
32 |
< |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.0 |
37 |
< |
CONFIGURE_ARGS+= --with-included-lzo --disable-guile \ |
38 |
< |
--infodir="${PREFIX}/info" --mandir="${PREFIX}/man/" |
31 |
> |
CPPFLAGS+= -fPIC |
32 |
> |
CONFIGURE_ARGS+= --disable-guile |
33 |
|
MANCOMPRESSED= no |
34 |
|
|
35 |
< |
.include <bsd.port.pre.mk> |
36 |
< |
.if defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.10) |
37 |
< |
LIB_DEPENDS+= opencdk.10:${PORTSDIR}/security/opencdk |
35 |
> |
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS |
36 |
> |
|
37 |
> |
LIBTASN1_DESC= Use system libtasn1 instead of local one |
38 |
> |
CXX_DESC= Install C++ library |
39 |
> |
LZO_DESC= LZO compression |
40 |
> |
|
41 |
> |
OPTIONS_DEFAULT= LIBTASN1 CXX |
42 |
> |
|
43 |
> |
.include <bsd.mport.options.mk> |
44 |
> |
|
45 |
> |
.if ${PORT_OPTIONS:MLIBTASN1} |
46 |
> |
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1 |
47 |
> |
.else |
48 |
> |
CONFIGURE_ARGS+= --with-included-libtasn1 |
49 |
|
.endif |
50 |
|
|
51 |
< |
.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.3) |
52 |
< |
LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1 |
51 |
> |
.if ${PORT_OPTIONS:MLZO} |
52 |
> |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
53 |
> |
CONFIGURE_ARGS+= --with-lzo |
54 |
|
.endif |
55 |
|
|
56 |
< |
.if defined(WITHOUT_CXX) |
56 |
> |
.if ${PORT_OPTIONS:MCXX} |
57 |
|
CONFIGURE_ARGS+= --disable-cxx |
58 |
< |
PLIST_SUB+= CXX="@comment " |
58 |
> |
PLIST_SUB+= CXX="@comment " |
59 |
|
.else |
60 |
< |
PLIST_SUB+= CXX="" |
60 |
> |
PLIST_SUB+= CXX="" |
61 |
|
.endif |
62 |
|
|
63 |
< |
.if defined(WITHOUT_NLS) |
63 |
> |
.if ${PORT_OPTIONS:MNLS} |
64 |
|
CONFIGURE_ARGS+= --disable-nls |
65 |
|
PLIST_SUB+= NLS="@comment " |
66 |
|
.else |
67 |
< |
USE_GETTEXT= yes |
67 |
> |
USES+= gettext |
68 |
|
PLIST_SUB+= NLS="" |
69 |
|
.endif |
70 |
|
|
65 |
– |
.if !defined(NOPORTDOCS) |
71 |
|
PORTDOCS= AUTHORS NEWS README THANKS |
72 |
< |
.endif |
68 |
< |
EXAMPLES= doc/examples/*.c |
72 |
> |
PORTEXAMPLES= *.c |
73 |
|
|
74 |
|
post-patch: |
75 |
< |
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ |
76 |
< |
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in |
75 |
> |
@${FIND} ${WRKSRC} -name "Makefile.in" -type f | ${XARGS} ${REINPLACE_CMD} \ |
76 |
> |
-e 's|[$$][(]LTLIBPTHREAD[)]||g' |
77 |
|
|
78 |
|
post-install: |
79 |
+ |
.if !defined (NOPORTEXAMPLES) |
80 |
|
@${MKDIR} ${EXAMPLESDIR} |
81 |
< |
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} |
81 |
> |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \ |
82 |
> |
${EXAMPLESDIR} |
83 |
> |
.endif |
84 |
|
.if !defined(NOPORTDOCS) |
85 |
|
@${MKDIR} ${DOCSDIR} |
86 |
|
.for i in ${PORTDOCS} |
89 |
|
.endif |
90 |
|
|
91 |
|
.include "Makefile.man" |
92 |
< |
.include <bsd.port.post.mk> |
92 |
> |
.include <bsd.port.mk> |