blob: 7cbd156acbab92b142c3390ef1875a4308d03bd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# $NetBSD: Makefile,v 1.63 2022/12/09 10:45:06 adam Exp $
DISTNAME= protobuf-4.21.11
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/protobuf/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://developers.google.com/protocol-buffers/
COMMENT= Python bindings for protobuf
LICENSE= modified-bsd
USE_LANGUAGES+= c c++11
PYTHON_VERSIONS_INCOMPATIBLE= 27
MAKE_ENV+= PROTOC=${PREFIX}/bin/protoc
PLIST_VARS+= cpp
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} != 311
# As of 4.21.9, the sources do contain outdated code that only supports Python < 3.11
# https://github.com/protocolbuffers/protobuf/issues/11031#issuecomment-1321390551
# Do not use C++ implementation for Python 3.11.
PYSETUPBUILDARGS= --cpp_implementation
PYSETUPINSTALLARGS= --cpp_implementation
PLIST.cpp= yes
.include "../../devel/protobuf/buildlink3.mk"
.endif
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|