~osomon/pyexiv2/pyexiv2-0.3

« back to all changes in this revision

Viewing changes to cross-compile.sh

  • Committer: Olivier Tilloy
  • Date: 2011-08-22 19:02:12 UTC
  • mfrom: (339.1.5 windows)
  • Revision ID: olivier@tilloy.net-20110822190212-ciaan0o997lnuv3r
Updated windows build dependencies:
 • iconv 1.13.1 → 1.14
 • exiv2 0.21 → 0.21.1
 • python 2.7.1 → 2.7.2
 • boost 1.45.0 → 1.47.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
# Copyright (C) 2010 Olivier Tilloy <olivier@tilloy.net>
 
3
# Copyright (C) 2010-2011 Olivier Tilloy <olivier@tilloy.net>
4
4
#
5
5
# This program is free software: you can redistribute it and/or modify
6
6
# it under the terms of the GNU General Public License as published by
20
20
# pyexiv2 for windows on a linux host.
21
21
#
22
22
# Typical dependencies (of this script) on an Ubuntu system:
23
 
#  wget unzip tar build-essential mingw32 p7zip-full bjam
 
23
#  wget unzip tar build-essential mingw32 p7zip-full
24
24
#
25
25
# After execution is complete, copy the following file and folder to the
26
26
# site-packages directory of a Python 2.6 windows setup:
48
48
unzip -d zlib zlib-*.zip
49
49
 
50
50
# iconv (for exiv2)
51
 
wget ftp://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
52
 
tar xf libiconv-1.13.1.tar.gz
53
 
cd libiconv-1.13.1
 
51
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
 
52
tar xf libiconv-1.14.tar.gz
 
53
cd libiconv-1.14
54
54
./configure --enable-static --disable-visibility --target=$PLATFORM --host=$PLATFORM --build=$BUILD --prefix=$BASE/libiconv
55
55
make -j3 install
56
56
cd ..
64
64
cd ..
65
65
 
66
66
# exiv2
67
 
wget http://exiv2.org/exiv2-0.21.tar.gz
68
 
tar xf exiv2-0.21.tar.gz
69
 
cd exiv2-0.21
 
67
wget http://www.exiv2.org/exiv2-0.21.1.tar.gz
 
68
tar xf exiv2-0.21.1.tar.gz
 
69
cd exiv2-0.21.1
70
70
./configure --disable-shared --disable-visibility --target=$PLATFORM --host=$PLATFORM --build=$BUILD --disable-nls --with-zlib=$BASE/zlib --with-libiconv-prefix=$BASE/libiconv --with-expat=$BASE/expat --prefix=$BASE/exiv2
71
71
make -j3 install
72
72
cd ..
73
73
 
74
74
# python
75
 
wget http://python.org/ftp/python/2.7.1/python-2.7.1.msi
76
 
7z x python-2.7.1.msi -opython
 
75
wget http://python.org/ftp/python/2.7.2/python-2.7.2.msi
 
76
7z x python-2.7.2.msi -opython
77
77
7z x python/python -opython
78
78
 
79
79
# boost-python
80
 
wget --trust-server-names=on http://sourceforge.net/projects/boost/files/boost/1.45.0/boost_1_45_0.tar.bz2/download
81
 
tar xf boost_1_45_0.tar.bz2
82
 
cd boost_1_45_0
 
80
wget --trust-server-names=on http://sourceforge.net/projects/boost/files/boost/1.47.0/boost_1_47_0.tar.bz2/download
 
81
tar xf boost_1_47_0.tar.bz2
 
82
cd boost_1_47_0
83
83
echo "using gcc : : $COMPILER : <compileflags>-I$BASE/python <archiver>$ARCHIVER ;" >> tools/build/v2/user-config.jam
84
 
bjam install -j 3 --prefix=$BASE/boost --with-python toolset=gcc link=static
 
84
./bootstrap.sh
 
85
./bjam install -j 3 --prefix=$BASE/boost --with-python toolset=gcc link=static
85
86
cd ..
86
87
 
87
88
# pyexiv2