2008-10-14 09:03:18 +02:00
|
|
|
# Template build file for 'icu'.
|
|
|
|
pkgname=icu
|
2012-07-21 09:51:16 +02:00
|
|
|
version=49.1.2
|
|
|
|
_distver="$(echo $version|sed -e 's|\.|_|g')"
|
2013-04-12 16:39:50 +02:00
|
|
|
revision=3
|
2012-07-21 09:51:16 +02:00
|
|
|
wrksrc=icu
|
2012-02-09 13:39:55 +01:00
|
|
|
build_wrksrc=source
|
2008-10-14 09:03:18 +02:00
|
|
|
short_desc="Robust and full-featured Unicode services"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-21 09:51:16 +02:00
|
|
|
homepage="http://www.icu-project.org/"
|
|
|
|
license="ICU License /usr/share/licenses/icu/license.html"
|
|
|
|
distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${_distver}-src.tgz"
|
|
|
|
checksum=cce83cc88a2ff79d65c05426facbf30530bbe13a1cfda04b3ab81b55414cf5a3
|
2008-10-14 09:03:18 +02:00
|
|
|
long_desc="
|
|
|
|
The International Components for Unicode(ICU) is a C and C++ library that
|
|
|
|
provides robust and full-featured Unicode support on a wide variety of
|
|
|
|
platforms. The library provides:
|
|
|
|
|
|
|
|
- Calendar support
|
|
|
|
- Character set conversions
|
|
|
|
- Collation (language-sensitive)
|
2009-05-14 01:41:02 +02:00
|
|
|
- Date and time formatting
|
2008-10-14 09:03:18 +02:00
|
|
|
- Locales (140+ supported)
|
|
|
|
- Message catalogs (resources)
|
|
|
|
- Message formatting
|
|
|
|
- Normalization
|
2009-05-14 01:41:02 +02:00
|
|
|
- Number and currency formatting
|
2008-10-14 09:03:18 +02:00
|
|
|
- Time zones
|
|
|
|
- Transliteration
|
2009-05-14 01:41:02 +02:00
|
|
|
- Word, line and sentence breaks"
|
|
|
|
|
2013-03-19 07:46:50 +01:00
|
|
|
pre_configure() {
|
2013-05-26 10:41:55 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-19 07:46:50 +01:00
|
|
|
# Configure and build for host.
|
|
|
|
mkdir host-build
|
|
|
|
cd host-build
|
|
|
|
env CC=gcc LD=ld CXX=g++ AR=ar RANLIB=ranlib \
|
|
|
|
AS=as STRIP=strip CFLAGS="-Os" CXXFLAGS="-Os" \
|
|
|
|
../configure --prefix=/
|
|
|
|
make ${makejobs}
|
|
|
|
mkdir -p ${wrksrc}/host-icu/config
|
|
|
|
cp config/icucross.mk ${wrksrc}/host-icu/config
|
|
|
|
make DESTDIR=${wrksrc}/host-icu install
|
|
|
|
mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_configure() {
|
2013-05-26 10:41:55 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
_cross_args="--with-cross-build=${wrksrc}/host-icu"
|
|
|
|
fi
|
|
|
|
./configure ${configure_args} ${_cross_args}
|
2013-03-19 07:46:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2012-07-21 09:51:16 +02:00
|
|
|
vinstall $wrksrc/license.html 644 usr/share/licenses/icu
|
|
|
|
}
|
2013-04-12 16:39:50 +02:00
|
|
|
|
|
|
|
icu-devel_package() {
|
|
|
|
depends="libstdc++-devel icu>=$version"
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 16:39:50 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/icu
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/icu
|
|
|
|
vmove usr/bin/icu-config
|
|
|
|
vmove "usr/share/man/man1/icu-config*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
icu-libs_package() {
|
2013-05-26 10:41:55 +02:00
|
|
|
short_desc+=" - shared libs"
|
2013-04-12 16:39:50 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/*.so*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
icu_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|