serenity/Ports/libicu/package.sh
Ali Mohammad Pur cdd6d68b2a Ports: Remove some config.sub patches and download a fresh one if needed
All of these patches did the same thing, which is already in upstream
config.sub.
With this change, we need only add `use_fresh_config_sub=true` to
the package.sh file.
Note that this is not done automatically in case the port has a modified
config.sub file.
2022-01-16 10:32:50 +03:30

21 lines
753 B
Bash
Executable file

#!/usr/bin/env -S bash ../.port_include.sh
port=libicu
version=69.1
useconfigure=true
use_fresh_config_sub=true
workdir=icu/source
configopts=("--with-cross-build=$(pwd)/${workdir}/../host-build")
files="https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version//./_}-src.tgz icu4c-${version//./_}-src.tgz 4cba7b7acd1d3c42c44bb0c14be6637098c7faf2b330ce876bc5f3b915d09745"
auth_type=sha256
configure() {
host_env
run mkdir -p ../host-build
run sh -c "cd ../host-build && ../source/configure && make ${makeopts[@]}"
target_env
run ./configure --host="${SERENITY_ARCH}-pc-serenity" "${configopts[@]}"
}
export CFLAGS="-DU_HAVE_NL_LANGINFO_CODESET=0"
export CXXFLAGS="-DU_HAVE_NL_LANGINFO_CODESET=0"