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