31 lines
984 B
Makefile
31 lines
984 B
Makefile
PORTNAME= grpcio
|
|
PORTVERSION= 1.49.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= vanilla@FreeBSD.org
|
|
COMMENT= HTTP/2-based RPC framework
|
|
WWW= https://pypi.org/project/grpcio/
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}protobuf>=3:devel/py-protobuf@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}six>1:devel/py-six@${PY_FLAVOR}
|
|
LIB_DEPENDS= libcares.so:dns/c-ares
|
|
|
|
USES= compiler:c++11-lib localbase:ldflags python:3.6+ ssl
|
|
USE_PYTHON= autoplist cython distutils
|
|
MAKE_ENV+= GRPC_PYTHON_BUILD_SYSTEM_CARES=true \
|
|
GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=true \
|
|
GRPC_PYTHON_BUILD_SYSTEM_ZLIB=true
|
|
LDFLAGS+= -lcares
|
|
|
|
post-patch:
|
|
@${RM} ${WRKSRC}/src/python/grpcio/grpc/_cython/cygrpc.cpp
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/grpc/_cython/cygrpc*.so
|
|
${REINPLACE_CMD} -e 's|^.*so$$|${PYTHONPREFIX_SITELIBDIR}/grpc/_cython/cygrpc${PYTHON_EXT_SUFFIX}.so|' ${_PYTHONPKGLIST}
|
|
|
|
.include <bsd.port.mk>
|