Luke Dashjr
13 years ago
2 changed files with 66 additions and 42 deletions
@ -0,0 +1,63 @@ |
|||||||
|
--- |
||||||
|
name: "bitcoin-deps" |
||||||
|
suites: |
||||||
|
- "lucid" |
||||||
|
architectures: |
||||||
|
- "i386" |
||||||
|
packages: |
||||||
|
- "mingw32" |
||||||
|
- "git-core" |
||||||
|
- "unzip" |
||||||
|
- "faketime" |
||||||
|
- "wine" |
||||||
|
reference_datetime: "2011-01-30 00:00:00" |
||||||
|
remotes: [] |
||||||
|
files: |
||||||
|
- "openssl-1.0.0e.tar.gz" |
||||||
|
- "db-4.8.30.NC.tar.gz" |
||||||
|
- "miniupnpc-1.6.tar.gz" |
||||||
|
- "zlib-1.2.6.tar.gz" |
||||||
|
- "libpng-1.5.8.tar.gz" |
||||||
|
- "qrencode-3.2.0.tar.bz2" |
||||||
|
script: | |
||||||
|
# |
||||||
|
tar xzf openssl-1.0.0e.tar.gz |
||||||
|
cd openssl-1.0.0e |
||||||
|
./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 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 |
||||||
|
# |
||||||
|
tar xzf zlib-1.2.6.tar.gz |
||||||
|
cd zlib-1.2.6 |
||||||
|
make -f win32/Makefile.gcc PREFIX=i586-mingw32msvc- $MAKEOPTS |
||||||
|
cd .. |
||||||
|
# |
||||||
|
tar xzf libpng-1.5.8.tar.gz |
||||||
|
cd libpng-1.5.8 |
||||||
|
./configure CC=i586-mingw32msvc-cc AR=i586-mingw32msvc-ar STRIP=i586-mingw32msvc-strip RANLIB=i586-mingw32msvc-ranlib OBJDUMP=i586-mingw32msvc-objdump LD=i586-mingw32msvc-ld LDFLAGS="-L../zlib-1.2.6/" CFLAGS="-I../zlib-1.2.6/" |
||||||
|
make $MAKEOPTS |
||||||
|
cd .. |
||||||
|
# |
||||||
|
tar xjf qrencode-3.2.0.tar.bz2 |
||||||
|
cd qrencode-3.2.0 |
||||||
|
./configure CC=i586-mingw32msvc-cc AR=i586-mingw32msvc-ar STRIP=i586-mingw32msvc-strip RANLIB=i586-mingw32msvc-ranlib OBJDUMP=i586-mingw32msvc-objdump LD=i586-mingw32msvc-ld png_LIBS="../libpng-1.5.8/.libs/libpng15.a ../zlib-1.2.6/libz.a" png_CFLAGS="-I../libpng-1.5.8" |
||||||
|
make $MAKEOPTS |
||||||
|
cd .. |
||||||
|
# |
||||||
|
tar cjvpf "$OUTDIR/bitcoin-deps-0.0.1.tbz2" "$HOME/build" |
||||||
|
|
||||||
|
|
Loading…
Reference in new issue