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.3 2007/08/01 20:30:36 laffer1 Exp $ |
6 |
< |
# $FreeBSD: ports/security/gnutls/Makefile,v 1.42 2006/09/08 18:24:27 novel Exp $ |
7 |
< |
# |
1 |
> |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.11 2009/05/01 14:33:08 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= gnutls |
4 |
< |
PORTVERSION= 1.4.5 |
4 |
> |
PORTVERSION= 2.6.6 |
5 |
|
CATEGORIES= security net |
6 |
< |
MASTER_SITES= http://josefsson.org/gnutls/releases/ \ |
7 |
< |
ftp://ftp.gnutls.org/pub/gnutls/ \ |
8 |
< |
${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 |
6 |
> |
MASTER_SITES= ${MASTER_SITE_GNU} \ |
7 |
> |
${MASTER_SITE_GNUPG} |
8 |
> |
MASTER_SITE_SUBDIR= ${PORTNAME} |
9 |
|
|
10 |
|
MAINTAINER= ports@MidnightBSD.org |
11 |
|
COMMENT= GNU Transport Layer Security library |
12 |
+ |
LICENSE= gpl3 |
13 |
|
|
14 |
< |
LIB_DEPENDS= gcrypt.13:${PORTSDIR}/security/libgcrypt \ |
15 |
< |
gpg-error.3:${PORTSDIR}/security/libgpg-error |
14 |
> |
LIB_DEPENDS= gcrypt.16:${PORTSDIR}/security/libgcrypt \ |
15 |
> |
gpg-error.0:${PORTSDIR}/security/libgpg-error |
16 |
|
|
25 |
– |
CONFLICTS= gnutls-devel-[0-9]* |
26 |
– |
|
17 |
|
USE_BZIP2= yes |
18 |
|
USE_ICONV= yes |
19 |
< |
USE_GNOME= pkgconfig |
19 |
> |
USE_GNOME= pkgconfig ltverhack |
20 |
|
GNU_CONFIGURE= yes |
21 |
< |
INSTALLS_SHLIB= yes |
21 |
> |
USE_LDCONFIG= yes |
22 |
> |
USE_AUTOTOOLS= libtool:15 |
23 |
|
CPPFLAGS+= -I${LOCALBASE}/include |
24 |
|
LDFLAGS+= -L${LOCALBASE}/lib |
25 |
< |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \ |
35 |
< |
MAKEINFO="${LOCALBASE}/bin/makeinfo" |
25 |
> |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" |
26 |
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.0 |
27 |
< |
CONFIGURE_ARGS+= --with-included-lzo \ |
27 |
> |
CONFIGURE_ARGS+= --with-included-lzo --disable-guile \ |
28 |
|
--infodir="${PREFIX}/info" --mandir="${PREFIX}/man/" |
29 |
|
MANCOMPRESSED= no |
30 |
|
|
31 |
|
.include <bsd.port.pre.mk> |
32 |
< |
.if defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.8) |
33 |
< |
LIB_DEPENDS+= opencdk.8:${PORTSDIR}/security/opencdk |
32 |
> |
|
33 |
> |
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1) |
34 |
> |
LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1 |
35 |
> |
.else |
36 |
> |
CONFIGURE_ARGS+= --with-included-libtasn1 |
37 |
|
.endif |
38 |
|
|
39 |
< |
.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.3) |
40 |
< |
LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1 |
39 |
> |
.if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) |
40 |
> |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
41 |
> |
CONFIGURE_ARGS+= --with-lzo |
42 |
> |
.else |
43 |
> |
CONFIGURE_ARGS+= --with-lzo=no |
44 |
|
.endif |
45 |
|
|
46 |
+ |
.if defined(WITHOUT_CXX) |
47 |
+ |
CONFIGURE_ARGS+= --disable-cxx |
48 |
+ |
PLIST_SUB+= CXX="@comment " |
49 |
+ |
.else |
50 |
+ |
PLIST_SUB+= CXX="" |
51 |
+ |
.endif |
52 |
+ |
|
53 |
|
.if defined(WITHOUT_NLS) |
54 |
|
CONFIGURE_ARGS+= --disable-nls |
55 |
|
PLIST_SUB+= NLS="@comment " |
63 |
|
.endif |
64 |
|
EXAMPLES= doc/examples/*.c |
65 |
|
|
66 |
< |
post-patch: |
66 |
> |
pre-configure: |
67 |
|
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ |
68 |
|
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in |
69 |
|
|