freebsd-ports/devel/fb303/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= fb303
PORTVERSION= ${THRIFT_PORTVERSION}
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= APACHE/thrift/${PORTVERSION}
DISTNAME= thrift-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Facebook Bassline
LICENSE= APACHE20
LIB_DEPENDS= libthrift.so:${PORTSDIR}/devel/thrift-cpp
BUILD_DEPENDS= thrift:${PORTSDIR}/devel/thrift
ACLOCAL_ARGS= -I ./aclocal
AUTOMAKE_ARGS= -a
CONFIGURE_ARGS= PY_PREFIX="${PREFIX}"
USE_AUTOTOOLS= autoconf autoheader:env aclocal automake
USES= compiler gmake perl5 python
USE_PERL5= run
WRKSRC= ${WRKDIR}/${DISTNAME}/contrib/fb303
PLIST_SUB+= PORTVERSION="${PORTVERSION}" PYTHON_VER="${PYTHON_VER}"
CONFIGURE_ARGS+= --without-php
.include <bsd.port.pre.mk>
.if ${COMPILER_TYPE} == clang
USE_CXXSTD= c++11
EXTRA_PATCHES+= ${FILESDIR}/extra_patch-cpp__Makefile.am
.endif
post-build:
(cd ${WRKSRC} && ${LOCALBASE}/bin/thrift --gen perl ${WRKSRC}/if/fb303.thrift)
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
.for FILE in Constants.pm FacebookService.pm Types.pm
${INSTALL_DATA} ${WRKSRC}/gen-perl/Facebook/FB303/${FILE} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/Facebook/FB303
.endfor
.include "../thrift/bsd.thrift.mk"
.include <bsd.port.post.mk>