ports/devel/py-grpcio/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

35 lines
1 KiB
Makefile

# Created by: vanilla@
# $FreeBSD$
PORTNAME= grpcio
PORTVERSION= 1.22.0
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= vanilla@FreeBSD.org
COMMENT= HTTP/2-based RPC framework
LICENSE= APACHE20
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>1:devel/py-six@${PY_FLAVOR} \
${PY_ENUM34} \
${PY_FUTURES} \
${PYTHON_PKGNAMEPREFIX}protobuf>=3:devel/py-protobuf@${PY_FLAVOR}
LIB_DEPENDS= libcares.so:dns/c-ares
USES= compiler:c++11-lib localbase:ldflags python
USE_PYTHON= autoplist distutils
MAKE_ENV+= GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true \
GRPC_PYTHON_BUILD_SYSTEM_CARES=true
CFLAGS+= -Ithird_party/boringssl/include
CFLAGS_powerpc64= -maltivec -mvsx
CFLAGS_powerpc= -maltivec
LDFLAGS+= -lcares
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/grpc/_cython/cygrpc.so
${REINPLACE_CMD} -e 's|${PYTHONPREFIX_SITELIBDIR}/\(.*\)/grpcio/grpc/_cython/cygrpc.so|${PYTHONPREFIX_SITELIBDIR}/grpc/_cython/cygrpc.so|g' ${_PYTHONPKGLIST}
.include <bsd.port.mk>