ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/security/gnutls/Makefile
Revision: 8378
Committed: Sun Sep 20 02:22:58 2009 UTC (14 years, 7 months ago) by laffer1
File size: 2122 byte(s)
Log Message:
libtool22

File Contents

# Content
1 # $MidnightBSD: mports/security/gnutls/Makefile,v 1.12 2009/05/01 14:49:02 laffer1 Exp $
2
3 PORTNAME= gnutls
4 PORTVERSION= 2.6.6
5 CATEGORIES= security net
6 MASTER_SITES= ${MASTER_SITE_GNU} \
7 ${MASTER_SITE_GNUPG}
8 MASTER_SITE_SUBDIR= ${PORTNAME}
9
10 MAINTAINER= ports@MidnightBSD.org
11 COMMENT= GNU Transport Layer Security library
12 LICENSE= gpl3
13
14 LIB_DEPENDS= gcrypt.16:${PORTSDIR}/security/libgcrypt \
15 gpg-error.0:${PORTSDIR}/security/libgpg-error
16
17 USE_BZIP2= yes
18 USE_ICONV= yes
19 USE_GNOME= pkgconfig ltverhack
20 GNU_CONFIGURE= yes
21 USE_LDCONFIG= yes
22 USE_AUTOTOOLS= libtool:22
23 CPPFLAGS+= -I${LOCALBASE}/include
24 LDFLAGS+= -L${LOCALBASE}/lib
25 CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}"
26 CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd6.0
27 CONFIGURE_ARGS+= --with-included-lzo --disable-guile \
28 --infodir="${PREFIX}/info" --mandir="${PREFIX}/man/"
29 MANCOMPRESSED= no
30
31 .include <bsd.port.pre.mk>
32
33 .if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.4)) && !defined(WITHOUT_LIBTASN1)
34 LIB_DEPENDS+= tasn1.4:${PORTSDIR}/security/libtasn1
35 .else
36 CONFIGURE_ARGS+= --with-included-libtasn1
37 .endif
38
39 .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 .if defined(WITHOUT_CXX)
47 CONFIGURE_ARGS+= --disable-cxx
48 PLIST_SUB+= CXX="@comment "
49 .else
50 PLIST_SUB+= CXX=""
51 .endif
52
53 .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 pre-configure:
67 @${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>

Properties

Name Value
cvs2svn:cvs-rev 1.13