# $Id$ PortSystem 1.0 name icu set my_name icu4c version 3.8 categories devel platforms darwin freebsd maintainers nox description International Components for Unicode long_description \ The International Components for Unicode (ICU) libraries provide robust \ and full-featured Unicode services on a wide variety of platforms. ICU \ supports the most current version of the Unicode standard, and they provide \ support for supplementary Unicode characters (needed for GB 18030 repertoire support). homepage http://www.icu-project.org/ master_sites http://download.icu-project.org/files/${my_name}/${version}/ \ sourceforge distname ${my_name}-[join [split ${version} .] _] extract.suffix .tgz distfiles [suffix ${distname}-src] checksums [suffix ${distname}-src] \ sha1 4370becc68eab7a01292db62e1649239b1732a5b \ md5 67cc2650fbcae4c8e3ba5ce4dda4b072 \ rmd160 e9a0105477b54e6d3f222bf7741a61058c70665b \ ${distname}-docs.zip \ sha1 94b47b5dd88bce15dab608719efbbd405d15e912 \ md5 677b218cbca2acc304b9771c63bd69bf \ rmd160 927f4466758722e958b90a2bae873b11da222e88 worksrcdir ${name}/source set docdir ${prefix}/share/doc/${name}-${version} configure.args --mandir=${prefix}/share/man \ --disable-samples # Fix bug #11981 that prevents ICU from building when upgrading. # The default configure flags causes utilisation of outdated ICU headers/libs instead of the right # ones. Eventually the virtual chroot mechanism will fix that. configure.cppflags configure.ldflags build.type gnu test.run yes test.target check post-destroot { foreach dylib [glob -type f ${destroot}${prefix}/lib/*.dylib] { file attributes ${dylib} -permissions 0755 } xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath}/.. readme.html ${destroot}${docdir} } variant doc description {Install extra documentation} { extract.only [suffix ${distname}-src] distfiles-append ${distname}-docs.zip post-extract { system "unzip -q ${distpath}/${distname}-docs.zip -d ${workpath}/doc" } post-destroot { eval xinstall -m 0644 [glob ${workpath}/doc/*.{css,gif,html,png}] ${destroot}${docdir} } } platform darwin { post-patch { reinplace "s;install_name ;install_name ${prefix}/lib/;" ${worksrcpath}/config/mh-darwin } } platform darwin 8 { configure.compiler gcc-4.0 } platform freebsd { build.env MAKE=/usr/local/bin/gmake destroot.env MAKE=/usr/local/bin/gmake } livecheck.distname ICU4C