Pārlūkot izejas kodu

bump libsndfile (#2637)

* bump libsndfile

* lame and mpg123 cannot be built on windows

* fix mingw
Yiheng Wu 2 gadi atpakaļ
vecāks
revīzija
ec4d8d8d74
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3 4
      packages/l/libsndfile/xmake.lua

+ 3 - 4
packages/l/libsndfile/xmake.lua

@@ -4,10 +4,9 @@ package("libsndfile")
     set_description("A C library for reading and writing sound files containing sampled audio data.")
     set_description("A C library for reading and writing sound files containing sampled audio data.")
     set_license("LGPL-2.1")
     set_license("LGPL-2.1")
 
 
-    add_urls("https://github.com/libsndfile/libsndfile/archive/$(version).tar.gz",
+    add_urls("https://github.com/libsndfile/libsndfile/archive/refs/tags/$(version).tar.gz",
              "https://github.com/libsndfile/libsndfile.git")
              "https://github.com/libsndfile/libsndfile.git")
-    add_versions("v1.0.30", "5942b963d1db3ed8ab1ffb85708322aa9637df76d9fe84e1dfe49a97a90e8f47")
-    add_versions("1.0.31", "a8cfb1c09ea6e90eff4ca87322d4168cdbe5035cb48717b40bf77e751cc02163")
+    add_versions("1.0.31", "8cdee0acb06bb0a3c1a6ca524575643df8b1f3a55a0893b4dd9f829d08263785")
 
 
     add_deps("cmake", "libflac", "libopus", "libvorbis", "libogg")
     add_deps("cmake", "libflac", "libopus", "libvorbis", "libogg")
 
 
@@ -25,7 +24,7 @@ package("libsndfile")
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
         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, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
 
 
-        if package:is_plat("windows") then
+        if package:is_plat("windows", "mingw") then
 
 
             -- libsndfile doesn't build well with a static libFLAC, this fixes it
             -- libsndfile doesn't build well with a static libFLAC, this fixes it
             if not package:dep("libflac"):config("shared") then
             if not package:dep("libflac"):config("shared") then