freebsd-ports/net/scribe/Makefile
William Grzybowski 862db4d9fe net/scribe: fix build
- Fix build with automake [1]
- USES gmake perl5
- Allow staging
- Convert lib depends to new format

PR:		ports/182597 [1]
Submitted by:	Stephon Chen <stephon gmail.com>
Approved by:	maintainer
2013-11-02 22:37:52 +00:00

45 lines
1.4 KiB
Makefile

# Created by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
# $FreeBSD$
PORTNAME= scribe
DISTVERSION= 2.2.2012.01.07
PORTREVISION= 3
CATEGORIES= net
MASTER_SITES= https://github.com/facebook/scribe/tarball/${GITVERSION}/
DISTNAME= facebook-scribe-${GITVERSION}
MAINTAINER= jnlin@csie.nctu.edu.tw
COMMENT= Aggregating log data streamed in real time
BUILD_DEPENDS= fb303>0:${PORTSDIR}/devel/fb303
LIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \
libevent.so:${PORTSDIR}/devel/libevent \
libthrift.so:${PORTSDIR}/devel/thrift
RUN_DEPENDS= p5-Class-Accessor>0:${PORTSDIR}/devel/p5-Class-Accessor \
p5-Thrift>0:${PORTSDIR}/devel/p5-Thrift \
${PYTHON_SITELIBDIR}/thrift/__init__.py:${PORTSDIR}/devel/py-thrift
GITVERSION= 63e4824
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/${DISTNAME}
ACLOCAL_ARGS= -I ./aclocal
AUTOMAKE_ARGS= -a
CONFIGURE_ARGS= --with-boost-filesystem=boost_filesystem \
--with-boost-system=boost_system \
PY_PREFIX="${PREFIX}"
USE_AUTOTOOLS= aclocal automake autoconf
USE_PYTHON= yes
USE_RC_SUBR= ${PORTNAME}
USES= gmake perl5
post-build:
${LOCALBASE}/bin/thrift -o ${WRKSRC} -I ${LOCALBASE}/share --gen "perl" ${WRKSRC}/if/scribe.thrift
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Scribe/Thrift
cd ${WRKSRC}/gen-perl && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>