diff --git a/devel/avro-cpp/Makefile b/devel/avro-cpp/Makefile index 84f0f36a00b2..373b34492473 100644 --- a/devel/avro-cpp/Makefile +++ b/devel/avro-cpp/Makefile @@ -1,34 +1,35 @@ PORTNAME= avro PORTVERSION= 1.12.0 PORTREVISION= 4 CATEGORIES= devel MASTER_SITES= APACHE/avro/avro-${PORTVERSION}/cpp PKGNAMESUFFIX= -cpp DISTNAME= avro-cpp-${PORTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= C++ library for Apache Avro WWW= https://avro.apache.org/ \ https://github.com/apache/avro +BROKEN= Lots of cmake warnings, does not find snappy, does not link libfmt dynamically + LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= libfmt>=10.2.1<10.2.1_99:devel/libfmt LIB_DEPENDS= libboost_regex.so:devel/boost-libs \ libfmt.so:devel/libfmt \ libsnappy.so:archivers/snappy USES= cmake compiler:c++17-lang cpe USE_CXXSTD= c++17 USE_LDCONFIG= yes PLIST_SUB= PORTVERSION=${PORTVERSION} CPE_VENDOR= apache post-install: ${LN} -s libavrocpp.so.${PORTVERSION} ${STAGEDIR}${PREFIX}/lib/libavrocpp.so.1 .include diff --git a/devel/avro-cpp/files/patch-include_avro_Node.hh b/devel/avro-cpp/files/patch-include_avro_Node.hh new file mode 100644 index 000000000000..bf11578b713f --- /dev/null +++ b/devel/avro-cpp/files/patch-include_avro_Node.hh @@ -0,0 +1,11 @@ +--- include/avro/Node.hh.orig 2024-07-26 07:46:40 UTC ++++ include/avro/Node.hh +@@ -219,7 +219,7 @@ struct fmt::formatter : fmt::formatter + struct fmt::formatter : fmt::formatter { + template +- auto format(const avro::Name &n, FormatContext &ctx) { ++ auto format(const avro::Name &n, FormatContext &ctx) const { + return fmt::formatter::format(n.fullname(), ctx); + } + }; diff --git a/devel/avro-cpp/files/patch-include_avro_Types.hh b/devel/avro-cpp/files/patch-include_avro_Types.hh new file mode 100644 index 000000000000..097457641fe8 --- /dev/null +++ b/devel/avro-cpp/files/patch-include_avro_Types.hh @@ -0,0 +1,11 @@ +--- include/avro/Types.hh.orig 2024-07-26 07:46:40 UTC ++++ include/avro/Types.hh +@@ -113,7 +113,7 @@ struct fmt::formatter : fmt::formatter + struct fmt::formatter : fmt::formatter { + template +- auto format(avro::Type t, FormatContext &ctx) { ++ auto format(avro::Type t, FormatContext &ctx) const { + return fmt::formatter::format(avro::toString(t), ctx); + } + };