Skip to content

Commit 168ae3f

Browse files
committed
Add library ICU
1 parent 8c8ec64 commit 168ae3f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

bin/yaml/libraries.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,15 @@ libraries:
10571057
targets:
10581058
- trunk
10591059
type: github
1060+
icu:
1061+
build_type: manual
1062+
check_file: readme.html
1063+
lib_type: shared
1064+
repo: unicode-org/icu
1065+
target_prefix: release-
1066+
targets:
1067+
- 71-1
1068+
type: github
10601069
if: nightly
10611070
immer:
10621071
build_type: none

update_compilers/install_libraries.sh

+29
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,35 @@ install_openssl() {
5151

5252
install_openssl 1_1_1c 1_1_1g
5353

54+
#########################
55+
# ICU
56+
57+
install_icu() {
58+
for VERSION in "$@"; do
59+
local DEST=${OPT}/libs/icu/${VERSION}/x86_64/opt
60+
if [[ ! -d ${DEST} ]]; then
61+
pushd /tmp
62+
fetch "https://github.com/unicode-org/icu/releases/download/release-${VERSION}/icu4c-${VERSION/-/_}-src.tgz" |
63+
tar zxf -
64+
pushd icu/source
65+
./configure --prefix=${DEST}
66+
make
67+
make install
68+
69+
make clean
70+
./configure --prefix=${DEST/x86_64/x86} --with-library-bits=32
71+
make
72+
make install
73+
74+
popd
75+
rm -rf icu
76+
popd
77+
fi
78+
done
79+
}
80+
81+
install_icu 71-1
82+
5483
#########################
5584
# cs50
5685

0 commit comments

Comments
 (0)