2003-01-07 15:02:30 +01:00
|
|
|
# New ports collection makefile for: gnutls
|
2006-01-09 17:33:15 +01:00
|
|
|
# Date created: 13 Nov 2002
|
|
|
|
# Whom: Sergei Kolobov <sergei@kolobov.com>
|
2003-01-07 15:02:30 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnutls
|
2006-02-10 17:31:17 +01:00
|
|
|
PORTVERSION= 1.2.10
|
2006-05-05 18:02:27 +02:00
|
|
|
PORTREVISION= 3
|
2003-01-07 15:02:30 +01:00
|
|
|
CATEGORIES= security net
|
2003-02-15 12:18:08 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNUPG} \
|
2003-01-07 15:02:30 +01:00
|
|
|
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \
|
|
|
|
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/ \
|
2006-01-09 17:33:15 +01:00
|
|
|
http://josefsson.org/gnutls/releases/ \
|
2003-01-28 23:12:42 +01:00
|
|
|
ftp://ftp.gnutls.org/pub/gnutls/
|
2003-02-15 12:18:08 +01:00
|
|
|
MASTER_SITE_SUBDIR= alpha/gnutls
|
2003-01-07 15:02:30 +01:00
|
|
|
|
2005-08-30 16:28:29 +02:00
|
|
|
MAINTAINER= novel@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= GNU Transport Layer Security library
|
2003-01-07 15:02:30 +01:00
|
|
|
|
2005-01-11 15:53:12 +01:00
|
|
|
LIB_DEPENDS= gcrypt.13:${PORTSDIR}/security/libgcrypt \
|
2006-05-03 14:55:36 +02:00
|
|
|
gpg-error.2:${PORTSDIR}/security/libgpg-error
|
2003-01-07 15:02:30 +01:00
|
|
|
|
2004-10-13 11:08:06 +02:00
|
|
|
.if defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.8)
|
|
|
|
LIB_DEPENDS+= opencdk.8:${PORTSDIR}/security/opencdk
|
|
|
|
.endif
|
|
|
|
|
2006-05-05 18:02:27 +02:00
|
|
|
.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.3)
|
|
|
|
LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1
|
2004-10-13 11:08:06 +02:00
|
|
|
.endif
|
|
|
|
|
2005-09-11 13:23:24 +02:00
|
|
|
CONFLICTS= gnutls-devel-[0-9]*
|
|
|
|
|
2006-01-09 17:33:15 +01:00
|
|
|
USE_BZIP2= yes
|
2004-03-09 00:43:20 +01:00
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GETTEXT= yes
|
2005-02-18 13:14:05 +01:00
|
|
|
USE_GNOME= pkgconfig
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-01-07 15:02:30 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-01-28 23:12:42 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2006-01-09 17:33:15 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
MAKEINFO="${LOCALBASE}/bin/makeinfo"
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2006-01-09 17:33:15 +01:00
|
|
|
CONFIGURE_ARGS+= --with-included-lzo
|
|
|
|
MANCOMPRESSED= no
|
2003-09-29 16:38:03 +02:00
|
|
|
|
2006-03-16 16:58:24 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 600000
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
|
|
|
|
.endif
|
|
|
|
|
2006-01-09 17:33:15 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= AUTHORS NEWS README THANKS
|
|
|
|
.endif
|
2003-09-24 11:06:54 +02:00
|
|
|
EXAMPLES= doc/examples/*.c
|
2003-01-07 15:02:30 +01:00
|
|
|
|
2005-02-18 13:14:05 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
|
|
|
|
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in
|
|
|
|
|
2003-01-07 15:02:30 +01:00
|
|
|
post-install:
|
2003-01-18 22:14:06 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2003-09-24 11:06:54 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
|
2003-01-07 15:02:30 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-01-09 17:33:15 +01:00
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
2003-01-07 15:02:30 +01:00
|
|
|
.endif
|
|
|
|
|
2006-01-09 17:33:15 +01:00
|
|
|
.include "Makefile.man"
|
2006-03-16 16:58:24 +01:00
|
|
|
.include <bsd.port.post.mk>
|