Skip to content

Commit

Permalink
Updates libsndfile to use new libsndio dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
spiderkeys committed Mar 13, 2024
1 parent bfe2c43 commit 3f9f55c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/libsndfile/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def layout(self):
cmake_layout(self, src_folder="src")

def requirements(self):
self.requires("libsndio/1.9.0")
if self.options.get_safe("with_alsa"):
self.requires("libalsa/1.2.10")
if self.options.with_external_libs:
Expand All @@ -73,7 +74,6 @@ def source(self):

def generate(self):
tc = CMakeToolchain(self)
tc.variables["CMAKE_DISABLE_FIND_PACKAGE_Sndio"] = True # FIXME: missing sndio cci recipe (check whether it is really required)
tc.variables["CMAKE_DISABLE_FIND_PACKAGE_Speex"] = True # FIXME: missing sndio cci recipe (check whether it is really required)
tc.variables["CMAKE_DISABLE_FIND_PACKAGE_SQLite3"] = True # only used for regtest
tc.variables["ENABLE_EXTERNAL_LIBS"] = self.options.with_external_libs
Expand Down Expand Up @@ -122,6 +122,7 @@ def package_info(self):
self.cpp_info.set_property("pkg_config_name", "sndfile")
# TODO: back to global scope in conan v2 once cmake_find_package_* generators removed
self.cpp_info.components["sndfile"].libs = ["sndfile"]
self.cpp_info.components["sndfile"].requires.append("libsndio::libsndio")
if self.options.with_external_libs:
self.cpp_info.components["sndfile"].requires.extend([
"ogg::ogg", "vorbis::vorbismain", "vorbis::vorbisenc",
Expand Down

0 comments on commit 3f9f55c

Please sign in to comment.