diff --git a/multimedia/librist/Makefile b/multimedia/librist/Makefile index 5425742c1340..15e58b2e2339 100644 --- a/multimedia/librist/Makefile +++ b/multimedia/librist/Makefile @@ -1,34 +1,32 @@ PORTNAME= librist DISTVERSION= 0.2.10 CATEGORIES= multimedia MAINTAINER= yuri@FreeBSD.org COMMENT= Library for Reliable Internet Stream Transport (RIST) protocol WWW= https://code.videolan.org/rist/librist LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_15= compilation fails, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280210 - LIB_DEPENDS= libcjson.so:devel/libcjson \ libmbedcrypto.so:security/mbedtls \ libmicrohttpd.so:www/libmicrohttpd USES= localbase:ldflags meson pkgconfig USE_GITLAB= yes USE_LDCONFIG= yes GL_SITE= https://code.videolan.org GL_ACCOUNT= rist GL_TAGNAME= 1e805500dc14a507598cebdd49557c32e514899f MESON_ARGS= -Dtest=false do-test: @cd ${WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${CONFIGURE_CMD} --reconfigure ${CONFIGURE_ARGS} -Dtest=true && \ cd ${BUILD_WRKSRC} && \ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} test .include diff --git a/multimedia/librist/files/patch-meson.build b/multimedia/librist/files/patch-meson.build new file mode 100644 index 000000000000..2c4a0ba547cf --- /dev/null +++ b/multimedia/librist/files/patch-meson.build @@ -0,0 +1,23 @@ +- workaround for https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280210 +- code uses the c11 feature stdatomic.h while it uses --std=c99 + +--- meson.build.orig 2024-07-09 22:00:05 UTC ++++ meson.build +@@ -5,7 +5,7 @@ project('libRIST', 'c', + + project('libRIST', 'c', + version: '0.2.10', +- default_options: ['c_std=c99', 'warning_level=3', 'libdir=lib'], ++ default_options: ['c_std=c11', 'warning_level=3', 'libdir=lib'], + meson_version: '>= 0.51.0') + + cc = meson.get_compiler('c') +@@ -374,7 +374,7 @@ if get_option('static_analyze') + if get_option('static_analyze') + run_target('cppcheck', command : ['cppcheck', + '--quiet', +- '--std=c99', ++ '--std=c11', + '--suppressions-list=' + join_paths(meson.source_root(), 'common/configs/cppcheck-suppressions.txt'), + '--project=' + join_paths(meson.build_root(), + 'compile_commands.json')])