addConfigureArgs( '-DWEBP_BUILD_EXTRAS=OFF', '-DWEBP_ENABLE_SIMD=' . ($has_avx2 ? 'ON' : 'OFF'), ) ->build(); // patch pkgconfig $this->patchPkgconfPrefix(patch_option: PKGCONF_PATCH_PREFIX | PKGCONF_PATCH_LIBDIR); $this->patchPkgconfPrefix(['libsharpyuv.pc'], PKGCONF_PATCH_CUSTOM, ['/^includedir=.*$/m', 'includedir=${prefix}/include/webp']); } }