mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 14:27:35 +00:00
Ports: Add port for libicu
I was trying to port openttd which I ultimately gave up on because too much of the C++ standard library's functionality is missing at this point. The libicu library was a dependency for that. In its current state the libicu port is not thread-safe because of missing functionality in the C++ standard library (mainly std::mutex, std::condition_variable, etc.).
This commit is contained in:
parent
28b3c8bc1d
commit
6a808d96b5
3 changed files with 567 additions and 0 deletions
18
Ports/libicu/package.sh
Executable file
18
Ports/libicu/package.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env -S bash ../.port_include.sh
|
||||
port=libicu
|
||||
version=69_1
|
||||
useconfigure=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"
|
||||
|
||||
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 -DLC_MESSAGES=1"
|
||||
export CXXFLAGS="-DU_HAVE_NL_LANGINFO_CODESET=0 -DLC_MESSAGES=1"
|
Loading…
Add table
Add a link
Reference in a new issue