mirror of https://github.com/bitcoin/bitcoin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.5 KiB
79 lines
2.5 KiB
---
|
|
name: "bitcoin"
|
|
suites:
|
|
- "lucid"
|
|
architectures:
|
|
- "i386"
|
|
packages:
|
|
- "mingw32"
|
|
- "git-core"
|
|
- "unzip"
|
|
- "nsis"
|
|
reference_datetime: "2011-01-30 00:00:00"
|
|
remotes:
|
|
- "url": "https://github.com/bitcoin/bitcoin.git"
|
|
"dir": "bitcoin"
|
|
files:
|
|
- "wxWidgets-2.9.2.tar.bz2"
|
|
- "boost_1_47_0.tar.bz2"
|
|
- "openssl-1.0.0d.tar.gz"
|
|
- "db-4.8.30.NC.tar.gz"
|
|
- "miniupnpc-1.6.tar.gz"
|
|
script: |
|
|
#
|
|
tar xjf wxWidgets-2.9.2.tar.bz2
|
|
cd wxWidgets-2.9.2
|
|
./configure --host=i586-mingw32msvc --build=i686-linux --disable-shared --enable-monolithic --without-libpng --disable-svg
|
|
perl -i -p -e "s/__TIME__/\"$REFERENCE_TIME\"/;s/__DATE__/\"$REFERENCE_DATE\"/" include/wx/chartype.h
|
|
make $MAKEOPTS
|
|
cd ..
|
|
#
|
|
tar xzf openssl-1.0.0d.tar.gz
|
|
cd openssl-1.0.0d
|
|
./Configure --cross-compile-prefix=i586-mingw32msvc- mingw
|
|
make
|
|
cd ..
|
|
#
|
|
tar xzf db-4.8.30.NC.tar.gz
|
|
cd db-4.8.30.NC/build_unix
|
|
../dist/configure --enable-mingw --enable-cxx --host=i586-mingw32msvc CFLAGS="-I/usr/i586-mingw32msvc/include"
|
|
make $MAKEOPTS
|
|
cd ../..
|
|
#
|
|
tar xjf boost_1_47_0.tar.bz2
|
|
cd boost_1_47_0
|
|
echo "using gcc : 4.4 : i586-mingw32msvc-g++
|
|
:
|
|
<rc>i586-mingw32msvc-windres
|
|
<archiver>i586-mingw32msvc-ar
|
|
;" > user-config.jam
|
|
./bootstrap.sh --without-icu
|
|
./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
|
|
cd ..
|
|
#
|
|
tar xzf miniupnpc-1.6.tar.gz
|
|
cd miniupnpc-1.6
|
|
sed 's/dllwrap -k --driver-name gcc/$(DLLWRAP) -k --driver-name $(CC)/' -i Makefile.mingw
|
|
sed 's|wingenminiupnpcstrings $< $@|./wingenminiupnpcstrings $< $@|' -i Makefile.mingw
|
|
make -f Makefile.mingw DLLWRAP=i586-mingw32msvc-dllwrap CC=i586-mingw32msvc-gcc AR=i586-mingw32msvc-ar
|
|
cd ..
|
|
mv miniupnpc-1.6 miniupnpc
|
|
#
|
|
cd bitcoin
|
|
mkdir -p $OUTDIR/src
|
|
cp -a . $OUTDIR/src
|
|
rm -rf $OUTDIR/src/.git
|
|
cp -a $OUTDIR/src/locale $OUTDIR
|
|
cp $OUTDIR/src/doc/README_windows.txt $OUTDIR/readme.txt
|
|
cp $OUTDIR/src/COPYING $OUTDIR/license.txt
|
|
cd src
|
|
sed 's/$(DEBUGFLAGS)//' -i makefile.linux-mingw
|
|
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoin.exe USE_UPNP=1
|
|
make -f makefile.linux-mingw $MAKEOPTS DEPSDIR=$HOME/build bitcoind.exe USE_UPNP=0
|
|
i586-mingw32msvc-strip bitcoin.exe
|
|
i586-mingw32msvc-strip bitcoind.exe
|
|
makensis ../share/setup.nsi
|
|
cp bitcoin.exe ../share/bitcoin-*-win32-setup.exe $OUTDIR/
|
|
mkdir $OUTDIR/daemon
|
|
cp bitcoind.exe $OUTDIR/daemon
|