Prune devel/py-EnthoughtBase
[dports.git] / devel / fb303 / Makefile
1 # Created by: Gea-Suan Lin <gslin@gslin.org>
2 # $FreeBSD$
3
4 PORTNAME=       fb303
5 PORTVERSION=    ${THRIFT_PORTVERSION}
6 PORTREVISION=   1
7 PORTEPOCH=      1
8 CATEGORIES=     devel
9 MASTER_SITES=   APACHE/thrift/${PORTVERSION}
10 DISTNAME=       thrift-${PORTVERSION}
11
12 MAINTAINER=     ports@FreeBSD.org
13 COMMENT=        Facebook Bassline
14
15 LICENSE=        APACHE20
16
17 LIB_DEPENDS=    libthrift.so:${PORTSDIR}/devel/thrift-cpp
18 BUILD_DEPENDS=  thrift:${PORTSDIR}/devel/thrift
19
20 ACLOCAL_ARGS=   -I ./aclocal
21 AUTOMAKE_ARGS=  -a
22 CONFIGURE_ARGS= PY_PREFIX="${PREFIX}"
23 USE_AUTOTOOLS=  autoconf autoheader:env aclocal automake
24
25 USES=           compiler gmake perl5 python
26 USE_PERL5=      run
27 WRKSRC=         ${WRKDIR}/${DISTNAME}/contrib/fb303
28
29 PLIST_SUB+=     PORTVERSION="${PORTVERSION}" PYTHON_VER="${PYTHON_VER}"
30
31 CONFIGURE_ARGS+=        --without-php
32
33 DISTINFO_FILE=  ${PORTSDIR}/devel/thrift/distinfo
34
35 .include <bsd.port.pre.mk>
36
37 .if ${COMPILER_TYPE} == clang
38 USE_CXXSTD=     c++11
39 EXTRA_PATCHES+= ${FILESDIR}/extra_patch-cpp__Makefile.am
40 .endif
41
42 post-build:
43         (cd ${WRKSRC} && ${LOCALBASE}/bin/thrift --gen perl ${WRKSRC}/if/fb303.thrift)
44
45 post-install:
46         ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
47 .for FILE in Constants.pm FacebookService.pm Types.pm
48         ${INSTALL_DATA} ${WRKSRC}/gen-perl/Facebook/FB303/${FILE} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
49 .endfor
50
51 .include "../thrift/bsd.thrift.mk"
52 .include <bsd.port.post.mk>