summaryrefslogtreecommitdiff
path: root/devel/pybind11_protobuf/Makefile
blob: 03c8fa3ebdcb8cdbed57ea0be2e96c647d0d6054 (plain) (blame)
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
PORTNAME=	pybind11_protobuf
PORTVERSION=	0.0.0.20240809
PORTREVISION=	7
CATEGORIES=	devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Pybind11 bindings for Google's Protocol Buffers
WWW=		https://github.com/pybind/pybind11_protobuf

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	abseil>=20230125:devel/abseil \
		pybind11>=2.11.1:devel/pybind11
LIB_DEPENDS=	libabsl_base.so:devel/abseil \
		libprotobuf.so:devel/protobuf
TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}absl-py>=0:devel/py-absl-py@${PY_FLAVOR}

USES=		cmake:testing compiler:c++17-lang localbase python

CFLAGS+=	-I${WRKSRC}
CMAKE_ARGS=	-DCMAKE_INSTALL_PYDIR=${PYTHON_SITELIBDIR}
CMAKE_OFF=	BUILD_TESTING
CMAKE_ON=	USE_SYSTEM_ABSEIL \
		USE_SYSTEM_PROTOBUF \
		USE_SYSTEM_PYBIND

USE_GITHUB=	yes
GH_ACCOUNT=	pybind
GH_TAGNAME=	f1b2459

.include <bsd.port.mk>