freebsd-ports/security/gnutls/Makefile
Roman Bogorodskiy ab635f152e - Add UPDATING entry for libtasn1 update
- Bump PORTREVISIONs for dependant ports
2013-02-06 17:30:08 +00:00

96 lines
2.1 KiB
Makefile

# New ports collection makefile for: gnutls
# Date created: 13 Nov 2002
# Whom: Sergei Kolobov <sergei@kolobov.com>
#
# $FreeBSD$
#
PORTNAME= gnutls
PORTVERSION= 2.12.23
PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= \
ftp://ftp.gnutls.org/gcrypt/gnutls/v${PORTVERSION:C/.[0-9]+$//}/
MAINTAINER= novel@FreeBSD.org
COMMENT= GNU Transport Layer Security library
LIB_DEPENDS= nettle:${PORTSDIR}/security/nettle \
gpg-error:${PORTSDIR}/security/libgpg-error \
p11-kit:${PORTSDIR}/security/p11-kit
CONFLICTS= gnutls-devel-[0-9]*
USE_BZIP2= yes
USE_ICONV= yes
USE_PKGCONFIG= build
USE_GNOME= ltverhack gnomehack
GNU_CONFIGURE= yes
MAKE_JOBS_SAFE= yes
USE_LDCONFIG= yes
USE_AUTOTOOLS= libtool
LIBTOOLFILES= configure lib/configure libextra/configure
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CPPFLAGS+= -fPIC
CONFIGURE_ARGS+= --disable-guile
MANCOMPRESSED= no
OPTIONS_DEFINE= LIBTASN1 CXX LZO NLS
LIBTASN1_DESC= Use system libtasn1 instead of local one
CXX_DESC= Install C++ library
LZO_DESC= LZO compression
OPTIONS_DEFAULT= LIBTASN1 CXX
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBTASN1}
LIB_DEPENDS+= tasn1:${PORTSDIR}/security/libtasn1
.else
CONFIGURE_ARGS+= --with-included-libtasn1
.endif
.if ${PORT_OPTIONS:MLZO}
LIB_DEPENDS+= lzo2:${PORTSDIR}/archivers/lzo2
CONFIGURE_ARGS+= --with-lzo
.endif
.if ${PORT_OPTIONS:MCXX}
CONFIGURE_ARGS+= --disable-cxx
PLIST_SUB+= CXX="@comment "
.else
PLIST_SUB+= CXX=""
.endif
.if ${PORT_OPTIONS:MNLS}
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
PORTDOCS= AUTHORS NEWS README THANKS
PORTEXAMPLES= *.c
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" -type f | ${XARGS} ${REINPLACE_CMD} \
-e 's|[$$][(]LTLIBPTHREAD[)]||g'
post-install:
.if !defined (NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES:C,^,doc/examples/,} \
${EXAMPLESDIR}
.endif
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
.include "Makefile.man"
.include <bsd.port.mk>