2012-02-07 08:52:40 -08:00
|
|
|
---
|
|
|
|
name: "bitcoin-deps"
|
|
|
|
suites:
|
2013-09-22 19:55:00 -07:00
|
|
|
- "precise"
|
2012-02-07 08:52:40 -08:00
|
|
|
architectures:
|
2013-09-22 19:55:00 -07:00
|
|
|
- "amd64"
|
2012-09-21 23:51:03 -07:00
|
|
|
packages:
|
2013-09-22 19:55:00 -07:00
|
|
|
- "mingw-w64"
|
|
|
|
- "g++-mingw-w64"
|
2012-02-07 08:52:40 -08:00
|
|
|
- "git-core"
|
2012-02-22 19:09:06 -08:00
|
|
|
- "zip"
|
2012-02-07 08:52:40 -08:00
|
|
|
- "faketime"
|
|
|
|
- "wine"
|
2013-05-22 03:20:07 -07:00
|
|
|
- "psmisc"
|
2012-02-07 08:52:40 -08:00
|
|
|
reference_datetime: "2011-01-30 00:00:00"
|
|
|
|
remotes: []
|
|
|
|
files:
|
2012-09-21 23:51:03 -07:00
|
|
|
- "openssl-1.0.1c.tar.gz"
|
2012-02-07 08:52:40 -08:00
|
|
|
- "db-4.8.30.NC.tar.gz"
|
|
|
|
- "miniupnpc-1.6.tar.gz"
|
|
|
|
- "zlib-1.2.6.tar.gz"
|
2012-02-22 19:09:06 -08:00
|
|
|
- "libpng-1.5.9.tar.gz"
|
2012-02-07 08:52:40 -08:00
|
|
|
- "qrencode-3.2.0.tar.bz2"
|
|
|
|
script: |
|
2012-02-22 19:09:06 -08:00
|
|
|
#
|
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
|
|
|
export TZ=UTC
|
2013-05-27 16:55:01 -07:00
|
|
|
export INSTALLPREFIX=$OUTDIR/staging/deps
|
2013-09-22 19:55:00 -07:00
|
|
|
export HOST=i686-w64-mingw32
|
2012-02-07 08:52:40 -08:00
|
|
|
#
|
2013-05-27 16:55:01 -07:00
|
|
|
mkdir -p $INSTALLPREFIX
|
|
|
|
|
2012-09-21 23:51:03 -07:00
|
|
|
tar xzf openssl-1.0.1c.tar.gz
|
|
|
|
cd openssl-1.0.1c
|
2013-05-27 16:55:01 -07:00
|
|
|
./Configure --cross-compile-prefix=$HOST- mingw --openssldir=$INSTALLPREFIX
|
2012-02-07 08:52:40 -08:00
|
|
|
make
|
2013-05-27 16:55:01 -07:00
|
|
|
make install_sw
|
2012-02-07 08:52:40 -08:00
|
|
|
cd ..
|
|
|
|
#
|
|
|
|
tar xzf db-4.8.30.NC.tar.gz
|
|
|
|
cd db-4.8.30.NC/build_unix
|
2013-09-18 12:35:33 -07:00
|
|
|
../dist/configure --prefix=$INSTALLPREFIX --enable-mingw --enable-cxx --host=$HOST --disable-shared
|
2013-05-27 16:55:01 -07:00
|
|
|
make $MAKEOPTS library_build
|
|
|
|
make install_lib install_include
|
2012-02-07 08:52:40 -08:00
|
|
|
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
|
2013-05-27 16:55:01 -07:00
|
|
|
mkdir -p dll
|
|
|
|
make -f Makefile.mingw DLLWRAP=$HOST-dllwrap CC=$HOST-gcc AR=$HOST-ar libminiupnpc.a
|
|
|
|
install -d $INSTALLPREFIX/include/miniupnpc
|
|
|
|
install *.h $INSTALLPREFIX/include/miniupnpc
|
|
|
|
install libminiupnpc.a $INSTALLPREFIX/lib
|
2012-02-07 08:52:40 -08:00
|
|
|
cd ..
|
|
|
|
#
|
|
|
|
tar xzf zlib-1.2.6.tar.gz
|
|
|
|
cd zlib-1.2.6
|
2013-05-27 16:55:01 -07:00
|
|
|
CROSS_PREFIX=$HOST- ./configure --prefix=$INSTALLPREFIX --static
|
|
|
|
make
|
|
|
|
make install
|
2012-02-07 08:52:40 -08:00
|
|
|
cd ..
|
|
|
|
#
|
2012-02-22 19:09:06 -08:00
|
|
|
tar xzf libpng-1.5.9.tar.gz
|
|
|
|
cd libpng-1.5.9
|
2013-05-27 16:55:01 -07:00
|
|
|
CFLAGS="-I$INSTALLPREFIX/include" LDFLAGS="-L$INSTALLPREFIX/lib" ./configure --disable-shared --prefix=$INSTALLPREFIX --host=$HOST
|
2012-02-07 08:52:40 -08:00
|
|
|
make $MAKEOPTS
|
2013-05-27 16:55:01 -07:00
|
|
|
make install
|
2012-02-07 08:52:40 -08:00
|
|
|
cd ..
|
|
|
|
#
|
|
|
|
tar xjf qrencode-3.2.0.tar.bz2
|
|
|
|
cd qrencode-3.2.0
|
2013-09-22 19:55:00 -07:00
|
|
|
png_CFLAGS="-I$INSTALLPREFIX/include" png_LIBS="-L$INSTALLPREFIX/lib -lpng" ./configure --prefix=$INSTALLPREFIX --host=$HOST
|
2013-05-27 16:55:01 -07:00
|
|
|
make
|
|
|
|
make install
|
2012-02-07 08:52:40 -08:00
|
|
|
cd ..
|
|
|
|
#
|
2013-05-27 16:55:01 -07:00
|
|
|
cd $INSTALLPREFIX
|
2013-09-22 19:55:00 -07:00
|
|
|
zip -r $OUTDIR/bitcoin-deps-win32-gitian-r8.zip include lib
|
2012-02-22 19:09:06 -08:00
|
|
|
# Kill wine processes as gitian won't figure out we are done otherwise
|
|
|
|
killall wineserver services.exe explorer.exe winedevice.exe
|