1 |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.20 2012/02/11 04:13:30 laffer1 Exp $ |
2 |
|
3 |
PORTNAME= gnutls |
4 |
PORTVERSION= 2.12.23 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= security net |
7 |
MASTER_SITES= ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/ |
8 |
|
9 |
MAINTAINER= ports@MidnightBSD.org |
10 |
COMMENT= GNU Transport Layer Security library |
11 |
LICENSE= gpl3 |
12 |
|
13 |
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \ |
14 |
gpg-error:${PORTSDIR}/security/libgpg-error \ |
15 |
p11-kit:${PORTSDIR}/security/p11-kit |
16 |
|
17 |
CONFLICTS= gnutls-devel-[0-9]* |
18 |
|
19 |
USE_PATHFIX= yes |
20 |
USE_BZIP2= yes |
21 |
USE_ICONV= yes |
22 |
USE_PKGCONFIG= build |
23 |
USE_GNOME= ltverhack gnomehack |
24 |
GNU_CONFIGURE= yes |
25 |
MAKE_JOBS_SAFE= yes |
26 |
USE_LDCONFIG= yes |
27 |
USE_AUTOTOOLS= libtool |
28 |
LIBTOOLFILES= configure lib/configure libextra/configure |
29 |
CPPFLAGS+= -I${LOCALBASE}/include |
30 |
LDFLAGS+= -L${LOCALBASE}/lib |
31 |
CPPFLAGS+= -fPIC |
32 |
CONFIGURE_ARGS+= --disable-guile |
33 |
MANCOMPRESSED= no |
34 |
|
35 |
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS |
36 |
|
37 |
LIBTASN1_DESC= Use system libtasn1 instead of local one |
38 |
CXX_DESC= Install C++ library |
39 |
LZO_DESC= LZO compression |
40 |
|
41 |
OPTIONS_DEFAULT= LIBTASN1 CXX |
42 |
|
43 |
.include <bsd.mport.options.mk> |
44 |
|
45 |
.if ${PORT_OPTIONS:MLIBTASN1} |
46 |
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1 |
47 |
.else |
48 |
CONFIGURE_ARGS+= --with-included-libtasn1 |
49 |
.endif |
50 |
|
51 |
.if ${PORT_OPTIONS:MLZO} |
52 |
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
53 |
CONFIGURE_ARGS+= --with-lzo |
54 |
.endif |
55 |
|
56 |
.if ${PORT_OPTIONS:MCXX} |
57 |
CONFIGURE_ARGS+= --disable-cxx |
58 |
PLIST_SUB+= CXX="@comment " |
59 |
.else |
60 |
PLIST_SUB+= CXX="" |
61 |
.endif |
62 |
|
63 |
.if ${PORT_OPTIONS:MNLS} |
64 |
CONFIGURE_ARGS+= --disable-nls |
65 |
PLIST_SUB+= NLS="@comment " |
66 |
.else |
67 |
USES+= gettext |
68 |
PLIST_SUB+= NLS="" |
69 |
.endif |
70 |
|
71 |
PORTDOCS= AUTHORS NEWS README THANKS |
72 |
PORTEXAMPLES= *.c |
73 |
|
74 |
post-patch: |
75 |
@${FIND} ${WRKSRC} -name "Makefile.in" -type f | ${XARGS} ${REINPLACE_CMD} \ |
76 |
-e 's|[$$][(]LTLIBPTHREAD[)]||g' |
77 |
|
78 |
post-install: |
79 |
.if !defined (NOPORTEXAMPLES) |
80 |
@${MKDIR} ${EXAMPLESDIR} |
81 |
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \ |
82 |
${EXAMPLESDIR} |
83 |
.endif |
84 |
.if !defined(NOPORTDOCS) |
85 |
@${MKDIR} ${DOCSDIR} |
86 |
.for i in ${PORTDOCS} |
87 |
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} |
88 |
.endfor |
89 |
.endif |
90 |
|
91 |
.include "Makefile.man" |
92 |
.include <bsd.port.mk> |