From: Victor Martinez Date: Wed, 3 Nov 2010 07:35:37 +0000 (+0000) Subject: icu: initial import (verified compilation). X-Git-Url: http://gitweb/?a=commitdiff_plain;h=0f9989f876c2f3cc02ee4d26c530b9d83944df51;p=attic%2Fports%2Fopt-cross.git icu: initial import (verified compilation). --- diff --git a/icu/.footprint b/icu/.footprint new file mode 100644 index 0000000..73fb71f --- /dev/null +++ b/icu/.footprint @@ -0,0 +1,243 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/derb +-rwxr-xr-x root/root usr/bin/genbrk +-rwxr-xr-x root/root usr/bin/gencfu +-rwxr-xr-x root/root usr/bin/gencnval +-rwxr-xr-x root/root usr/bin/genctd +-rwxr-xr-x root/root usr/bin/genrb +-rwxr-xr-x root/root usr/bin/icu-config +-rwxr-xr-x root/root usr/bin/icuinfo +-rwxr-xr-x root/root usr/bin/makeconv +-rwxr-xr-x root/root usr/bin/pkgdata +-rwxr-xr-x root/root usr/bin/uconv +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/layout/ +-rw-r--r-- root/root usr/include/layout/LEFontInstance.h +-rw-r--r-- root/root usr/include/layout/LEGlyphFilter.h +-rw-r--r-- root/root usr/include/layout/LEGlyphStorage.h +-rw-r--r-- root/root usr/include/layout/LEInsertionList.h +-rw-r--r-- root/root usr/include/layout/LELanguages.h +-rw-r--r-- root/root usr/include/layout/LEScripts.h +-rw-r--r-- root/root usr/include/layout/LESwaps.h +-rw-r--r-- root/root usr/include/layout/LETypes.h +-rw-r--r-- root/root usr/include/layout/LayoutEngine.h +-rw-r--r-- root/root usr/include/layout/ParagraphLayout.h +-rw-r--r-- root/root usr/include/layout/RunArrays.h +-rw-r--r-- root/root usr/include/layout/loengine.h +-rw-r--r-- root/root usr/include/layout/playout.h +-rw-r--r-- root/root usr/include/layout/plruns.h +drwxr-xr-x root/root usr/include/unicode/ +-rw-r--r-- root/root usr/include/unicode/basictz.h +-rw-r--r-- root/root usr/include/unicode/bms.h +-rw-r--r-- root/root usr/include/unicode/bmsearch.h +-rw-r--r-- root/root usr/include/unicode/brkiter.h +-rw-r--r-- root/root usr/include/unicode/bytestream.h +-rw-r--r-- root/root usr/include/unicode/calendar.h +-rw-r--r-- root/root usr/include/unicode/caniter.h +-rw-r--r-- root/root usr/include/unicode/chariter.h +-rw-r--r-- root/root usr/include/unicode/choicfmt.h +-rw-r--r-- root/root usr/include/unicode/coleitr.h +-rw-r--r-- root/root usr/include/unicode/coll.h +-rw-r--r-- root/root usr/include/unicode/colldata.h +-rw-r--r-- root/root usr/include/unicode/curramt.h +-rw-r--r-- root/root usr/include/unicode/currpinf.h +-rw-r--r-- root/root usr/include/unicode/currunit.h +-rw-r--r-- root/root usr/include/unicode/datefmt.h +-rw-r--r-- root/root usr/include/unicode/dbbi.h +-rw-r--r-- root/root usr/include/unicode/dcfmtsym.h +-rw-r--r-- root/root usr/include/unicode/decimfmt.h +-rw-r--r-- root/root usr/include/unicode/docmain.h +-rw-r--r-- root/root usr/include/unicode/dtfmtsym.h +-rw-r--r-- root/root usr/include/unicode/dtintrv.h +-rw-r--r-- root/root usr/include/unicode/dtitvfmt.h +-rw-r--r-- root/root usr/include/unicode/dtitvinf.h +-rw-r--r-- root/root usr/include/unicode/dtptngen.h +-rw-r--r-- root/root usr/include/unicode/dtrule.h +-rw-r--r-- root/root usr/include/unicode/errorcode.h +-rw-r--r-- root/root usr/include/unicode/fieldpos.h +-rw-r--r-- root/root usr/include/unicode/fmtable.h +-rw-r--r-- root/root usr/include/unicode/format.h +-rw-r--r-- root/root usr/include/unicode/fpositer.h +-rw-r--r-- root/root usr/include/unicode/gregocal.h +-rw-r--r-- root/root usr/include/unicode/icudataver.h +-rw-r--r-- root/root usr/include/unicode/icuplug.h +-rw-r--r-- root/root usr/include/unicode/localpointer.h +-rw-r--r-- root/root usr/include/unicode/locdspnm.h +-rw-r--r-- root/root usr/include/unicode/locid.h +-rw-r--r-- root/root usr/include/unicode/measfmt.h +-rw-r--r-- root/root usr/include/unicode/measunit.h +-rw-r--r-- root/root usr/include/unicode/measure.h +-rw-r--r-- root/root usr/include/unicode/msgfmt.h +-rw-r--r-- root/root usr/include/unicode/normalizer2.h +-rw-r--r-- root/root usr/include/unicode/normlzr.h +-rw-r--r-- root/root usr/include/unicode/numfmt.h +-rw-r--r-- root/root usr/include/unicode/numsys.h +-rw-r--r-- root/root usr/include/unicode/parseerr.h +-rw-r--r-- root/root usr/include/unicode/parsepos.h +-rw-r--r-- root/root usr/include/unicode/platform.h +-rw-r--r-- root/root usr/include/unicode/plurfmt.h +-rw-r--r-- root/root usr/include/unicode/plurrule.h +-rw-r--r-- root/root usr/include/unicode/ppalmos.h +-rw-r--r-- root/root usr/include/unicode/ptypes.h +-rw-r--r-- root/root usr/include/unicode/putil.h +-rw-r--r-- root/root usr/include/unicode/pwin32.h +-rw-r--r-- root/root usr/include/unicode/rbbi.h +-rw-r--r-- root/root usr/include/unicode/rbnf.h +-rw-r--r-- root/root usr/include/unicode/rbtz.h +-rw-r--r-- root/root usr/include/unicode/regex.h +-rw-r--r-- root/root usr/include/unicode/rep.h +-rw-r--r-- root/root usr/include/unicode/resbund.h +-rw-r--r-- root/root usr/include/unicode/schriter.h +-rw-r--r-- root/root usr/include/unicode/search.h +-rw-r--r-- root/root usr/include/unicode/selfmt.h +-rw-r--r-- root/root usr/include/unicode/simpletz.h +-rw-r--r-- root/root usr/include/unicode/smpdtfmt.h +-rw-r--r-- root/root usr/include/unicode/sortkey.h +-rw-r--r-- root/root usr/include/unicode/std_string.h +-rw-r--r-- root/root usr/include/unicode/strenum.h +-rw-r--r-- root/root usr/include/unicode/stringpiece.h +-rw-r--r-- root/root usr/include/unicode/stsearch.h +-rw-r--r-- root/root usr/include/unicode/symtable.h +-rw-r--r-- root/root usr/include/unicode/tblcoll.h +-rw-r--r-- root/root usr/include/unicode/timezone.h +-rw-r--r-- root/root usr/include/unicode/tmunit.h +-rw-r--r-- root/root usr/include/unicode/tmutamt.h +-rw-r--r-- root/root usr/include/unicode/tmutfmt.h +-rw-r--r-- root/root usr/include/unicode/translit.h +-rw-r--r-- root/root usr/include/unicode/tzrule.h +-rw-r--r-- root/root usr/include/unicode/tztrans.h +-rw-r--r-- root/root usr/include/unicode/ubidi.h +-rw-r--r-- root/root usr/include/unicode/ubrk.h +-rw-r--r-- root/root usr/include/unicode/ucal.h +-rw-r--r-- root/root usr/include/unicode/ucasemap.h +-rw-r--r-- root/root usr/include/unicode/ucat.h +-rw-r--r-- root/root usr/include/unicode/uchar.h +-rw-r--r-- root/root usr/include/unicode/uchriter.h +-rw-r--r-- root/root usr/include/unicode/uclean.h +-rw-r--r-- root/root usr/include/unicode/ucnv.h +-rw-r--r-- root/root usr/include/unicode/ucnv_cb.h +-rw-r--r-- root/root usr/include/unicode/ucnv_err.h +-rw-r--r-- root/root usr/include/unicode/ucnvsel.h +-rw-r--r-- root/root usr/include/unicode/ucol.h +-rw-r--r-- root/root usr/include/unicode/ucoleitr.h +-rw-r--r-- root/root usr/include/unicode/uconfig.h +-rw-r--r-- root/root usr/include/unicode/ucsdet.h +-rw-r--r-- root/root usr/include/unicode/ucurr.h +-rw-r--r-- root/root usr/include/unicode/udat.h +-rw-r--r-- root/root usr/include/unicode/udata.h +-rw-r--r-- root/root usr/include/unicode/udatpg.h +-rw-r--r-- root/root usr/include/unicode/udeprctd.h +-rw-r--r-- root/root usr/include/unicode/udraft.h +-rw-r--r-- root/root usr/include/unicode/uenum.h +-rw-r--r-- root/root usr/include/unicode/uidna.h +-rw-r--r-- root/root usr/include/unicode/uintrnal.h +-rw-r--r-- root/root usr/include/unicode/uiter.h +-rw-r--r-- root/root usr/include/unicode/uldnames.h +-rw-r--r-- root/root usr/include/unicode/uloc.h +-rw-r--r-- root/root usr/include/unicode/ulocdata.h +-rw-r--r-- root/root usr/include/unicode/umachine.h +-rw-r--r-- root/root usr/include/unicode/umisc.h +-rw-r--r-- root/root usr/include/unicode/umsg.h +-rw-r--r-- root/root usr/include/unicode/unifilt.h +-rw-r--r-- root/root usr/include/unicode/unifunct.h +-rw-r--r-- root/root usr/include/unicode/unimatch.h +-rw-r--r-- root/root usr/include/unicode/unirepl.h +-rw-r--r-- root/root usr/include/unicode/uniset.h +-rw-r--r-- root/root usr/include/unicode/unistr.h +-rw-r--r-- root/root usr/include/unicode/unorm.h +-rw-r--r-- root/root usr/include/unicode/unorm2.h +-rw-r--r-- root/root usr/include/unicode/unum.h +-rw-r--r-- root/root usr/include/unicode/uobject.h +-rw-r--r-- root/root usr/include/unicode/uobslete.h +-rw-r--r-- root/root usr/include/unicode/uregex.h +-rw-r--r-- root/root usr/include/unicode/urename.h +-rw-r--r-- root/root usr/include/unicode/urep.h +-rw-r--r-- root/root usr/include/unicode/ures.h +-rw-r--r-- root/root usr/include/unicode/uscript.h +-rw-r--r-- root/root usr/include/unicode/usearch.h +-rw-r--r-- root/root usr/include/unicode/uset.h +-rw-r--r-- root/root usr/include/unicode/usetiter.h +-rw-r--r-- root/root usr/include/unicode/ushape.h +-rw-r--r-- root/root usr/include/unicode/uspoof.h +-rw-r--r-- root/root usr/include/unicode/usprep.h +-rw-r--r-- root/root usr/include/unicode/ustdio.h +-rw-r--r-- root/root usr/include/unicode/ustream.h +-rw-r--r-- root/root usr/include/unicode/ustring.h +-rw-r--r-- root/root usr/include/unicode/usystem.h +-rw-r--r-- root/root usr/include/unicode/utext.h +-rw-r--r-- root/root usr/include/unicode/utf.h +-rw-r--r-- root/root usr/include/unicode/utf16.h +-rw-r--r-- root/root usr/include/unicode/utf32.h +-rw-r--r-- root/root usr/include/unicode/utf8.h +-rw-r--r-- root/root usr/include/unicode/utf_old.h +-rw-r--r-- root/root usr/include/unicode/utmscale.h +-rw-r--r-- root/root usr/include/unicode/utrace.h +-rw-r--r-- root/root usr/include/unicode/utrans.h +-rw-r--r-- root/root usr/include/unicode/utypes.h +-rw-r--r-- root/root usr/include/unicode/uvernum.h +-rw-r--r-- root/root usr/include/unicode/uversion.h +-rw-r--r-- root/root usr/include/unicode/vtzone.h +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/icu/ +drwxr-xr-x root/root usr/lib/icu/4.4.2/ +-rw-r--r-- root/root usr/lib/icu/4.4.2/Makefile.inc +-rw-r--r-- root/root usr/lib/icu/4.4.2/pkgdata.inc +lrwxrwxrwx root/root usr/lib/icu/Makefile.inc -> current/Makefile.inc +lrwxrwxrwx root/root usr/lib/icu/current -> 4.4.2 +lrwxrwxrwx root/root usr/lib/icu/pkgdata.inc -> current/pkgdata.inc +lrwxrwxrwx root/root usr/lib/libicudata.so -> libicudata.so.44.2 +lrwxrwxrwx root/root usr/lib/libicudata.so.44 -> libicudata.so.44.2 +-rw-r--r-- root/root usr/lib/libicudata.so.44.2 +lrwxrwxrwx root/root usr/lib/libicui18n.so -> libicui18n.so.44.2 +lrwxrwxrwx root/root usr/lib/libicui18n.so.44 -> libicui18n.so.44.2 +-rwxr-xr-x root/root usr/lib/libicui18n.so.44.2 +lrwxrwxrwx root/root usr/lib/libicuio.so -> libicuio.so.44.2 +lrwxrwxrwx root/root usr/lib/libicuio.so.44 -> libicuio.so.44.2 +-rwxr-xr-x root/root usr/lib/libicuio.so.44.2 +lrwxrwxrwx root/root usr/lib/libicule.so -> libicule.so.44.2 +lrwxrwxrwx root/root usr/lib/libicule.so.44 -> libicule.so.44.2 +-rwxr-xr-x root/root usr/lib/libicule.so.44.2 +lrwxrwxrwx root/root usr/lib/libiculx.so -> libiculx.so.44.2 +lrwxrwxrwx root/root usr/lib/libiculx.so.44 -> libiculx.so.44.2 +-rwxr-xr-x root/root usr/lib/libiculx.so.44.2 +lrwxrwxrwx root/root usr/lib/libicutest.so -> libicutest.so.44.2 +lrwxrwxrwx root/root usr/lib/libicutest.so.44 -> libicutest.so.44.2 +-rwxr-xr-x root/root usr/lib/libicutest.so.44.2 +lrwxrwxrwx root/root usr/lib/libicutu.so -> libicutu.so.44.2 +lrwxrwxrwx root/root usr/lib/libicutu.so.44 -> libicutu.so.44.2 +-rwxr-xr-x root/root usr/lib/libicutu.so.44.2 +lrwxrwxrwx root/root usr/lib/libicuuc.so -> libicuuc.so.44.2 +lrwxrwxrwx root/root usr/lib/libicuuc.so.44 -> libicuuc.so.44.2 +-rwxr-xr-x root/root usr/lib/libicuuc.so.44.2 +drwxr-xr-x root/root usr/man/ +drwxr-xr-x root/root usr/man/man1/ +-rw-r--r-- root/root usr/man/man1/derb.1.gz +-rw-r--r-- root/root usr/man/man1/genbrk.1.gz +-rw-r--r-- root/root usr/man/man1/gencnval.1.gz +-rw-r--r-- root/root usr/man/man1/genctd.1.gz +-rw-r--r-- root/root usr/man/man1/genrb.1.gz +-rw-r--r-- root/root usr/man/man1/icu-config.1.gz +-rw-r--r-- root/root usr/man/man1/makeconv.1.gz +-rw-r--r-- root/root usr/man/man1/pkgdata.1.gz +-rw-r--r-- root/root usr/man/man1/uconv.1.gz +drwxr-xr-x root/root usr/man/man8/ +-rw-r--r-- root/root usr/man/man8/genccode.8.gz +-rw-r--r-- root/root usr/man/man8/gencmn.8.gz +-rw-r--r-- root/root usr/man/man8/gensprep.8.gz +-rw-r--r-- root/root usr/man/man8/genuca.8.gz +-rw-r--r-- root/root usr/man/man8/icupkg.8.gz +drwxr-xr-x root/root usr/sbin/ +-rwxr-xr-x root/root usr/sbin/genccode +-rwxr-xr-x root/root usr/sbin/gencmn +-rwxr-xr-x root/root usr/sbin/gennorm2 +-rwxr-xr-x root/root usr/sbin/gensprep +-rwxr-xr-x root/root usr/sbin/genuca +-rwxr-xr-x root/root usr/sbin/icupkg +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/icu/ +drwxr-xr-x root/root usr/share/icu/4.4.2/ +drwxr-xr-x root/root usr/share/icu/4.4.2/config/ +-rw-r--r-- root/root usr/share/icu/4.4.2/config/mh-linux +-rwxr-xr-x root/root usr/share/icu/4.4.2/install-sh +-rwxr-xr-x root/root usr/share/icu/4.4.2/mkinstalldirs diff --git a/icu/.md5sum b/icu/.md5sum new file mode 100644 index 0000000..a511494 --- /dev/null +++ b/icu/.md5sum @@ -0,0 +1,2 @@ +7ffe367aa0f3bf23a3b34731f4b363df icu-4.4.2-arm-assembler.patch +314e582264c36b3735466c522899aa07 icu4c-4_4_2-src.tgz diff --git a/icu/Pkgfile b/icu/Pkgfile new file mode 100644 index 0000000..fd4c18e --- /dev/null +++ b/icu/Pkgfile @@ -0,0 +1,58 @@ +# Description: Widely used set of C/C++ libraries providing Unicode and Globalization support. +# URL: http://www.icu-project.org/ +# Packager: Younes Hafri, ycrux at club-internet dot fr +# Maintainer: Danny Rawlins, monster dot romster at gmail dot com +# Arch Maintainer System Team devel at crux-arm dot nu +# Depends on: + +name=icu +version=4.4.2 +release=1 +source=(http://download.icu-project.org/files/icu4c/$version/icu4c-${version//./_}-src.tgz \ + $name-$version-arm-assembler.patch) + +build() { + + SAVED_CFLAGS="$CFLAGS" SAVED_CXXFLAGS="$CXXFLAGS" + SAVED_AR="$AR" SAVED_RANLIB="$RANLIB" SAVED_LD="$LD" + unset CC CFLAGS CXX CXXFLAGS AR RANLIB LD + + patch -i $SRC/$name-$version-arm-assembler.patch icu/source/tools/toolutil/pkg_genc.c + + cp -r icu build_host + mkdir build_cross + + chmod +x icu/source/{runConfigureICU,configure,install-sh} + cd build_host + ../icu/source/runConfigureICU LinuxRedHat \ + --prefix=/usr \ + --mandir=$PKG/usr/man \ + --enable-shared \ + --disable-samples \ + --disable-tests \ + --enable-rpath + make + + cd $SRC/build_cross + CC="$CTARGET-gcc" CXX="$CTARGET-g++" \ + CFLAGS="$SAVED_CFLAGS -I$CLFS/usr/include" CXXFLAGS="$CFLAGS" \ + RANLIB="$SAVED_RANLIB" AR="$SAVED_AR" \ + ../icu/source/runConfigureICU LinuxRedHat \ + --build=$CHOST \ + --host=$CTARGET \ + --prefix=/usr \ + --mandir=$PKG/usr/man \ + --enable-shared \ + --disable-samples \ + --disable-tests \ + --enable-rpath \ + --with-cross-build=$SRC/build_host + + make CC="$CTARGET-gcc" CXX="$CTARGET-g++" \ + CFLAGS="$SAVED_CFLAGS -I$CLFS/usr/include" CXXFLAGS="$CFLAGS" \ + AR="$SAVED_AR" RANLIB="$SAVED_RANLIB" LD="$SAVED_LD" + + make prefix=$PKG/usr install + + rm $PKG/usr/share/icu/$version/license.html +} diff --git a/icu/icu-4.4.2-arm-assembler.patch b/icu/icu-4.4.2-arm-assembler.patch new file mode 100644 index 0000000..332f99c --- /dev/null +++ b/icu/icu-4.4.2-arm-assembler.patch @@ -0,0 +1,30 @@ +Description: change gcc assembler syntax to use % not @; % works for both x86 and ARM +Origin: upstream, http://www.icu-project.org/trac/changeset/28107 +Bug: http://bugs.icu-project.org/trac/ticket/7664 +Bug-Debian: http://bugs.debian.org/589076 + +Index: icu-4.4.1/source/tools/toolutil/pkg_genc.c +=================================================================== +diff -adNru icu-4.4.1.orig/source/tools/toolutil/pkg_genc.c icu-4.4.1/source/tools/toolutil/pkg_genc.c +--- icu-4.4.1.orig/source/tools/toolutil/pkg_genc.c 2010-04-28 15:27:46.000000000 +0000 ++++ icu-4.4.1/source/tools/toolutil/pkg_genc.c 2010-07-14 18:30:35.000000000 +0000 +@@ -1,5 +1,5 @@ + /****************************************************************************** +- * Copyright (C) 2009, International Business Machines ++ * Copyright (C) 2009-2010, International Business Machines + * Corporation and others. All Rights Reserved. + ******************************************************************************* + */ +@@ -118,10 +118,10 @@ + } assemblyHeader[] = { + {"gcc", + ".globl %s\n" +- "\t.section .note.GNU-stack,\"\",@progbits\n" ++ "\t.section .note.GNU-stack,\"\",%%progbits\n" + "\t.section .rodata\n" + "\t.align 8\n" /* Either align 8 bytes or 2^8 (256) bytes. 8 bytes is needed. */ +- "\t.type %s,@object\n" ++ "\t.type %s,%%object\n" + "%s:\n\n", + + ".long ","",HEX_0X