master hovercats/oakiss / repo / icu / build
 1#!/bin/sh -e
 2
 3export CXXFLAGS="$CXXFLAGS -static-libstdc++ -static-libgcc"
 4
 5# Change the order for checking installed compilers as
 6# the ccache clang symlink might exist, but clang might not be installed.
 7sed 's/clang gcc cc/cc clang gcc/g' icu4c/source/configure > _
 8mv -f _ icu4c/source/configure
 9sed 's/clang++ g++ c++/c++ clang++ g++/g' icu4c/source/configure > _
10mv -f _ icu4c/source/configure
11
12# license installation seems to give us a symolic link loop, which breaks the install
13sed '/LICENSE/d' icu4c/source/Makefile.in > _
14mv -f _ icu4c/source/Makefile.in
15
16sh icu4c/source/configure \
17    --prefix=/usr \
18    --sbindir=/usr/bin
19
20make
21make DESTDIR="$1" install
22
23# Compress manpages
24find "$1/usr/share/man" -type f -exec gzip -n -9 {} +