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