2003-01-07 15:02:30 +01:00
|
|
|
# New ports collection makefile for: gnutls
|
|
|
|
# Date created: 13 Nov 2002
|
|
|
|
# Whom: Sergei Kolobov <sergei@kolobov.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnutls
|
2005-02-07 09:19:29 +01:00
|
|
|
PORTVERSION= 1.0.24
|
2005-02-18 13:14:05 +01:00
|
|
|
PORTREVISION= 1
|
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/ \
|
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 \
|
2004-10-13 11:08:06 +02:00
|
|
|
gpg-error.1:${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
|
|
|
|
|
|
|
|
.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.2)
|
|
|
|
LIB_DEPENDS+= tasn1.2:${PORTSDIR}/security/libtasn1
|
|
|
|
.endif
|
|
|
|
|
2005-09-11 13:23:24 +02:00
|
|
|
CONFLICTS= gnutls-devel-[0-9]*
|
|
|
|
|
2004-06-04 23:52:53 +02:00
|
|
|
USE_GPG?= yes
|
2004-10-13 11:08:06 +02:00
|
|
|
SIG_SUFFIX= .sig
|
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
|
|
|
|
USE_REINPLACE= yes
|
2004-10-13 11:08:06 +02:00
|
|
|
USE_INC_LIBTOOL_VER= 15
|
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
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-09-11 13:23:24 +02:00
|
|
|
CONFIGURE_ARGS= --with-included-lzo --disable-static
|
2003-09-29 16:38:03 +02:00
|
|
|
|
2004-03-09 00:43:20 +01:00
|
|
|
MAN1= certtool.1 gnutls-cli.1 gnutls-cli-debug.1 \
|
2004-09-10 10:15:53 +02:00
|
|
|
gnutls-serv.1 srptool.1
|
2003-09-24 11:06:54 +02:00
|
|
|
DOCS= AUTHORS NEWS README THANKS doc/tex/*.ps
|
|
|
|
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}
|
2003-09-24 11:06:54 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
|
2003-01-07 15:02:30 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|