Auto-update libsndfile to 1.2.2 (#2657)

* Update libsndfile to 1.2.2

* Update xmake.lua
pull/2678/head
Jérôme Leclercq 1 year ago committed by GitHub
parent 0024cb4db7
commit ec225eb2c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      packages/l/libsndfile/xmake.lua

@ -6,6 +6,7 @@ package("libsndfile")
add_urls("https://github.com/libsndfile/libsndfile/archive/refs/tags/$(version).tar.gz",
"https://github.com/libsndfile/libsndfile.git")
add_versions("1.2.2", "ffe12ef8add3eaca876f04087734e6e8e029350082f3251f565fa9da55b52121")
add_versions("1.0.31", "8cdee0acb06bb0a3c1a6ca524575643df8b1f3a55a0893b4dd9f829d08263785")
add_deps("cmake", "libflac", "libopus", "libvorbis", "libogg")
@ -23,9 +24,9 @@ package("libsndfile")
table.insert(configs, "-DBUILD_TESTING=OFF")
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DENABLE_MPEG=OFF")
if package:is_plat("windows", "mingw") then
-- libsndfile doesn't build well with a static libFLAC, this fixes it
if not package:dep("libflac"):config("shared") then
local cmake = io.open("CMakeLists.txt", "a")

Loading…
Cancel
Save