freebsd-ports/security/gnutls/Makefile

75 lines
2 KiB
Makefile
Raw Normal View History

# 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>
#
# $FreeBSD$
#
PORTNAME= gnutls
PORTVERSION= 1.2.10
PORTREVISION= 3
CATEGORIES= security net
2003-02-15 12:18:08 +01:00
MASTER_SITES= ${MASTER_SITE_GNUPG} \
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/ \
ftp://ftp.gnutls.org/pub/gnutls/
2003-02-15 12:18:08 +01:00
MASTER_SITE_SUBDIR= alpha/gnutls
MAINTAINER= novel@FreeBSD.org
2003-02-21 14:28:59 +01:00
COMMENT= GNU Transport Layer Security library
LIB_DEPENDS= gcrypt.13:${PORTSDIR}/security/libgcrypt \
gpg-error.2:${PORTSDIR}/security/libgpg-error
.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.3)
LIB_DEPENDS+= tasn1.3:${PORTSDIR}/security/libtasn1
.endif
CONFLICTS= gnutls-devel-[0-9]*
2006-01-09 17:33:15 +01:00
USE_BZIP2= yes
USE_ICONV= yes
USE_GETTEXT= yes
USE_GNOME= pkgconfig
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
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"
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
2006-01-09 17:33:15 +01:00
CONFIGURE_ARGS+= --with-included-lzo
MANCOMPRESSED= no
.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
EXAMPLES= doc/examples/*.c
post-patch:
@${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}
2006-01-09 17:33:15 +01:00
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
2006-01-09 17:33:15 +01:00
.include "Makefile.man"
.include <bsd.port.post.mk>