12 reference_datetime: "2011-01-30 00:00:00"
14 - "url": "https://github.com/bitcoin/bitcoin.git"
17 - "wxWidgets-2.9.2.tar.bz2"
18 - "boost_1_47_0.tar.bz2"
19 - "openssl-1.0.0d.tar.gz"
20 - "db-4.8.30.NC.tar.gz"
21 - "miniupnpc-1.6.tar.gz"
24 tar xjf wxWidgets-2.9.2.tar.bz2
26 ./configure --host=i586-mingw32msvc --build=i686-linux --disable-shared --enable-monolithic --without-libpng --disable-svg
27 perl -i -p -e "s/__TIME__/\"$REFERENCE_TIME\"/;s/__DATE__/\"$REFERENCE_DATE\"/" include/wx/chartype.h
31 tar xzf openssl-1.0.0d.tar.gz
33 ./Configure --cross-compile-prefix=i586-mingw32msvc- mingw
37 tar xzf db-4.8.30.NC.tar.gz
38 cd db-4.8.30.NC/build_unix
39 ../dist/configure --enable-mingw --enable-cxx --host=i586-mingw32msvc CFLAGS="-I/usr/i586-mingw32msvc/include"
43 tar xjf boost_1_47_0.tar.bz2
45 echo "using gcc : 4.4 : i586-mingw32msvc-g++
47 <rc>i586-mingw32msvc-windres
48 <archiver>i586-mingw32msvc-ar
50 ./bootstrap.sh --without-icu
51 ./bjam toolset=gcc target-os=windows threadapi=win32 threading=multi --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete $MAKEOPTS stage
54 tar xzf miniupnpc-1.6.tar.gz
56 sed 's/dllwrap -k --driver-name gcc/$(DLLWRAP) -k --driver-name $(CC)/' -i Makefile.mingw
57 sed 's|wingenminiupnpcstrings $< $@|./wingenminiupnpcstrings $< $@|' -i Makefile.mingw
58 make -f Makefile.mingw DLLWRAP=i586-mingw32msvc-dllwrap CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar
60 mv miniupnpc-1.6 miniupnpc
65 rm -rf $OUTDIR/src/.git
66 cp -a $OUTDIR/src/locale $OUTDIR
67 cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt
68 cp $OUTDIR/src/COPYING $OUTDIR/license.txt
70 sed 's/$(DEBUGFLAGS)//' -i makefile.linux-mingw
71 make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoin.exe USE_UPNP=1
72 make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0
73 i586-mingw32msvc-strip bitcoin.exe
74 i586-mingw32msvc-strip bitcoind.exe
75 makensis ../share/setup.nsi
76 cp bitcoin.exe ../share/bitcoin-*-win32-setup.exe $OUTDIR/
78 cp bitcoind.exe $OUTDIR/daemon