2021-04-11 23:21:31 +02:00
|
|
|
#!/usr/bin/env -S bash ../.port_include.sh
|
2023-09-01 15:27:50 +02:00
|
|
|
port='libicu'
|
2023-09-01 20:45:05 +02:00
|
|
|
version='73.2'
|
2023-09-01 15:27:50 +02:00
|
|
|
useconfigure='true'
|
|
|
|
use_fresh_config_sub='true'
|
|
|
|
workdir='icu/source'
|
2023-07-10 13:10:29 +02:00
|
|
|
files=(
|
2023-09-01 20:45:05 +02:00
|
|
|
"https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version//./_}-src.tgz#818a80712ed3caacd9b652305e01afc7fa167e6f2e94996da44b90c2ab604ce1"
|
2023-07-10 13:10:29 +02:00
|
|
|
)
|
2021-04-11 23:21:31 +02:00
|
|
|
|
|
|
|
configure() {
|
|
|
|
host_env
|
|
|
|
run mkdir -p ../host-build
|
2023-09-01 15:27:50 +02:00
|
|
|
run sh -c "cd ../host-build && ../source/configure && make ${makeopts[*]}"
|
2021-04-11 23:21:31 +02:00
|
|
|
target_env
|
2023-09-01 15:27:50 +02:00
|
|
|
run ./configure \
|
|
|
|
--host="${SERENITY_ARCH}-pc-serenity" \
|
|
|
|
--with-cross-build="$(pwd)/${workdir}/../host-build"
|
2021-04-11 23:21:31 +02:00
|
|
|
}
|
|
|
|
|
2023-09-01 15:27:50 +02:00
|
|
|
export CFLAGS='-DU_HAVE_NL_LANGINFO_CODESET=0'
|
|
|
|
export CXXFLAGS='-DU_HAVE_NL_LANGINFO_CODESET=0'
|