ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/security/gnutls/Makefile
Revision: 10713
Committed: Wed Feb 2 21:22:47 2011 UTC (13 years, 2 months ago) by laffer1
File size: 2113 byte(s)
Log Message:
autotools update

File Contents

# Content
1 # $MidnightBSD: mports/security/gnutls/Makefile,v 1.16 2010/08/01 06:11:45 laffer1 Exp $
2 #
3
4 PORTNAME= gnutls
5 PORTVERSION= 2.8.6
6 PORTREVISION= 1
7 CATEGORIES= security net
8 MASTER_SITES= ${MASTER_SITE_GNU} \
9 ${MASTER_SITE_GNUPG}
10 MASTER_SITE_SUBDIR= ${PORTNAME}
11
12 MAINTAINER= ports@MidnightBSD.org
13 COMMENT= GNU Transport Layer Security library
14 LICENSE= gpl3
15
16 LIB_DEPENDS= gcrypt.17:${PORTSDIR}/security/libgcrypt \
17 gpg-error.0:${PORTSDIR}/security/libgpg-error
18
19 CONFLICTS= gnutls-devel-[0-9]*
20
21 USE_BZIP2= yes
22 USE_ICONV= yes
23 USE_GNOME= pkgconfig ltverhack
24 GNU_CONFIGURE= yes
25 MAKE_JOBS_SAFE= yes
26 USE_LDCONFIG= yes
27 USE_AUTOTOOLS= libtool
28 CPPFLAGS+= -I${LOCALBASE}/include
29 LDFLAGS+= -L${LOCALBASE}/lib
30 CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}"
31 CONFIGURE_ARGS+= --disable-guile
32 MANCOMPRESSED= no
33
34 .include <bsd.port.pre.mk>
35
36 .if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1)
37 LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1
38 .else
39 CONFIGURE_ARGS+= --with-included-libtasn1
40 .endif
41
42 .if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO)
43 LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
44 CONFIGURE_ARGS+= --with-lzo
45 .else
46 CONFIGURE_ARGS+= --with-lzo=no
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(WITH_CAMELLIA)
65 CONFIGURE_ARGS+= --enable-camellia
66 .endif
67
68 .if !defined(NOPORTDOCS)
69 PORTDOCS= AUTHORS NEWS README THANKS
70 .endif
71 EXAMPLES= doc/examples/*.c
72
73 pre-configure:
74 @${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
75 ${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in
76
77 post-install:
78 @${MKDIR} ${EXAMPLESDIR}
79 cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
80 .if !defined(NOPORTDOCS)
81 @${MKDIR} ${DOCSDIR}
82 .for i in ${PORTDOCS}
83 @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
84 .endfor
85 .endif
86
87 .include "Makefile.man"
88 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.17