2024-03-05 19:40:25 +01:00
|
|
|
# Description: Widely used set of C/C++ libraries providing Unicode and Globalization support
|
2021-10-25 01:46:56 +11:00
|
|
|
# URL: https://icu.unicode.org
|
2023-06-18 19:28:49 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2021-10-25 01:46:56 +11:00
|
|
|
# Optional: clang lld
|
2012-10-31 08:47:36 +11:00
|
|
|
|
|
|
|
name=icu
|
2023-12-13 19:28:38 +01:00
|
|
|
version=74.2
|
2024-04-07 22:45:10 +02:00
|
|
|
release=2
|
2023-12-13 19:28:38 +01:00
|
|
|
source=(https://github.com/unicode-org/icu/releases/download/release-${version//./-}/icu4c-${version/./_}-src.tgz
|
|
|
|
ICU-22132.patch)
|
2012-10-31 08:47:36 +11:00
|
|
|
|
|
|
|
build() {
|
2023-06-18 19:28:49 +02:00
|
|
|
cd icu/source
|
2012-10-31 08:47:36 +11:00
|
|
|
|
2023-06-18 19:28:49 +02:00
|
|
|
# icu tries to use clang by default, only do so if installed
|
|
|
|
prt-get isinst clang lld && LDFLAGS+=' -fuse-ld=lld -flto=thin'
|
|
|
|
prt-get isinst clang && export CC=clang CXX=clang++ AR=llvm-ar NM=llvm-nm RANLIB=llvm-ranlib || \
|
|
|
|
export CC=gcc CXX=g++
|
2016-03-18 21:26:33 +11:00
|
|
|
|
2023-12-13 19:28:38 +01:00
|
|
|
patch -Np1 -i $SRC/ICU-22132.patch
|
2024-04-07 22:45:10 +02:00
|
|
|
export CFLAGS="$CFLAGS -fno-strict-aliasing"
|
|
|
|
export CXXFLAGS="$CFLAGS"
|
|
|
|
echo $CFLAGS $CXXFLAGS
|
2023-12-13 19:28:38 +01:00
|
|
|
|
2024-04-07 22:45:10 +02:00
|
|
|
CONFIG_SHELL=/bin/bash \
|
2023-06-18 19:28:49 +02:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--disable-samples \
|
|
|
|
--disable-tests
|
2012-10-31 08:47:36 +11:00
|
|
|
|
2023-06-18 19:28:49 +02:00
|
|
|
make
|
|
|
|
make -j1 DESTDIR=$PKG install
|
2012-10-31 08:47:36 +11:00
|
|
|
}
|