|
@@ -6,13 +6,19 @@ 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.5.0", "aea54ed186ad07a34750399cb27fc216a2b62d0ffcd6dc2e3064a3518c3146f8")
|
|
add_versions("1.4.3", "0a4bb82a30609b606650d538a804a7b40205366ce8fc98871b0ecf3fbb0611ee")
|
|
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.5.0", "patches/1.5.0/cmake.patch", "6ce0ff5c6e8be0a68d4abaf9c0801f988f5cb600228ee9e2db812adf6e4cf3c1")
|
|
add_patches("1.4.3", "patches/1.4.2/cmake.patch", "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
|
|
add_patches("1.4.3", "patches/1.4.2/cmake.patch", "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
|
|
add_patches("1.4.2", "patches/1.4.2/cmake.patch", "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
|
|
add_patches("1.4.2", "patches/1.4.2/cmake.patch", "0a99382d5d7bd33078572b6cc3af08ee7e5e3618c80754a5fdc400bd69f4e470")
|
|
add_patches("1.3.3", "patches/1.3.3/cmake.patch", "49baa40ab70d63e74cfc3f0cc2f13824545a618ceaeffdd51d3333d90b37fd32")
|
|
add_patches("1.3.3", "patches/1.3.3/cmake.patch", "49baa40ab70d63e74cfc3f0cc2f13824545a618ceaeffdd51d3333d90b37fd32")
|
|
|
|
|
|
|
|
+ if is_plat("android") then
|
|
|
|
+ add_patches("1.5.0", "patches/1.5.0/android_fseek.diff", "75377f3a309094d91ff2e56727df09a00baa23cbec44b03193253cfec9b5324a")
|
|
|
|
+ end
|
|
|
|
+
|
|
if is_plat("mingw") and is_subhost("msys") then
|
|
if is_plat("mingw") and is_subhost("msys") then
|
|
add_extsources("pacman::flac")
|
|
add_extsources("pacman::flac")
|
|
elseif is_plat("linux") then
|
|
elseif is_plat("linux") then
|
|
@@ -21,6 +27,10 @@ package("libflac")
|
|
add_extsources("brew::flac")
|
|
add_extsources("brew::flac")
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+ if is_plat("wasm") then
|
|
|
|
+ add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
|
|
|
|
+ end
|
|
|
|
+
|
|
add_deps("cmake", "libogg")
|
|
add_deps("cmake", "libogg")
|
|
|
|
|
|
if is_plat("linux") then
|
|
if is_plat("linux") then
|
|
@@ -34,7 +44,6 @@ package("libflac")
|
|
end)
|
|
end)
|
|
|
|
|
|
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", function (package)
|
|
on_install("windows", "linux", "macosx", "iphoneos", "mingw", "android", "wasm", function (package)
|
|
-
|
|
|
|
local configs = {}
|
|
local configs = {}
|
|
table.insert(configs, "-DBUILD_CXXLIBS=OFF")
|
|
table.insert(configs, "-DBUILD_CXXLIBS=OFF")
|
|
table.insert(configs, "-DBUILD_DOCS=OFF")
|
|
table.insert(configs, "-DBUILD_DOCS=OFF")
|