@@ -38,8 +38,8 @@ def generate(self):
3838
3939 def build_requirements (self ):
4040 self .tool_requires ("meson/1.6.0" )
41- if self .settings .arch in ["x86" , "x86_64" ]:
42- self .tool_requires ("nasm/2.16.01" )
41+ # if self.settings.arch in ["x86", "x86_64"]:
42+ # self.tool_requires("nasm/2.16.01")
4343
4444 def build (self ):
4545 meson = Meson (self )
@@ -54,9 +54,13 @@ def package(self):
5454 def package_info (self ):
5555 self .cpp_info .libs = ["vmaf" ]
5656 self .cpp_info .includedirs = ["include" , os .path .join ("include" , "libvmaf" )]
57- if self .settings .os in ["Linux" , "FreeBSD" ]:
57+ if self .settings .os == "Windows" :
58+ # MinGW requires explicit linking of the C++ standard library and math library
59+ self .cpp_info .system_libs .extend (["m" , "stdc++" ])
60+ elif self .settings .os in ["Linux" , "FreeBSD" ]:
5861 self .cpp_info .system_libs .extend (["m" , "stdc++" ])
5962 elif self .settings .os == "Macos" :
6063 self .cpp_info .system_libs .append ("c++" )
6164 # This ensures FFmpeg's ./configure finds it easily
6265 self .cpp_info .set_property ("pkg_config_name" , "libvmaf" )
66+ self .cpp_info .set_property ("cmake_file_name" , "libvmaf" )
0 commit comments