2013-02-26 17:20:16 +01:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
2009-09-25 20:23:56 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= fb303
|
2012-01-08 02:16:06 +01:00
|
|
|
PORTVERSION= ${THRIFT_PORTVERSION}
|
2014-11-26 14:08:24 +01:00
|
|
|
PORTREVISION= 1
|
2011-12-08 12:08:02 +01:00
|
|
|
PORTEPOCH= 1
|
2009-09-25 20:23:56 +02:00
|
|
|
CATEGORIES= devel
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= APACHE/thrift/${PORTVERSION}
|
2009-09-25 20:23:56 +02:00
|
|
|
DISTNAME= thrift-${PORTVERSION}
|
|
|
|
|
2014-08-26 21:34:08 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-03-13 07:51:06 +01:00
|
|
|
COMMENT= Facebook Bassline
|
2009-09-25 20:23:56 +02:00
|
|
|
|
2013-12-30 21:55:18 +01:00
|
|
|
LICENSE= APACHE20
|
2012-01-08 02:16:06 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libthrift.so:devel/thrift-cpp
|
|
|
|
BUILD_DEPENDS= thrift:devel/thrift
|
2009-09-25 20:23:56 +02:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= PY_PREFIX="${PREFIX}"
|
2013-11-09 16:19:58 +01:00
|
|
|
|
2017-12-23 17:13:22 +01:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USES= autoreconf compiler gmake perl5 python:2.7
|
2013-09-07 17:51:29 +02:00
|
|
|
USE_PERL5= run
|
2009-09-25 20:23:56 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/contrib/fb303
|
|
|
|
|
2013-03-13 07:51:06 +01:00
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}" PYTHON_VER="${PYTHON_VER}"
|
2013-02-26 17:20:16 +01:00
|
|
|
|
2013-11-09 16:19:58 +01:00
|
|
|
CONFIGURE_ARGS+= --without-php
|
|
|
|
|
2015-10-26 18:41:23 +01:00
|
|
|
DISTINFO_FILE= ${PORTSDIR}/devel/thrift/distinfo
|
|
|
|
|
2013-11-09 16:19:58 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${COMPILER_TYPE} == clang
|
|
|
|
USE_CXXSTD= c++11
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra_patch-cpp__Makefile.am
|
|
|
|
.endif
|
|
|
|
|
2009-10-11 11:00:39 +02:00
|
|
|
post-build:
|
|
|
|
(cd ${WRKSRC} && ${LOCALBASE}/bin/thrift --gen perl ${WRKSRC}/if/fb303.thrift)
|
|
|
|
|
|
|
|
post-install:
|
2014-08-26 21:34:08 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
|
2009-10-11 11:00:39 +02:00
|
|
|
.for FILE in Constants.pm FacebookService.pm Types.pm
|
2014-08-26 21:34:08 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gen-perl/Facebook/FB303/${FILE} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
|
2009-10-11 11:00:39 +02:00
|
|
|
.endfor
|
|
|
|
|
2012-01-08 02:16:06 +01:00
|
|
|
.include "../thrift/bsd.thrift.mk"
|
2014-06-06 23:35:21 +02:00
|
|
|
.include <bsd.port.post.mk>
|