# New ports collection makefile for:	thrift
# Date created:	   27 September 2007
# Whom:		   Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD: ports/devel/thrift/Makefile,v 1.3 2007/11/03 23:36:42 gerald Exp $
#

PORTNAME=	thrift
PORTVERSION=	20070917
CATEGORIES=	devel
MASTER_SITES=	http://developers.facebook.com/thrift/

MAINTAINER=	skv@FreeBSD.org
COMMENT=	Framework for scalable cross-language services development

LIB_DEPENDS=	boost_iostreams:${PORTSDIR}/devel/boost \
		event:${PORTSDIR}/devel/libevent

USE_AUTOTOOLS=	libtool:15
USE_GCC=	4.2+
USE_LDCONFIG=	yes

CONFIGURE_ARGS=	--with-boost=${LOCALBASE} \
		--with-event=${LOCALBASE}
CONFIGURE_ENV+=	${MAKE_ENV}

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 600000
BROKEN=		Incorrect plist
.endif

post-patch:
	${REINPLACE_CMD} -i '' -e 's=lib/py ==' ${WRKSRC}/*.*

post-install:
.ifndef(NOPORTDOCS)
	@${ECHO_MSG} "===>   Installing documentation for ${PKGNAME}"
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/thrift.pdf ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
