~zorba-coders/zorba/feature-cloudant

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
# Copyright 2006-2008 The FLWOR Foundation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#   This script is to be used to build Universal binaries of the ICU
# libraries on Mac OS X.  Universal binaries can not be built for the
# ICU libraries on single machine because the ICU configure script
# checks for endianess (see line 507 of its configure.in).  Thus we
# must use lipo to combine binaries built from separate machines which
# is what this script does.
#
# place this file in the ICU source/lib directory of the build on the host
# archecture and run it from there before doing "make install".
#
# author: Paul F. Kunz <paulfkunz@gmail.com>
# Oct 27, 2008
#
# where the libs built on the other architecure are built
OTHERLIBS=../../../libicu38

ver=38.1
lib1=libicudata.$ver.dylib
lib2=libicui18n.$ver.dylib
lib3=libicuio.$ver.dylib
lib4=libicule.$ver.dylib
lib5=libiculx.$ver.dylib
lib6=libicutu.$ver.dylib
lib7=libicuuc.$ver.dylib

lipo -create $lib1 $OTHERLIBS/$lib1 -output $lib1.fat
lipo -create $lib2 $OTHERLIBS/$lib2 -output $lib2.fat
lipo -create $lib3 $OTHERLIBS/$lib3 -output $lib3.fat
lipo -create $lib4 $OTHERLIBS/$lib4 -output $lib4.fat
lipo -create $lib5 $OTHERLIBS/$lib5 -output $lib5.fat
lipo -create $lib6 $OTHERLIBS/$lib6 -output $lib6.fat
lipo -create $lib7 $OTHERLIBS/$lib7 -output $lib7.fat

mv $lib1.fat $lib1
mv $lib2.fat $lib2
mv $lib3.fat $lib3
mv $lib4.fat $lib4
mv $lib5.fat $lib5
mv $lib6.fat $lib6
mv $lib7.fat $lib7