blob: 857b8580df65d1e12b087d208a75b14202df0617 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# New ports collection makefile for: gnutls
# Date created: 13 Nov 2002
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= gnutls
PORTVERSION= 2.12.14
CATEGORIES= security net
MASTER_SITES= ${MASTER_SITE_GNU} \
${MASTER_SITE_GNUPG}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= novel@FreeBSD.org
COMMENT= GNU Transport Layer Security library
LIB_DEPENDS= nettle.4:${PORTSDIR}/security/nettle \
gpg-error.0:${PORTSDIR}/security/libgpg-error \
p11-kit.0:${PORTSDIR}/security/p11-kit
CONFLICTS= gnutls-devel-[0-9]*
USE_BZIP2= yes
USE_ICONV= yes
USE_GNOME= pkgconfig ltverhack gnomehack
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -fPIC
CONFIGURE_ARGS+= --disable-guile
MANCOMPRESSED= no
.include <bsd.port.pre.mk>
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1)
LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1
.else
CONFIGURE_ARGS+= --with-included-libtasn1
.endif
.if (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO)
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
CONFIGURE_ARGS+= --with-lzo
.else
CONFIGURE_ARGS+= --with-lzo=no
.endif
.if defined(WITHOUT_CXX)
CONFIGURE_ARGS+= --disable-cxx
PLIST_SUB+= CXX="@comment "
.else
PLIST_SUB+= CXX=""
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= AUTHORS NEWS README THANKS
.endif
EXAMPLES= doc/examples/*.c
post-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include "Makefile.man"
.include <bsd.port.post.mk>
|