1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/security/gnutls/Makefile
Pav Lucistnik 3c87dd26c7 - Fix the patch for CVE-2008-4989 not to cause segfaults on runtime anymore
PR:		ports/128868
Obtained from:	vendor
2008-11-19 10:36:46 +00:00

93 lines
2.4 KiB
Makefile

# New ports collection makefile for: gnutls
# Date created: 13 Nov 2002
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= gnutls
PORTVERSION= 2.4.2
PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= http://josefsson.org/gnutls/releases/ \
ftp://ftp.gnutls.org/pub/gnutls/ \
${MASTER_SITE_GNUPG} \
http://www.mirrors.wiretapped.net/security/network-security/gnutls/ \
ftp://ftp.mirrors.wiretapped.net/security/network-security/gnutls/
MASTER_SITE_SUBDIR= alpha/gnutls
MAINTAINER= novel@FreeBSD.org
COMMENT= GNU Transport Layer Security library
LIB_DEPENDS= gcrypt.15:${PORTSDIR}/security/libgcrypt \
gpg-error.0:${PORTSDIR}/security/libgpg-error
CONFLICTS= gnutls-devel-[0-9]*
USE_BZIP2= yes
USE_ICONV= yes
USE_GNOME= pkgconfig ltverhack
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool:15
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -fPIC" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+= --with-included-lzo --disable-guile
MANCOMPRESSED= no
.include <bsd.port.pre.mk>
.if (defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.10)) && !defined(WITHOUT_OPENCDK)
LIB_DEPENDS+= opencdk.10:${PORTSDIR}/security/opencdk
.else
CONFIGURE_ARGS+= --with-included-opencdk
.endif
.if (defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.3)) && !defined(WITHOUT_LIBTASN1)
LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1
.else
CONFIGURE_ARGS+= --with-included-libtasn1
.endif
.if ${OSVERSION} < 600000
BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
CONFIGURE_ENV+= MAKEINFO="${LOCALBASE}/bin/makeinfo"
.endif
.if defined(WITHOUT_CXX)
CONFIGURE_ARGS+= --disable-cxx
PLIST_SUB+= CXX="@comment "
.else
PLIST_SUB+= CXX=""
.endif
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= AUTHORS NEWS README THANKS
.endif
EXAMPLES= doc/examples/*.c
pre-configure:
@${REINPLACE_CMD} -e 's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \
${WRKSRC}/lib/Makefile.in ${WRKSRC}/libextra/Makefile.in
post-install:
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include "Makefile.man"
.include <bsd.port.post.mk>