mingw: update fetch script to Pidgin 2.10.10
[siplcs.git] / contrib / mingw-cross-compile / fetch.sh
blobe1f5d831fc185a167cbae573561d8439b88ae253
1 #!/bin/bash
3 # Based on:
5 # http://code.google.com/p/pidgin-privacy-please/wiki/HowToCrossCompileForWindowsAgainstLatestPidgin
7 # Latest Windows Pidgin build instractions:
9 # https://developer.pidgin.im/wiki/BuildingWinPidgin
11 # Check these page for latest MinGW/Pidgin URLs if you get fetch errors!
13 # update Pidgin version here
14 export PIDGIN_VERSION=2.10.10
16 # must be absolute path
17 export PIDGIN_DEV_ROOT=$(pwd -P)/build-${PIDGIN_VERSION}
18 export SOURCES_DIR=${PIDGIN_DEV_ROOT}/sources/
19 export DEV_DIR=${PIDGIN_DEV_ROOT}/win32-dev
20 export MINGW_DIR=${DEV_DIR}/mingw
21 export PIDGIN_DIR=${PIDGIN_DEV_ROOT}/pidgin-${PIDGIN_VERSION}
23 exec >fetch-${PIDGIN_VERSION}.log
24 set -e
26 echo 1>&2 create directory tree...
27 rm -rf ${PIDGIN_DEV_ROOT}
28 mkdir -p ${SOURCES_DIR}
29 mkdir -p ${MINGW_DIR}
31 echo 1>&2 fetching mingw...
32 cd ${SOURCES_DIR}
33 #wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/binutils-2.20/binutils-2.20-1-mingw32-bin.tar.gz
34 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/mingwrt-3.20/mingwrt-3.20-mingw32-dev.tar.gz
35 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/mingw-rt/mingwrt-3.20/mingwrt-3.20-mingw32-dll.tar.gz
36 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/w32api/w32api-3.17/w32api-3.17-2-mingw32-dev.tar.lzma
37 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/gmp/gmp-5.0.1-1/gmp-5.0.1-1-mingw32-dev.tar.lzma
38 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/libiconv/libiconv-1.14-2/libiconv-1.14-2-mingw32-dev.tar.lzma
39 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/mpfr/mpfr-2.4.1-1/mpfr-2.4.1-1-mingw32-dev.tar.lzma
40 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/pthreads-w32/pthreads-w32-2.9.0-pre-20110507-2/pthreads-w32-2.9.0-mingw32-pre-20110507-2-dev.tar.lzma
41 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/gcc-4.7.2-1/gcc-core-4.7.2-1-mingw32-bin.tar.lzma
42 wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version4/gcc-4.7.2-1/libgcc-4.7.2-1-mingw32-dll-1.tar.lzma
44 echo 1>&2 unpacking mingw...
45 cd ${MINGW_DIR}
46 for file in ${SOURCES_DIR}/*tar.gz ; do tar xzf ${file} ; done
47 for file in ${SOURCES_DIR}/*tar.lzma ; do tar xf ${file} ; done
49 echo 1>&2 fetching pidgin dev stuff...
50 cd ${SOURCES_DIR}
51 wget -nv http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.14/gtk+-bundle_2.14.7-20090119_win32.zip
52 wget -nv http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-tools-0.17.zip
53 wget -nv http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-0.17-1.zip
54 wget -nv http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2-dev_2.9.0-1_win32.zip
55 wget -nv http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_2.9.0-1_win32.zip
56 wget -nv https://developer.pidgin.im/static/win32/tcl-8.4.5.tar.gz
57 wget -nv https://developer.pidgin.im/static/win32/gtkspell-2.0.16.tar.bz2
58 wget -nv https://developer.pidgin.im/static/win32/enchant_1.6.0_win32.zip
59 wget -nv https://developer.pidgin.im/static/win32/nss-3.17.1-nspr-4.10.7.tar.gz
60 wget -nv https://developer.pidgin.im/static/win32/silc-toolkit-1.1.10.tar.gz
61 wget -nv https://developer.pidgin.im/static/win32/meanwhile-1.0.2_daa3-win32.zip
62 wget -nv https://developer.pidgin.im/static/win32/cyrus-sasl-2.1.25.tar.gz
63 wget -nv http://ftp.acc.umu.se/pub/GNOME/binaries/win32/intltool/0.40/intltool_0.40.4-1_win32.zip
64 wget -nv http://prdownloads.sourceforge.net/pidgin/pidgin-${PIDGIN_VERSION}.tar.bz2
66 echo 1>&2 unpacking pidgin dev stuff...
67 unzip ${SOURCES_DIR}/gtk+-bundle_2.14.7-20090119_win32.zip -d ${DEV_DIR}/gtk_2_0-2.14
68 unzip ${SOURCES_DIR}/gettext-tools-0.17.zip -d ${DEV_DIR}/gettext-0.17
69 unzip ${SOURCES_DIR}/gettext-runtime-0.17-1.zip -d ${DEV_DIR}/gettext-0.17
70 unzip ${SOURCES_DIR}/libxml2-dev_2.9.0-1_win32.zip -d ${DEV_DIR}/libxml2-2.9.0
71 unzip ${SOURCES_DIR}/libxml2_2.9.0-1_win32.zip -d ${DEV_DIR}/libxml2-2.9.0
72 unzip ${SOURCES_DIR}/enchant_1.6.0_win32.zip -d ${DEV_DIR}/enchant_1.6.0_win32
73 unzip ${SOURCES_DIR}/meanwhile-1.0.2_daa3-win32.zip -d ${DEV_DIR}
74 unzip ${SOURCES_DIR}/intltool_0.40.4-1_win32.zip -d ${DEV_DIR}/intltool_0.40.4-1_win32
76 cd ${DEV_DIR}
77 tar xzf ${SOURCES_DIR}/tcl-8.4.5.tar.gz
78 tar xjf ${SOURCES_DIR}/gtkspell-2.0.16.tar.bz2
79 tar xzf ${SOURCES_DIR}/nss-3.17.1-nspr-4.10.7.tar.gz
80 tar xzf ${SOURCES_DIR}/silc-toolkit-1.1.10.tar.gz
81 tar xzf ${SOURCES_DIR}/cyrus-sasl-2.1.25.tar.gz
83 cd ${PIDGIN_DEV_ROOT}
84 tar xjf ${SOURCES_DIR}/pidgin-${PIDGIN_VERSION}.tar.bz2
86 echo 1>&2 done