diff options
-rw-r--r-- | benchmarks/vkoverhead/Makefile | 8 | ||||
-rw-r--r-- | benchmarks/vkoverhead/files/patch-meson.build | 34 |
2 files changed, 34 insertions, 8 deletions
diff --git a/benchmarks/vkoverhead/Makefile b/benchmarks/vkoverhead/Makefile index b54c28d4b6fd..1aa0f9f98c95 100644 --- a/benchmarks/vkoverhead/Makefile +++ b/benchmarks/vkoverhead/Makefile @@ -13,10 +13,6 @@ WWW= https://github.com/zmike/vkoverhead LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_armv7= fails to build due -Werror=int-conversion -BROKEN_i386= fails to build due -Werror=int-conversion -BROKEN_powerpc= fails to build due -Werror=int-conversion - BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mako>0:textproc/py-mako@${PY_FLAVOR} RUN_DEPENDS= vulkan-loader>0:graphics/vulkan-loader @@ -25,8 +21,4 @@ USE_GITHUB= yes GH_ACCOUNT= zmike PLIST_FILES= bin/${PORTNAME} -post-patch: -# Derive Python version from Meson - @${REINPLACE_CMD} -e "s,'python3',," ${WRKSRC}/meson.build - .include <bsd.port.mk> diff --git a/benchmarks/vkoverhead/files/patch-meson.build b/benchmarks/vkoverhead/files/patch-meson.build new file mode 100644 index 000000000000..fffe1d9e8492 --- /dev/null +++ b/benchmarks/vkoverhead/files/patch-meson.build @@ -0,0 +1,34 @@ +--- meson.build.orig 2025-10-04 17:26:23 UTC ++++ meson.build +@@ -34,7 +34,7 @@ null_dep = dependency('', required : false) + null_dep = dependency('', required : false) + + +-prog_python = import('python').find_installation('python3') ++prog_python = import('python').find_installation() + + # Arguments for the preprocessor, put these in a separate array from the C and + # C++ (cpp in meson terminology) arguments since they need to be added to the +@@ -208,11 +208,7 @@ else + cpp_args += cpp.get_supported_arguments(_trial) + else + _trial_c = [ +- '-Werror=implicit-function-declaration', +- '-Werror=return-type', +- '-Werror=empty-body', +- '-Werror=incompatible-pointer-types', +- '-Werror=int-conversion', ++ '-Wno-error=int-conversion', + '-Wimplicit-fallthrough', + '-Wno-missing-field-initializers', + '-Wno-format-truncation', +@@ -225,8 +221,7 @@ else + '-Wno-unused-function', + ] + _trial_cpp = [ +- '-Werror=return-type', +- '-Werror=empty-body', ++ '-Wno-error=int-conversion', + '-Wno-non-virtual-dtor', + '-Wno-missing-field-initializers', + '-Wno-format-truncation', |