|
@@ -16,8 +16,17 @@ package("icu4c")
|
|
|
|
|
|
add_patches("69.1", path.join(os.scriptdir(), "patches", "69.1", "replace-py-3.patch"), "ae27a55b0e79a8420024d6d349a7bae850e1dd403a8e1131e711c405ddb099b9")
|
|
add_patches("69.1", path.join(os.scriptdir(), "patches", "69.1", "replace-py-3.patch"), "ae27a55b0e79a8420024d6d349a7bae850e1dd403a8e1131e711c405ddb099b9")
|
|
add_patches("70.1", path.join(os.scriptdir(), "patches", "70.1", "replace-py-3.patch"), "6469739da001721122b62af513370ed62901caf43af127de3f27ea2128830e35")
|
|
add_patches("70.1", path.join(os.scriptdir(), "patches", "70.1", "replace-py-3.patch"), "6469739da001721122b62af513370ed62901caf43af127de3f27ea2128830e35")
|
|
|
|
+ if is_plat("mingw") then
|
|
|
|
+ add_patches("72.1", path.join(os.scriptdir(), "patches", "72.1", "mingw.patch"), "9ddbe7f691224ccf69f8c0218f788f0a39ab8f1375cc9aad2cc92664ffcf46a5")
|
|
|
|
+ end
|
|
|
|
+
|
|
|
|
+ add_links("icuuc", "icutu", "icui18n", "icuio")
|
|
|
|
+ if is_plat("mingw") then
|
|
|
|
+ add_links("icudt")
|
|
|
|
+ else
|
|
|
|
+ add_links("icudata")
|
|
|
|
+ end
|
|
|
|
|
|
- add_links("icuuc", "icutu", "icui18n", "icuio", "icudata")
|
|
|
|
if is_plat("linux") then
|
|
if is_plat("linux") then
|
|
add_syslinks("dl")
|
|
add_syslinks("dl")
|
|
end
|
|
end
|
|
@@ -36,7 +45,7 @@ package("icu4c")
|
|
package:addenv("PATH", "bin")
|
|
package:addenv("PATH", "bin")
|
|
end)
|
|
end)
|
|
|
|
|
|
- on_install("macosx", "linux", function (package)
|
|
|
|
|
|
+ on_install("macosx", "linux", "mingw@msys", function (package)
|
|
import("package.tools.autoconf")
|
|
import("package.tools.autoconf")
|
|
|
|
|
|
os.cd("source")
|
|
os.cd("source")
|
|
@@ -52,6 +61,9 @@ package("icu4c")
|
|
table.insert(configs, "--disable-shared")
|
|
table.insert(configs, "--disable-shared")
|
|
table.insert(configs, "--enable-static")
|
|
table.insert(configs, "--enable-static")
|
|
end
|
|
end
|
|
|
|
+ if package:is_plat("mingw") then
|
|
|
|
+ table.insert(configs, "--with-data-packaging=dll")
|
|
|
|
+ end
|
|
|
|
|
|
local envs = {}
|
|
local envs = {}
|
|
if package:is_plat("linux") and package:config("pic") ~= false then
|
|
if package:is_plat("linux") and package:config("pic") ~= false then
|