2008-10-14 07:03:18 +00:00
|
|
|
# Template build file for 'icu'.
|
|
|
|
pkgname=icu
|
2012-07-21 07:51:16 +00:00
|
|
|
version=49.1.2
|
2013-09-27 08:10:57 +00:00
|
|
|
_distver="49_1_2"
|
2014-05-22 06:31:12 +00:00
|
|
|
revision=6
|
2012-07-21 07:51:16 +00:00
|
|
|
wrksrc=icu
|
2012-02-09 12:39:55 +00:00
|
|
|
build_wrksrc=source
|
2014-02-12 14:27:25 +00:00
|
|
|
build_style=gnu-configure
|
2008-10-14 07:03:18 +00:00
|
|
|
short_desc="Robust and full-featured Unicode services"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-21 07:51:16 +00: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 07:03:18 +00:00
|
|
|
|
2014-02-12 14:27:25 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu"
|
|
|
|
fi
|
2009-05-13 23:41:02 +00:00
|
|
|
|
2013-03-19 06:46:50 +00:00
|
|
|
pre_configure() {
|
2013-05-26 08:41:55 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-03-19 06:46:50 +00: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
|
2014-05-22 06:31:12 +00:00
|
|
|
# libicudata must be linked to libc, otherwise it's soft-float.
|
|
|
|
# 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 06:46:50 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2014-02-12 14:27:25 +00:00
|
|
|
post_install() {
|
2012-07-21 07:51:16 +00:00
|
|
|
vinstall $wrksrc/license.html 644 usr/share/licenses/icu
|
|
|
|
}
|
2013-04-12 14:39:50 +00:00
|
|
|
|
|
|
|
icu-devel_package() {
|
2014-02-12 14:27:25 +00:00
|
|
|
depends="libstdc++-devel icu-libs>=${version}_${revision}"
|
2013-05-26 08:41:55 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 14:39:50 +00: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 14:27:25 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 14:39:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
icu-libs_package() {
|
2013-05-26 08:41:55 +00:00
|
|
|
short_desc+=" - shared libs"
|
2013-04-12 14:39:50 +00:00
|
|
|
pkg_install() {
|
2014-02-12 14:27:25 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 14:39:50 +00:00
|
|
|
}
|
|
|
|
}
|