diff --git a/multimedia/vmaf/Makefile b/multimedia/vmaf/Makefile index 33cb60a3ded0..1594d4390525 100644 --- a/multimedia/vmaf/Makefile +++ b/multimedia/vmaf/Makefile @@ -1,32 +1,33 @@ PORTNAME= vmaf DISTVERSIONPREFIX= v DISTVERSION= 3.0.0-rc +PORTREVISION= 1 CATEGORIES= multimedia MAINTAINER= jbeich@FreeBSD.org COMMENT= Perceptual video quality assessment based on multi-method fusion WWW= https://github.com/Netflix/vmaf LICENSE= BSD2CLAUSE+PATENT LICENSE_GROUPS= FSF OSI COPYFREE LICENSE_NAME= BSD-2-Clause Plus Patent License LICENSE_FILE= ${WRKSRC:H}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS= xxd:sysutils/xxd \ ${BUILD_DEPENDS_${ARCH}} BUILD_DEPENDS_amd64= nasm:devel/nasm BUILD_DEPENDS_i386= nasm:devel/nasm USES= compiler:c++11-lib meson USE_GITHUB= yes USE_LDCONFIG= yes GH_ACCOUNT= Netflix WRKSRC_SUBDIR= lib${PORTNAME} post-install: # For legacy API consumers e.g., aom, x265 (cd ${WRKSRC:H} && ${COPYTREE_SHARE} "model" \ ${STAGEDIR}${DATADIR:H} "-name *.json") .include diff --git a/multimedia/vmaf/files/patch-meson.build b/multimedia/vmaf/files/patch-meson.build new file mode 100644 index 000000000000..0843e2f267a1 --- /dev/null +++ b/multimedia/vmaf/files/patch-meson.build @@ -0,0 +1,22 @@ +../src/feature/feature_collector.c:72:36: error: call to undeclared function 'strnlen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 72 | const size_t feature_name_sz = strnlen(feature_name, 2048); + | ^ +../src/feature/feature_name.c:34:24: error: call to undeclared function 'strnlen'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] + 34 | const size_t len = strnlen(buf, buf_sz); + | ^ +../tools/cli_parse.c:194:21: error: incompatible integer to pointer conversion assigning to 'char *' from 'int' [-Wint-conversion] + while ((key_val = strsep(&optarg_copy, ":")) != NULL) { + ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ + +--- meson.build.orig 2023-11-20 19:15:15 UTC ++++ meson.build +@@ -26,9 +26,6 @@ elif host_machine.system() == 'darwin' + elif host_machine.system() == 'darwin' + test_args += '-D_DARWIN_C_SOURCE' + add_project_arguments('-D_DARWIN_C_SOURCE', language: 'c') +-else +- test_args += '-D_XOPEN_SOURCE=600' +- add_project_arguments('-D_XOPEN_SOURCE=600', language: 'c') + endif + + # Header checks