void-packages/srcpkgs/icu/template

67 lines
1.8 KiB
Bash
Raw Normal View History

# Template build file for 'icu'.
pkgname=icu
2016-03-30 07:25:20 +00:00
version=57.1
revision=1
2012-07-21 07:51:16 +00:00
wrksrc=icu
2012-02-09 12:39:55 +00:00
build_wrksrc=source
build_style=gnu-configure
2014-10-15 09:08:43 +00:00
hostmakedepends="pkg-config"
short_desc="Robust and full-featured Unicode services"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2012-07-21 07:51:16 +00:00
homepage="http://www.icu-project.org/"
license="ICU License /usr/share/licenses/icu/license.html"
2014-10-15 09:08:43 +00:00
distfiles="http://download.icu-project.org/files/icu4c/${version}/icu4c-${version//./_}-src.tgz"
2016-03-30 07:25:20 +00:00
checksum=ff8c67cb65949b1e7808f2359f2b80f722697048e90e7cfc382ec1fe229e9581
if [ "$CROSS_BUILD" ]; then
configure_args+=" --with-cross-build=${XBPS_BUILDDIR}/${wrksrc}/host-icu"
fi
2013-03-19 06:46:50 +00:00
pre_configure() {
if [ "$CROSS_BUILD" ]; then
2013-03-19 06:46:50 +00:00
# Configure and build for host.
mkdir host-build
2015-04-04 23:10:03 +00:00
(
2013-03-19 06:46:50 +00:00
cd host-build
2014-10-15 09:08:43 +00:00
env CC=cc LD=ld CXX=g++ AR=ar RANLIB=ranlib \
2015-11-29 08:25:12 +00:00
AS=as STRIP=strip CFLAGS="-Os -fPIE" CXXFLAGS="-Os -fPIE" \
2013-03-19 06:46:50 +00:00
../configure --prefix=/
make ${makejobs}
mkdir -p ${wrksrc}/host-icu/config
2014-10-15 09:08:43 +00:00
cp config/icucross.* ${wrksrc}/host-icu/config
2013-03-19 06:46:50 +00:00
make DESTDIR=${wrksrc}/host-icu install
mv ${wrksrc}/host-icu/sbin/* ${wrksrc}/host-icu/bin
2014-10-15 09:08:43 +00:00
make distclean
2015-04-04 23:10:03 +00:00
)
2013-03-19 06:46:50 +00:00
fi
# 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 06:46:50 +00:00
}
post_install() {
2016-03-30 07:25:20 +00:00
vlicense $wrksrc/LICENSE
2012-07-21 07:51:16 +00:00
}
icu-devel_package() {
depends="libstdc++-devel icu-libs>=${version}_${revision}"
short_desc+=" - development files"
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*"
vmove "usr/lib/*.so"
}
}
icu-libs_package() {
short_desc+=" - shared libs"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}