1 |
< |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.19 2011/09/10 22:10:14 laffer1 Exp $ |
1 |
> |
# $MidnightBSD: mports/security/gnutls/Makefile,v 1.20 2012/02/11 04:13:30 laffer1 Exp $ |
2 |
|
|
3 |
|
PORTNAME= gnutls |
4 |
< |
PORTVERSION= 2.10.2 |
5 |
< |
PORTREVISION= 0 |
4 |
> |
PORTVERSION= 2.12.23 |
5 |
> |
PORTREVISION= 2 |
6 |
|
CATEGORIES= security net |
7 |
< |
MASTER_SITES= ${MASTER_SITE_GNU} \ |
8 |
< |
${MASTER_SITE_GNUPG} |
9 |
< |
MASTER_SITE_SUBDIR= ${PORTNAME} |
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= gcrypt.18:${PORTSDIR}/security/libgcrypt \ |
14 |
< |
gpg-error.0:${PORTSDIR}/security/libgpg-error |
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_GNOME= pkgconfig ltverhack |
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 |
< |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}" |
31 |
> |
CPPFLAGS+= -fPIC |
32 |
|
CONFIGURE_ARGS+= --disable-guile |
33 |
|
MANCOMPRESSED= no |
34 |
|
|
35 |
< |
.include <bsd.port.pre.mk> |
35 |
> |
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS |
36 |
|
|
37 |
< |
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1) |
38 |
< |
LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1 |
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 (defined(WITH_LZO) || exists(${LOCALBASE}/lib/liblzo2.so)) && !defined(WITHOUT_LZO) |
51 |
> |
.if ${PORT_OPTIONS:MLZO} |
52 |
|
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2 |
53 |
|
CONFIGURE_ARGS+= --with-lzo |
44 |
– |
.else |
45 |
– |
CONFIGURE_ARGS+= --with-lzo=no |
54 |
|
.endif |
55 |
|
|
56 |
< |
.if defined(WITHOUT_CXX) |
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 defined(WITHOUT_NLS) |
63 |
> |
.if ${PORT_OPTIONS:MNLS} |
64 |
|
CONFIGURE_ARGS+= --disable-nls |
65 |
|
PLIST_SUB+= NLS="@comment " |
66 |
|
.else |
67 |
< |
USE_GETTEXT= yes |
67 |
> |
USES+= gettext |
68 |
|
PLIST_SUB+= NLS="" |
69 |
|
.endif |
70 |
|
|
63 |
– |
.if defined(WITH_CAMELLIA) |
64 |
– |
CONFIGURE_ARGS+= --enable-camellia |
65 |
– |
.endif |
66 |
– |
|
67 |
– |
.if !defined(NOPORTDOCS) |
71 |
|
PORTDOCS= AUTHORS NEWS README THANKS |
72 |
< |
.endif |
70 |
< |
EXAMPLES= doc/examples/*.c |
72 |
> |
PORTEXAMPLES= *.c |
73 |
|
|
74 |
< |
pre-configure: |
75 |
< |
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ |
76 |
< |
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in |
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} ${EXAMPLES} ${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} |
89 |
|
.endif |
90 |
|
|
91 |
|
.include "Makefile.man" |
92 |
< |
.include <bsd.port.post.mk> |
92 |
> |
.include <bsd.port.mk> |