2 |
|
# Date created: 13 Nov 2002 |
3 |
|
# Whom: Sergei Kolobov <sergei@kolobov.com> |
4 |
|
# |
5 |
< |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.6 2008/03/21 01:39:11 laffer1 Exp $ |
5 |
> |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.9 2008/08/10 13:32:39 crash Exp $ |
6 |
|
# $FreeBSD: ports/security/gnutls/Makefile,v 1.42 2006/09/08 18:24:27 novel Exp $ |
7 |
|
# |
8 |
|
|
9 |
|
PORTNAME= gnutls |
10 |
< |
PORTVERSION= 2.2.5 |
10 |
> |
PORTVERSION= 2.6.4 |
11 |
|
CATEGORIES= security net |
12 |
< |
MASTER_SITES= http://josefsson.org/gnutls/releases/ \ |
13 |
< |
ftp://ftp.gnutls.org/pub/gnutls/ \ |
14 |
< |
${MASTER_SITE_GNUPG} \ |
15 |
< |
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \ |
16 |
< |
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/ |
17 |
< |
MASTER_SITE_SUBDIR= alpha/gnutls |
12 |
> |
MASTER_SITES= ${MASTER_SITE_GNU} \ |
13 |
> |
${MASTER_SITE_GNUPG} |
14 |
> |
MASTER_SITE_SUBDIR= ${PORTNAME} |
15 |
|
|
16 |
|
MAINTAINER= ports@MidnightBSD.org |
17 |
|
COMMENT= GNU Transport Layer Security library |
18 |
|
LICENSE= gpl3 |
19 |
+ |
|
20 |
|
LIB_DEPENDS= gcrypt.15:${PORTSDIR}/security/libgcrypt \ |
21 |
|
gpg-error.0:${PORTSDIR}/security/libgpg-error |
22 |
|
|
26 |
|
GNU_CONFIGURE= yes |
27 |
|
USE_LDCONFIG= yes |
28 |
|
USE_AUTOTOOLS= libtool:15 |
31 |
– |
USE_GCC= 3.4+ |
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 |
33 |
< |
CONFIGURE_ARGS+= --with-included-lzo \ |
33 |
> |
CONFIGURE_ARGS+= --with-included-lzo --disable-guile \ |
34 |
|
--infodir="${PREFIX}/info" --mandir="${PREFIX}/man/" |
35 |
|
MANCOMPRESSED= no |
36 |
|
|
37 |
|
.include <bsd.port.pre.mk> |
41 |
– |
.if defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.10) |
42 |
– |
LIB_DEPENDS+= opencdk.10:${PORTSDIR}/security/opencdk |
43 |
– |
.endif |
38 |
|
|
39 |
< |
.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.3) |
39 |
> |
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1) |
40 |
|
LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1 |
41 |
+ |
.else |
42 |
+ |
CONFIGURE_ARGS+= --with-included-libtasn1 |
43 |
|
.endif |
44 |
|
|
45 |
+ |
.if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) |
46 |
+ |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
47 |
+ |
CONFIGURE_ARGS+= --with-lzo |
48 |
+ |
.else |
49 |
+ |
CONFIGURE_ARGS+= --with-lzo=no |
50 |
+ |
.endif |
51 |
+ |
|
52 |
|
.if defined(WITHOUT_CXX) |
53 |
|
CONFIGURE_ARGS+= --disable-cxx |
54 |
< |
PLIST_SUB+= CXX="@comment " |
54 |
> |
PLIST_SUB+= CXX="@comment " |
55 |
|
.else |
56 |
< |
PLIST_SUB+= CXX="" |
56 |
> |
PLIST_SUB+= CXX="" |
57 |
|
.endif |
58 |
|
|
59 |
|
.if defined(WITHOUT_NLS) |
69 |
|
.endif |
70 |
|
EXAMPLES= doc/examples/*.c |
71 |
|
|
72 |
< |
post-patch: |
72 |
> |
pre-configure: |
73 |
|
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ |
74 |
|
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in |
75 |
|
|