blob: 678838f2bb83bb8b5b782741566d86e1b9147a11 (
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
84
85
86
87
88
89
90
91
|
# Created by: Sergei Kolobov <sergei@kolobov.com>
# $FreeBSD$
PORTNAME= gnutls
PORTVERSION= 2.12.23
PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= \
ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/
MAINTAINER= novel@FreeBSD.org
COMMENT= GNU Transport Layer Security library
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \
gpg-error:${PORTSDIR}/security/libgpg-error \
p11-kit:${PORTSDIR}/security/p11-kit
CONFLICTS= gnutls-devel-[0-9]*
USES= pathfix pkgconfig iconv
USE_BZIP2= yes
USE_GNOME= ltverhack
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
LIBTOOLFILES= configure lib/configure libextra/configure
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -fPIC
CONFIGURE_ARGS+= --disable-guile
MANCOMPRESSED= no
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS
LIBTASN1_DESC= Use system libtasn1 instead of local one
CXX_DESC= Install C++ library
LZO_DESC= LZO compression
OPTIONS_DEFAULT= LIBTASN1 CXX
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBTASN1}
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1
.else
CONFIGURE_ARGS+= --with-included-libtasn1
.endif
.if ${PORT_OPTIONS:MLZO}
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
CONFIGURE_ARGS+= --with-lzo
.endif
.if ${PORT_OPTIONS:MCXX}
CONFIGURE_ARGS+= --disable-cxx
PLIST_SUB+= CXX="@comment "
.else
PLIST_SUB+= CXX=""
.endif
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USES+= gettext
PLIST_SUB+= NLS=""
.endif
PORTDOCS= AUTHORS NEWS README THANKS
PORTEXAMPLES= *.c
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" -type f | ${XARGS} ${REINPLACE_CMD} \
-e 's|[$$][(]LTLIBPTHREAD[)]||g'
post-install:
.if !defined (NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \
${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include "Makefile.man"
.include <bsd.port.mk>
|