2012-02-07 17:52:40 +01:00
|
|
|
---
|
|
|
|
name: "bitcoin-deps"
|
|
|
|
suites:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "precise"
|
2012-02-07 17:52:40 +01:00
|
|
|
architectures:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "amd64"
|
2012-09-22 08:51:03 +02:00
|
|
|
packages:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "mingw-w64"
|
|
|
|
- "g++-mingw-w64"
|
2012-02-07 17:52:40 +01:00
|
|
|
- "git-core"
|
2012-02-23 04:09:06 +01:00
|
|
|
- "zip"
|
2012-02-07 17:52:40 +01:00
|
|
|
- "faketime"
|
2013-05-22 12:20:07 +02:00
|
|
|
- "psmisc"
|
2012-02-07 17:52:40 +01:00
|
|
|
reference_datetime: "2011-01-30 00:00:00"
|
|
|
|
remotes: []
|
|
|
|
files:
|
2012-09-22 08:51:03 +02:00
|
|
|
- "openssl-1.0.1c.tar.gz"
|
2012-02-07 17:52:40 +01:00
|
|
|
- "db-4.8.30.NC.tar.gz"
|
|
|
|
- "miniupnpc-1.6.tar.gz"
|
|
|
|
- "zlib-1.2.6.tar.gz"
|
2012-02-23 04:09:06 +01:00
|
|
|
- "libpng-1.5.9.tar.gz"
|
2012-02-07 17:52:40 +01:00
|
|
|
- "qrencode-3.2.0.tar.bz2"
|
|
|
|
script: |
|
2012-02-23 04:09:06 +01:00
|
|
|
#
|
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
|
|
|
export TZ=UTC
|
2013-05-28 01:55:01 +02:00
|
|
|
export INSTALLPREFIX=$OUTDIR/staging/deps
|
2013-09-23 04:55:00 +02:00
|
|
|
export HOST=i686-w64-mingw32
|
2013-11-01 04:47:56 +01:00
|
|
|
# Input Integrity Check
|
|
|
|
echo "2a9eb3cd4e8b114eb9179c0d3884d61658e7d8e8bf4984798a5f5bd48e325ebe openssl-1.0.1c.tar.gz" | sha256sum -c
|
|
|
|
echo "12edc0df75bf9abd7f82f821795bcee50f42cb2e5f76a6a281b85732798364ef db-4.8.30.NC.tar.gz" | sha256sum -c
|
2013-12-03 01:04:50 +01:00
|
|
|
echo "bbd6b756e6af44b5a5b0f9b93eada3fb8922ed1d6451b7d6f184d0ae0c813994 miniupnpc-1.6.tar.gz" | sha256sum -c
|
2013-11-01 04:47:56 +01:00
|
|
|
echo "21235e08552e6feba09ea5e8d750805b3391c62fb81c71a235c0044dc7a8a61b zlib-1.2.6.tar.gz" | sha256sum -c
|
|
|
|
echo "b75dae26151f9b031062c8d2f577a094b08da0ae44fe8c11175d0b9ff434cc02 libpng-1.5.9.tar.gz" | sha256sum -c
|
|
|
|
echo "03c4bc7cd9a75747c3815d509bbe061907d615764f2357923f0db948c567068f qrencode-3.2.0.tar.bz2" | sha256sum -c
|
|
|
|
|
2013-05-28 01:55:01 +02:00
|
|
|
mkdir -p $INSTALLPREFIX
|
|
|
|
|
2012-09-22 08:51:03 +02:00
|
|
|
tar xzf openssl-1.0.1c.tar.gz
|
|
|
|
cd openssl-1.0.1c
|
2013-05-28 01:55:01 +02:00
|
|
|
./Configure --cross-compile-prefix=$HOST- mingw --openssldir=$INSTALLPREFIX
|
2012-02-07 17:52:40 +01:00
|
|
|
make
|
2013-05-28 01:55:01 +02:00
|
|
|
make install_sw
|
2012-02-07 17:52:40 +01:00
|
|
|
cd ..
|
|
|
|
#
|
|
|
|
tar xzf db-4.8.30.NC.tar.gz
|
|
|
|
cd db-4.8.30.NC/build_unix
|
2013-09-18 21:35:33 +02:00
|
|
|
../dist/configure --prefix=$INSTALLPREFIX --enable-mingw --enable-cxx --host=$HOST --disable-shared
|
2013-05-28 01:55:01 +02:00
|
|
|
make $MAKEOPTS library_build
|
|
|
|
make install_lib install_include
|
2012-02-07 17:52:40 +01:00
|
|
|
cd ../..
|
|
|
|
#
|
|
|
|
tar xzf miniupnpc-1.6.tar.gz
|
|
|
|
cd miniupnpc-1.6
|
2013-09-30 08:46:26 +02:00
|
|
|
echo "
|
|
|
|
--- miniupnpc-1.6/Makefile.mingw.orig 2013-09-29 18:52:51.014087958 -1000
|
|
|
|
+++ miniupnpc-1.6/Makefile.mingw 2013-09-29 19:09:29.663318691 -1000
|
|
|
|
@@ -67,8 +67,8 @@
|
|
|
|
|
|
|
|
wingenminiupnpcstrings.o: wingenminiupnpcstrings.c
|
|
|
|
|
|
|
|
-miniupnpcstrings.h: miniupnpcstrings.h.in wingenminiupnpcstrings
|
|
|
|
- wingenminiupnpcstrings \$< \$@
|
|
|
|
+miniupnpcstrings.h: miniupnpcstrings.h.in
|
|
|
|
+ sed -e 's|OS/version|MSWindows/5.1.2600|' -e 's|MINIUPNPC_VERSION_STRING \"version\"|MINIUPNPC_VERSION_STRING \"VERSIONHERE\"|' \$< > \$@
|
|
|
|
|
|
|
|
minixml.o: minixml.c minixml.h miniupnpcstrings.h
|
|
|
|
|
|
|
|
" | sed "s/VERSIONHERE/$(cat VERSION)/" | patch -p1
|
2013-05-28 01:55:01 +02:00
|
|
|
mkdir -p dll
|
2013-09-30 08:46:26 +02:00
|
|
|
make -f Makefile.mingw CC=$HOST-gcc AR=$HOST-ar libminiupnpc.a
|
2013-05-28 01:55:01 +02:00
|
|
|
install -d $INSTALLPREFIX/include/miniupnpc
|
|
|
|
install *.h $INSTALLPREFIX/include/miniupnpc
|
|
|
|
install libminiupnpc.a $INSTALLPREFIX/lib
|
2012-02-07 17:52:40 +01:00
|
|
|
cd ..
|
|
|
|
#
|
|
|
|
tar xzf zlib-1.2.6.tar.gz
|
|
|
|
cd zlib-1.2.6
|
2013-05-28 01:55:01 +02:00
|
|
|
CROSS_PREFIX=$HOST- ./configure --prefix=$INSTALLPREFIX --static
|
|
|
|
make
|
|
|
|
make install
|
2012-02-07 17:52:40 +01:00
|
|
|
cd ..
|
|
|
|
#
|
2012-02-23 04:09:06 +01:00
|
|
|
tar xzf libpng-1.5.9.tar.gz
|
|
|
|
cd libpng-1.5.9
|
2013-05-28 01:55:01 +02:00
|
|
|
CFLAGS="-I$INSTALLPREFIX/include" LDFLAGS="-L$INSTALLPREFIX/lib" ./configure --disable-shared --prefix=$INSTALLPREFIX --host=$HOST
|
2012-02-07 17:52:40 +01:00
|
|
|
make $MAKEOPTS
|
2013-05-28 01:55:01 +02:00
|
|
|
make install
|
2012-02-07 17:52:40 +01:00
|
|
|
cd ..
|
|
|
|
#
|
|
|
|
tar xjf qrencode-3.2.0.tar.bz2
|
|
|
|
cd qrencode-3.2.0
|
2013-09-23 04:55:00 +02:00
|
|
|
png_CFLAGS="-I$INSTALLPREFIX/include" png_LIBS="-L$INSTALLPREFIX/lib -lpng" ./configure --prefix=$INSTALLPREFIX --host=$HOST
|
2013-05-28 01:55:01 +02:00
|
|
|
make
|
|
|
|
make install
|
2012-02-07 17:52:40 +01:00
|
|
|
cd ..
|
|
|
|
#
|
2013-05-28 01:55:01 +02:00
|
|
|
cd $INSTALLPREFIX
|
2013-09-30 08:46:26 +02:00
|
|
|
zip -r $OUTDIR/bitcoin-deps-win32-gitian-r9.zip include lib
|