From 9d75cfcdb324ee45f0e556c522d042c120d78c91 Mon Sep 17 00:00:00 2001 From: Seedking <875828815@qq.com> Date: Sat, 16 Mar 2024 11:39:38 +0800 Subject: [PATCH 1/4] update libopus --- packages/l/libopus/xmake.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/l/libopus/xmake.lua b/packages/l/libopus/xmake.lua index 05eb6651cb4..ed810e2caae 100644 --- a/packages/l/libopus/xmake.lua +++ b/packages/l/libopus/xmake.lua @@ -4,9 +4,12 @@ package("libopus") set_description("Modern audio compression for the internet.") set_urls("https://gitlab.xiph.org/xiph/opus/-/archive/v$(version)/opus-v$(version).tar.gz", + "https://downloads.xiph.org/releases/opus/opus-$(version).tar.gz", "https://gitlab.xiph.org/xiph/opus.git", "https://github.com/xiph/opus.git") + add_versions("1.5.1", "b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85") + add_versions("1.5", "d8230bbeb99e6d558645aaad25d79de8f4f28fdcc55f8af230050586d62c4f2c") add_versions("1.4", "cf7c31577c384e1dc17a6f57e8460e520d135ab9e0b9068543dd657e25e7da1f") add_versions("1.3.1", "a4ef56e2c8fce5dba63f6db1f671e3fa5b18299d953975b6636fee211ddc882a") add_patches("1.3.1", path.join(os.scriptdir(), "patches", "1.3.1", "cmake.patch"), "79fba5086d7747d0441f7f156b88e932b662e2d2ccd825279a5a396a2840d3a2") From 263f00e3f684dbdc2a0dfff7600cf48ee192cd89 Mon Sep 17 00:00:00 2001 From: Seedking <875828815@qq.com> Date: Fri, 22 Mar 2024 15:09:30 +0800 Subject: [PATCH 2/4] Update xmake.lua --- packages/l/libopus/xmake.lua | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/packages/l/libopus/xmake.lua b/packages/l/libopus/xmake.lua index ed810e2caae..6d94c93fb1f 100644 --- a/packages/l/libopus/xmake.lua +++ b/packages/l/libopus/xmake.lua @@ -3,16 +3,30 @@ package("libopus") set_homepage("https://opus-codec.org") set_description("Modern audio compression for the internet.") - set_urls("https://gitlab.xiph.org/xiph/opus/-/archive/v$(version)/opus-v$(version).tar.gz", - "https://downloads.xiph.org/releases/opus/opus-$(version).tar.gz", + add_urls("https://downloads.xiph.org/releases/opus/opus-$(version).tar.gz", + {alias = "home"}) + add_urls("https://gitlab.xiph.org/xiph/opus/-/archive/v$(version)/opus-v$(version).tar.gz", "https://gitlab.xiph.org/xiph/opus.git", - "https://github.com/xiph/opus.git") - - add_versions("1.5.1", "b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85") - add_versions("1.5", "d8230bbeb99e6d558645aaad25d79de8f4f28fdcc55f8af230050586d62c4f2c") - add_versions("1.4", "cf7c31577c384e1dc17a6f57e8460e520d135ab9e0b9068543dd657e25e7da1f") - add_versions("1.3.1", "a4ef56e2c8fce5dba63f6db1f671e3fa5b18299d953975b6636fee211ddc882a") - add_patches("1.3.1", path.join(os.scriptdir(), "patches", "1.3.1", "cmake.patch"), "79fba5086d7747d0441f7f156b88e932b662e2d2ccd825279a5a396a2840d3a2") + {alias = "gitlab"}) + add_urls("https://github.com/xiph/opus/archive/refs/tags/v$(version).tar.gz", + "https://github.com/xiph/opus.git", + {alias = "github"}) + + add_versions("home:1.5.1", "b84610959b8d417b611aa12a22565e0a3732097c6389d19098d844543e340f85") + add_versions("home:1.5", "d8230bbeb99e6d558645aaad25d79de8f4f28fdcc55f8af230050586d62c4f2c") + add_versions("home:1.4", "c9b32b4253be5ae63d1ff16eea06b94b5f0f2951b7a02aceef58e3a3ce49c51f") + add_versions("home:1.3.1", "65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d") + + add_versions("gitlab:1.5.1", "e759a2ece89da2fe039c578d53a5ba36786b19c6c568504fe11d8435369fa42a") + add_versions("gitlab:1.2", "5b920873a8d747af72692f933d5f9f10e414827e15ead338528b3c59bf42185f") + add_versions("gitlab:1.4", "cf7c31577c384e1dc17a6f57e8460e520d135ab9e0b9068543dd657e25e7da1f") + add_versions("gitlab:1.3.1", "a4ef56e2c8fce5dba63f6db1f671e3fa5b18299d953975b6636fee211ddc882a") + + add_versions("github:1.5.1", "7ce44ef3d335a3268f26be7d53bb3bed7205b34eaf80bf92a99e69d490afe9d9") + add_versions("github:1.5", "d7de528957dde0ba40e9dec9e25b679232bfaf19fb6a02ed8358845007d7075e") + add_versions("github:1.4", "659e6b223e42a51b0a898632b9a5f406ccd5c2e00aa526ddd1264789774b94e5") + add_versions("github:1.3.1", "4834a8944c33a7ecab5cad9454eeabe4680ca1842cb8f5a2437572dbf636de8f") + --add_patches("1.3.1", path.join(os.scriptdir(), "patches", "1.3.1", "cmake.patch"), "79fba5086d7747d0441f7f156b88e932b662e2d2ccd825279a5a396a2840d3a2") add_configs("avx", { description = "AVX supported", default = true, type = "boolean" }) add_configs("check_avx", { description = "Does runtime check for AVX support", default = true, type = "boolean" }) From f8e38e1f0dff5a5f88f5ed0f9cab5bc163bedfa6 Mon Sep 17 00:00:00 2001 From: Seedking <875828815@qq.com> Date: Fri, 22 Mar 2024 15:32:32 +0800 Subject: [PATCH 3/4] Update xmake.lua --- packages/l/libopus/xmake.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/l/libopus/xmake.lua b/packages/l/libopus/xmake.lua index 6d94c93fb1f..781f5abe306 100644 --- a/packages/l/libopus/xmake.lua +++ b/packages/l/libopus/xmake.lua @@ -5,9 +5,6 @@ package("libopus") add_urls("https://downloads.xiph.org/releases/opus/opus-$(version).tar.gz", {alias = "home"}) - add_urls("https://gitlab.xiph.org/xiph/opus/-/archive/v$(version)/opus-v$(version).tar.gz", - "https://gitlab.xiph.org/xiph/opus.git", - {alias = "gitlab"}) add_urls("https://github.com/xiph/opus/archive/refs/tags/v$(version).tar.gz", "https://github.com/xiph/opus.git", {alias = "github"}) @@ -17,11 +14,6 @@ package("libopus") add_versions("home:1.4", "c9b32b4253be5ae63d1ff16eea06b94b5f0f2951b7a02aceef58e3a3ce49c51f") add_versions("home:1.3.1", "65b58e1e25b2a114157014736a3d9dfeaad8d41be1c8179866f144a2fb44ff9d") - add_versions("gitlab:1.5.1", "e759a2ece89da2fe039c578d53a5ba36786b19c6c568504fe11d8435369fa42a") - add_versions("gitlab:1.2", "5b920873a8d747af72692f933d5f9f10e414827e15ead338528b3c59bf42185f") - add_versions("gitlab:1.4", "cf7c31577c384e1dc17a6f57e8460e520d135ab9e0b9068543dd657e25e7da1f") - add_versions("gitlab:1.3.1", "a4ef56e2c8fce5dba63f6db1f671e3fa5b18299d953975b6636fee211ddc882a") - add_versions("github:1.5.1", "7ce44ef3d335a3268f26be7d53bb3bed7205b34eaf80bf92a99e69d490afe9d9") add_versions("github:1.5", "d7de528957dde0ba40e9dec9e25b679232bfaf19fb6a02ed8358845007d7075e") add_versions("github:1.4", "659e6b223e42a51b0a898632b9a5f406ccd5c2e00aa526ddd1264789774b94e5") From 91d67af2ef4eb7279060d199963bc853d91414e0 Mon Sep 17 00:00:00 2001 From: Seedking <875828815@qq.com> Date: Sat, 23 Mar 2024 13:03:53 +0800 Subject: [PATCH 4/4] Update xmake.lua --- packages/l/libopus/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/l/libopus/xmake.lua b/packages/l/libopus/xmake.lua index 781f5abe306..68dc0ef9431 100644 --- a/packages/l/libopus/xmake.lua +++ b/packages/l/libopus/xmake.lua @@ -18,7 +18,7 @@ package("libopus") add_versions("github:1.5", "d7de528957dde0ba40e9dec9e25b679232bfaf19fb6a02ed8358845007d7075e") add_versions("github:1.4", "659e6b223e42a51b0a898632b9a5f406ccd5c2e00aa526ddd1264789774b94e5") add_versions("github:1.3.1", "4834a8944c33a7ecab5cad9454eeabe4680ca1842cb8f5a2437572dbf636de8f") - --add_patches("1.3.1", path.join(os.scriptdir(), "patches", "1.3.1", "cmake.patch"), "79fba5086d7747d0441f7f156b88e932b662e2d2ccd825279a5a396a2840d3a2") + add_patches("1.3.1", path.join(os.scriptdir(), "patches", "1.3.1", "cmake.patch"), "79fba5086d7747d0441f7f156b88e932b662e2d2ccd825279a5a396a2840d3a2") add_configs("avx", { description = "AVX supported", default = true, type = "boolean" }) add_configs("check_avx", { description = "Does runtime check for AVX support", default = true, type = "boolean" })