Difference between revisions of "ICU"

From CBLFS
Jump to navigationJump to search
m (32Bit)
(64Bit)
 
(4 intermediate revisions by 3 users not shown)
Line 21: Line 21:
  
 
  cd source &&
 
  cd source &&
  ./configure --prefix=/usr &&
+
for x in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ; do
 +
  sed -i -e "/^${x} =.*/s:@${x}@::" config/Makefile.inc.in
 +
done &&
 +
  ./configure --prefix=/usr \
 +
  --disable-debug --disable-samples &&
 
  make
 
  make
  
Line 35: Line 39:
  
 
  cd source &&
 
  cd source &&
 +
for x in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ; do
 +
  sed -i -e "/^${x} =.*/s:@${x}@::" config/Makefile.inc.in
 +
done &&
 
  USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} \
 
  USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} \
        CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
+
    CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
        ./configure --prefix=/usr --libdir=/usr/lib &&
+
    ./configure --prefix=/usr --libdir=/usr/lib \
 +
      --disable-debug --disable-samples &&
 
  make
 
  make
  
Line 60: Line 68:
  
 
  cd source &&
 
  cd source &&
USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} \
+
for x in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ; do
        CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
+
  sed -i -e "/^${x} =.*/s:@${x}@::" config/Makefile.inc.in
        ./configure --prefix=/usr --libdir=/usr/lib &&
+
done &&
make
+
USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} \
 +
    CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 +
    ./configure --prefix=/usr --libdir=/usr/lib64 \
 +
      --disable-debug --disable-samples &&
 +
make
  
 
Install the package:
 
Install the package:
Line 69: Line 81:
 
  make install &&
 
  make install &&
 
  mv -v /usr/bin/icu-config{,-64} &&
 
  mv -v /usr/bin/icu-config{,-64} &&
  ln -sfv multiarch_wrapper icu-config
+
  ln -sfv multiarch_wrapper /usr/bin/icu-config
  
 
== Contents ==
 
== Contents ==
Line 84: Line 96:
 
|libicudata.so, libicuuc.so, libicui18n.so, libicule.so, libiculx.so, libicutu.so, libicutest.so, libicuio.so
 
|libicudata.so, libicuuc.so, libicui18n.so, libicule.so, libiculx.so, libicutu.so, libicutest.so, libicuio.so
 
|}
 
|}
 +
 +
[[Category:General Utilities]]

Latest revision as of 17:44, 23 June 2009

Download Source: http://download.icu-project.org/files/icu4c/4.2.1/icu4c-4_2_1-src.tgz

Introduction to ICU

ICU (International Components for Unicode) is a mature, widely used set of C/C++ and Java libraries providing Unicode and Globalization support for software applications.

Project Homepage: http://site.icu-project.org


Dependencies

Optional

Non-Multilib

Compile the package:

cd source &&
for x in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ; do
  sed -i -e "/^${x} =.*/s:@${x}@::" config/Makefile.inc.in
done &&
./configure --prefix=/usr \
  --disable-debug --disable-samples &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

cd source &&
for x in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ; do
  sed -i -e "/^${x} =.*/s:@${x}@::" config/Makefile.inc.in
done &&
USE_ARCH=32 PKG_CONFIG_PATH=${PKG_CONFIG_PATH32} \
    CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
    ./configure --prefix=/usr --libdir=/usr/lib \
      --disable-debug --disable-samples &&
make

Install the package:

make install &&
mv -v /usr/bin/icu-config{,-32}

N32

Compile the package:

To do ...

Install the package:

make install

64Bit

Compile the package:

cd source &&
for x in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ; do
  sed -i -e "/^${x} =.*/s:@${x}@::" config/Makefile.inc.in
done &&
USE_ARCH=64 PKG_CONFIG_PATH=${PKG_CONFIG_PATH64} \
    CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
    ./configure --prefix=/usr --libdir=/usr/lib64 \
      --disable-debug --disable-samples &&
make

Install the package:

make install &&
mv -v /usr/bin/icu-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/icu-config

Contents

Installed Directories: /usr/include/unicode, /usr/include/layout, /usr/share/icu/4.2.1
Installed Programs: makeconv, genrb, derb, genuca, genbrk, genctd, gencnval, gensprep, genccode, gencmn, icupkg, pkgdata, icuswap, uconv, icu-config
Installed Libraries: libicudata.so, libicuuc.so, libicui18n.so, libicule.so, libiculx.so, libicutu.so, libicutest.so, libicuio.so
Retrieved from "?title=ICU&oldid=18497"