ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/security/gnutls/Makefile
Revision: 5032
Committed: Tue May 20 17:19:15 2008 UTC (15 years, 10 months ago) by crash
File size: 2362 byte(s)
Log Message:
update to 2.2.5,add license

File Contents

# Content
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.6 2008/03/21 01:39:11 laffer1 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
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
18
19 MAINTAINER= ports@MidnightBSD.org
20 COMMENT= GNU Transport Layer Security library
21 LICENSE= gpl3
22 LIB_DEPENDS= gcrypt.15:${PORTSDIR}/security/libgcrypt \
23 gpg-error.0:${PORTSDIR}/security/libgpg-error
24
25 USE_BZIP2= yes
26 USE_ICONV= yes
27 USE_GNOME= pkgconfig ltverhack
28 GNU_CONFIGURE= yes
29 USE_LDCONFIG= yes
30 USE_AUTOTOOLS= libtool:15
31 USE_GCC= 3.4+
32 CPPFLAGS+= -I${LOCALBASE}/include
33 LDFLAGS+= -L${LOCALBASE}/lib
34 CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}"
35 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.0
36 CONFIGURE_ARGS+= --with-included-lzo \
37 --infodir="${PREFIX}/info" --mandir="${PREFIX}/man/"
38 MANCOMPRESSED= no
39
40 .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
44
45 .if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.3)
46 LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1
47 .endif
48
49 .if defined(WITHOUT_CXX)
50 CONFIGURE_ARGS+= --disable-cxx
51 PLIST_SUB+= CXX="@comment "
52 .else
53 PLIST_SUB+= CXX=""
54 .endif
55
56 .if defined(WITHOUT_NLS)
57 CONFIGURE_ARGS+= --disable-nls
58 PLIST_SUB+= NLS="@comment "
59 .else
60 USE_GETTEXT= yes
61 PLIST_SUB+= NLS=""
62 .endif
63
64 .if !defined(NOPORTDOCS)
65 PORTDOCS= AUTHORS NEWS README THANKS
66 .endif
67 EXAMPLES= doc/examples/*.c
68
69 post-patch:
70 @${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
71 ${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in
72
73 post-install:
74 @${MKDIR} ${EXAMPLESDIR}
75 cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
76 .if !defined(NOPORTDOCS)
77 @${MKDIR} ${DOCSDIR}
78 .for i in ${PORTDOCS}
79 @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
80 .endfor
81 .endif
82
83 .include "Makefile.man"
84 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.7