Browse Source

Update libflac to v1.4.3 (#2228)

Jérôme Leclercq 2 years ago
parent
commit
02b7c2a4ea
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/l/libflac/xmake.lua

+ 6 - 0
packages/l/libflac/xmake.lua

@@ -6,8 +6,10 @@ package("libflac")
     set_urls("https://github.com/xiph/flac/archive/$(version).tar.gz",
     set_urls("https://github.com/xiph/flac/archive/$(version).tar.gz",
              "https://github.com/xiph/flac.git")
              "https://github.com/xiph/flac.git")
 
 
+    add_versions("1.4.3", "0a4bb82a30609b606650d538a804a7b40205366ce8fc98871b0ecf3fbb0611ee")
     add_versions("1.4.2", "8e8e0406fb9e1d177bb4ba8cfed3ca3935d37144eac8f0219a03e8c1ed5cc18e")
     add_versions("1.4.2", "8e8e0406fb9e1d177bb4ba8cfed3ca3935d37144eac8f0219a03e8c1ed5cc18e")
     add_versions("1.3.3", "668cdeab898a7dd43cf84739f7e1f3ed6b35ece2ef9968a5c7079fe9adfe1689")
     add_versions("1.3.3", "668cdeab898a7dd43cf84739f7e1f3ed6b35ece2ef9968a5c7079fe9adfe1689")
+    add_patches("1.4.3", path.join(os.scriptdir(), "patches", "1.4.2", "cmake.patch"), "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
     add_patches("1.4.2", path.join(os.scriptdir(), "patches", "1.4.2", "cmake.patch"), "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
     add_patches("1.4.2", path.join(os.scriptdir(), "patches", "1.4.2", "cmake.patch"), "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
     add_patches("1.3.3", path.join(os.scriptdir(), "patches", "1.3.3", "cmake.patch"), "49baa40ab70d63e74cfc3f0cc2f13824545a618ceaeffdd51d3333d90b37fd32")
     add_patches("1.3.3", path.join(os.scriptdir(), "patches", "1.3.3", "cmake.patch"), "49baa40ab70d63e74cfc3f0cc2f13824545a618ceaeffdd51d3333d90b37fd32")
     
     
@@ -44,6 +46,10 @@ package("libflac")
         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"))
         table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
         table.insert(configs, "-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
         table.insert(configs, "-DINSTALL_MANPAGES=OFF")
         table.insert(configs, "-DINSTALL_MANPAGES=OFF")
+        if package:is_plat("wasm") then
+            -- wasm doesn't support stack protector
+            table.insert(configs, "-DWITH_STACK_PROTECTOR=OFF")
+        end
 
 
         -- fix, undefined reference to `__memset_chk'
         -- fix, undefined reference to `__memset_chk'
         -- @see https://github.com/msys2/MINGW-packages/issues/5803
         -- @see https://github.com/msys2/MINGW-packages/issues/5803