5 # http://code.google.com/p/pidgin-privacy-please/wiki/HowToCrossCompileForWindowsAgainstLatestPidgin
7 # Check this page for latest MinGW/Pidgin URLs if you get fetch errors!
9 # update Pidgin version here
10 export PIDGIN_VERSION
=2.10.5
12 # must be absolute path
13 export PIDGIN_DEV_ROOT
=$
(pwd -P)/build-
${PIDGIN_VERSION}
14 export SOURCES_DIR
=${PIDGIN_DEV_ROOT}/sources
/
15 export DEV_DIR
=${PIDGIN_DEV_ROOT}/win32-dev
16 export MINGW_DIR
=${DEV_DIR}/mingw
17 export PIDGIN_DIR
=${PIDGIN_DEV_ROOT}/pidgin-
${PIDGIN_VERSION}
19 exec >fetch-
${PIDGIN_VERSION}.log
22 echo 1>&2 create directory tree...
23 rm -rf ${PIDGIN_DEV_ROOT}
24 mkdir
-p ${SOURCES_DIR}
27 echo 1>&2 fetching mingw...
29 #wget -nv http://sourceforge.net/projects/mingw/files/MinGW/Base/binutils-2.20/binutils-2.20-1-mingw32-bin.tar.gz
30 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/mingw-rt
/mingwrt-3.17
/mingwrt-3.17
-mingw32-dev.
tar.gz
31 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/mingw-rt
/mingwrt-3.17
/mingwrt-3.17
-mingw32-dll.
tar.gz
32 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/w32api
/w32api-3.14
/w32api-3.14
-mingw32-dev.
tar.gz
33 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/gcc
/Version
4/Previous
%20Release
%20gcc-4.4
.0/gmp-4.2
.4-mingw32-dll.
tar.gz
34 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/libiconv
/libiconv-1.13
.1-1/libiconv-1.13
.1-1-mingw32-dll-2.
tar.lzma
35 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/gcc
/Version
4/Previous
%20Release
%20gcc-4.4
.0/mpfr-2.4
.1-mingw32-dll.
tar.gz
36 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/gcc
/Version
4/Previous
%20Release
%20gcc-4.4
.0/pthreads-w32-2.8
.0-mingw32-dll.
tar.gz
37 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/gcc
/Version
4/Previous
%20Release
%20gcc-4.4
.0/gcc-core-4.4
.0-mingw32-bin.
tar.gz
38 wget
-nv http
://sourceforge.net
/projects
/mingw
/files
/MinGW
/Base
/gcc
/Version
4/Previous
%20Release
%20gcc-4.4
.0/gcc-core-4.4
.0-mingw32-dll.
tar.gz
40 echo 1>&2 unpacking mingw...
42 for file in ${SOURCES_DIR}/*tar.gz
; do tar xzf
${file} ; done
43 tar xf
${SOURCES_DIR}/libiconv-1.13
.1-1-mingw32-dll-2.
tar.lzma
45 echo 1>&2 fetching pidgin dev stuff...
47 wget
-nv http
://ftp.gnome.org
/pub
/gnome
/binaries
/win32
/gtk
+/2.14/gtk
+-bundle_2.14
.7-20090119_win32.
zip
48 wget
-nv http
://ftp.gnome.org
/pub
/gnome
/binaries
/win32
/dependencies
/gettext-tools-0.17.
zip
49 wget
-nv http
://ftp.gnome.org
/pub
/gnome
/binaries
/win32
/dependencies
/gettext-runtime-0.17
-1.
zip
50 wget
-nv http
://ftp.gnome.org
/pub
/gnome
/binaries
/win32
/dependencies
/libxml2-dev_2.7
.4-1_win32.
zip
51 wget
-nv http
://ftp.gnome.org
/pub
/gnome
/binaries
/win32
/dependencies
/libxml2_2.7
.4-1_win32.
zip
52 wget
-nv http
://developer.pidgin.im
/static
/win32
/tcl-8.4
.5.
tar.gz
53 wget
-nv http
://developer.pidgin.im
/static
/win32
/gtkspell-2.0
.16.
tar.bz2
54 wget
-nv http
://developer.pidgin.im
/static
/win32
/enchant_1.6
.0_win32.
zip
55 wget
-nv http
://developer.pidgin.im
/static
/win32
/nss-3.12
.5-nspr-4.8
.2.
tar.gz
56 wget
-nv http
://developer.pidgin.im
/static
/win32
/silc-toolkit-1.1
.8.
tar.gz
57 wget
-nv http
://developer.pidgin.im
/static
/win32
/meanwhile-1.0
.2_daa2-win32.
zip
58 wget
-nv http
://developer.pidgin.im
/static
/win32
/cyrus-sasl-2.1
.22-daa1.
zip
59 wget
-nv http
://ftp.acc.umu.se
/pub
/GNOME
/binaries
/win32
/intltool
/0.40/intltool_0.40
.4-1_win32.
zip
60 wget
-nv http
://prdownloads.sourceforge.net
/pidgin
/pidgin-
${PIDGIN_VERSION}.
tar.bz2
62 echo 1>&2 unpacking pidgin dev stuff...
63 unzip ${SOURCES_DIR}/gtk
+-bundle_2.14
.7-20090119_win32.
zip -d ${DEV_DIR}/gtk_2_0-2.14
64 unzip ${SOURCES_DIR}/gettext-tools-0.17.
zip -d ${DEV_DIR}/gettext-0.17
65 unzip ${SOURCES_DIR}/gettext-runtime-0.17
-1.
zip -d ${DEV_DIR}/gettext-0.17
66 unzip ${SOURCES_DIR}/libxml2-dev_2.7
.4-1_win32.
zip -d ${DEV_DIR}/libxml2-2.7
.4
67 unzip ${SOURCES_DIR}/libxml2_2.7
.4-1_win32.
zip -d ${DEV_DIR}/libxml2-2.7
.4
68 unzip ${SOURCES_DIR}/enchant_1.6
.0_win32.
zip -d ${DEV_DIR}/enchant_1.6
.0_win32
69 unzip ${SOURCES_DIR}/meanwhile-1.0
.2_daa2-win32.
zip -d ${DEV_DIR}
70 unzip ${SOURCES_DIR}/cyrus-sasl-2.1
.22-daa1.
zip -d ${DEV_DIR}
71 unzip ${SOURCES_DIR}/intltool_0.40
.4-1_win32.
zip -d ${DEV_DIR}/intltool_0.40
.4-1_win32
74 tar xzf
${SOURCES_DIR}/tcl-8.4
.5.
tar.gz
75 tar xjf
${SOURCES_DIR}/gtkspell-2.0
.16.
tar.bz2
76 tar xzf
${SOURCES_DIR}/nss-3.12
.5-nspr-4.8
.2.
tar.gz
77 tar xzf
${SOURCES_DIR}/silc-toolkit-1.1
.8.
tar.gz
80 tar xjf
${SOURCES_DIR}/pidgin-
${PIDGIN_VERSION}.
tar.bz2