2008-10-14 09:03:18 +02:00
|
|
|
# Template build file for 'icu'.
|
|
|
|
pkgname=icu
|
2014-10-15 11:08:43 +02:00
|
|
|
version=54.1
|
2015-11-05 17:54:31 +01:00
|
|
|
revision=5
|
2012-07-21 09:51:16 +02:00
|
|
|
wrksrc=icu
|
2012-02-09 13:39:55 +01:00
|
|
|
build_wrksrc=source
|
2014-02-12 15:27:25 +01:00
|
|
|
build_style=gnu-configure
|
2015-06-02 11:29:26 +02:00
|
|
|
configure_args="--sbindir=/usr/bin"
|
2014-10-15 11:08:43 +02:00
|
|
|
hostmakedepends="pkg-config"
|
2008-10-14 09:03:18 +02:00
|
|
|
short_desc="Robust and full-featured Unicode services"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2012-07-21 09:51:16 +02:00
|
|
|
homepage="http://www.icu-project.org/"
|
|
|
|
license="ICU License /usr/share/licenses/icu/license.html"
|
2014-10-15 11:08:43 +02:00
|
|
|
distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${version//./_}-src.tgz"
|
|
|
|
checksum=d42bc9a8ca6a91c55eb0925c279f49e5b508d51ef26ac9850d9be55de5bb8ab3
|
2008-10-14 09:03:18 +02:00
|
|
|
|
2014-02-12 15:27:25 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu"
|
|
|
|
fi
|
2009-05-14 01:41:02 +02:00
|
|
|
|
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
|
2015-04-05 01:10:03 +02:00
|
|
|
(
|
2013-03-19 07:46:50 +01:00
|
|
|
cd host-build
|
2014-10-15 11:08:43 +02:00
|
|
|
env CC=cc LD=ld CXX=g++ AR=ar RANLIB=ranlib \
|
2013-03-19 07:46:50 +01:00
|
|
|
AS=as STRIP=strip CFLAGS="-Os" CXXFLAGS="-Os" \
|
|
|
|
../configure --prefix=/
|
|
|
|
make ${makejobs}
|
|
|
|
mkdir -p ${wrksrc}/host-icu/config
|
2014-10-15 11:08:43 +02:00
|
|
|
cp config/icucross.* ${wrksrc}/host-icu/config
|
2013-03-19 07:46:50 +01:00
|
|
|
make DESTDIR=${wrksrc}/host-icu install
|
|
|
|
mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin
|
2014-10-15 11:08:43 +02:00
|
|
|
make distclean
|
2015-04-05 01:10:03 +02:00
|
|
|
)
|
2013-03-19 07:46:50 +01:00
|
|
|
fi
|
2015-04-05 00:50:16 +02:00
|
|
|
|
|
|
|
# libicudata must be linked to libc, otherwise it's soft-float on ARM.
|
|
|
|
# probably other stuff breaks too, so let's just do it.
|
|
|
|
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653457
|
|
|
|
sed -e 's,-nostdlib,,g' -i ${wrksrc}/source/config/mh-linux
|
2013-03-19 07:46:50 +01:00
|
|
|
}
|
|
|
|
|
2014-02-12 15:27:25 +01:00
|
|
|
post_install() {
|
2014-10-15 11:08:43 +02:00
|
|
|
vlicense $wrksrc/license.html
|
2012-07-21 09:51:16 +02:00
|
|
|
}
|
2013-04-12 16:39:50 +02:00
|
|
|
|
|
|
|
icu-devel_package() {
|
2014-02-12 15:27:25 +01:00
|
|
|
depends="libstdc++-devel icu-libs>=${version}_${revision}"
|
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*"
|
2014-02-12 15:27:25 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 16:39:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
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() {
|
2014-02-12 15:27:25 +01:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 16:39:50 +02:00
|
|
|
}
|
|
|
|
}
|