2011-10-06 06:13:57 +02:00
|
|
|
---
|
|
|
|
name: "qt"
|
|
|
|
suites:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "precise"
|
2011-10-06 06:13:57 +02:00
|
|
|
architectures:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "amd64"
|
2011-10-06 06:13:57 +02:00
|
|
|
packages:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "mingw-w64"
|
|
|
|
- "g++-mingw-w64"
|
2011-10-06 06:13:57 +02:00
|
|
|
- "zip"
|
2013-09-05 14:38:59 +02:00
|
|
|
- "unzip"
|
2011-10-06 06:13:57 +02:00
|
|
|
- "faketime"
|
2014-01-13 16:32:42 +01:00
|
|
|
- "libz-dev"
|
2011-10-06 06:13:57 +02:00
|
|
|
reference_datetime: "2011-01-30 00:00:00"
|
|
|
|
remotes: []
|
|
|
|
files:
|
2014-01-13 16:32:42 +01:00
|
|
|
- "qt-everywhere-opensource-src-5.2.0.tar.gz"
|
2014-01-14 08:24:31 +01:00
|
|
|
- "bitcoin-deps-win32-gitian-r10.zip"
|
2011-10-06 06:13:57 +02:00
|
|
|
script: |
|
2013-09-23 04:55:00 +02:00
|
|
|
#
|
|
|
|
HOST=i686-w64-mingw32
|
2011-10-06 06:13:57 +02:00
|
|
|
INSTDIR="$HOME/qt/"
|
2013-11-01 04:47:56 +01:00
|
|
|
# Integrity Check
|
2014-01-13 16:32:42 +01:00
|
|
|
echo "395ec72277c5786c65b8163ef5817fd03d0a1f524a6d47f53624baf8056f1081 qt-everywhere-opensource-src-5.2.0.tar.gz" | sha256sum -c
|
2013-11-01 04:47:56 +01:00
|
|
|
|
2011-10-06 06:13:57 +02:00
|
|
|
mkdir $INSTDIR
|
2013-05-28 01:55:01 +02:00
|
|
|
mkdir -p $INSTDIR/host/bin
|
2013-07-22 08:50:39 +02:00
|
|
|
#
|
|
|
|
# Need mingw-compiled openssl from bitcoin-deps:
|
2014-01-14 08:24:31 +01:00
|
|
|
unzip bitcoin-deps-win32-gitian-r10.zip
|
2013-07-22 08:50:39 +02:00
|
|
|
DEPSDIR=`pwd`
|
2011-10-06 06:13:57 +02:00
|
|
|
#
|
2014-01-13 16:32:42 +01:00
|
|
|
tar xzf qt-everywhere-opensource-src-5.2.0.tar.gz
|
|
|
|
cd qt-everywhere-opensource-src-5.2.0
|
|
|
|
SPECNAME="win32-g++"
|
|
|
|
SPECFILE="qtbase/mkspecs/${SPECNAME}/qmake.conf"
|
2011-11-03 20:13:30 +01:00
|
|
|
sed 's/$TODAY/2011-01-30/' -i configure
|
2014-01-13 16:32:42 +01:00
|
|
|
sed --posix "s|QMAKE_CFLAGS = -pipe -fno-keep-inline-dllexport|QMAKE_CFLAGS\t\t= -pipe -fno-keep-inline-dllexport -isystem /usr/$HOST/include/ -frandom-seed=qtbuild -I$DEPSDIR/include|" -i ${SPECFILE}
|
|
|
|
sed --posix "s|QMAKE_LFLAGS =|QMAKE_LFLAGS\t\t= -L$DEPSDIR/lib|" -i ${SPECFILE}
|
2011-11-03 20:13:30 +01:00
|
|
|
# ar adds timestamps to every object file included in the static library
|
|
|
|
# providing -D as ar argument is supposed to solve it, but doesn't work as qmake strips off the arguments and adds -M to pass a script...
|
|
|
|
# which somehow cannot be combined with other flags.
|
|
|
|
# use faketime only for ar, as it confuses make/qmake into hanging sometimes
|
2014-01-13 16:32:42 +01:00
|
|
|
sed --posix "s|QMAKE_LIB = \\\$\\\${CROSS_COMPILE}ar -ru|QMAKE_LIB\t\t= $HOME/ar -Dr|" -i ${SPECFILE}
|
2011-11-03 20:13:30 +01:00
|
|
|
echo '#!/bin/bash' > $HOME/ar
|
|
|
|
echo 'export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1' >> $HOME/ar
|
2013-10-01 03:21:06 +02:00
|
|
|
echo "$HOST-ar \"\$@\"" >> $HOME/ar
|
2011-11-03 20:13:30 +01:00
|
|
|
chmod +x $HOME/ar
|
|
|
|
#export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
2011-10-06 06:13:57 +02:00
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
|
|
|
export TZ=UTC
|
2014-01-13 16:32:42 +01:00
|
|
|
#
|
2013-07-22 08:50:39 +02:00
|
|
|
# Compile static libraries, and use statically linked openssl (-openssl-linked):
|
2014-01-13 16:32:42 +01:00
|
|
|
OPENSSL_LIBS="-L$DEPSDIR/lib -lssl -lcrypto -lgdi32" ./configure -prefix $INSTDIR -bindir $INSTDIR/host/bin -confirm-license -release -opensource -static -xplatform $SPECNAME -device-option CROSS_COMPILE="$HOST-" -no-audio-backend -no-javascript-jit -no-sql-sqlite -no-sql-odbc -no-nis -no-cups -no-iconv -no-dbus -no-gif -no-opengl -no-compile-examples -no-feature-style-windowsce -no-feature-style-windowsmobile -no-qml-debug -openssl-linked -skip qtsvg -skip qtwebkit -skip qtwebkit-examples -skip qtserialport -skip qtdeclarative -skip qtmultimedia -skip qtimageformats -skip qtlocation -skip qtsensors -skip qtquick1 -skip qtquickcontrols -skip qtactiveqt -skip qtconnectivity -skip qtwinextras -skip qtxmlpatterns -skip qtscript -skip qtdoc -system-libpng -system-zlib
|
2011-10-06 06:13:57 +02:00
|
|
|
make $MAKEOPTS install
|
|
|
|
cd $INSTDIR
|
2011-11-03 20:13:30 +01:00
|
|
|
|
|
|
|
# as zip stores file timestamps, use faketime to intercept stat calls to set dates for all files to reference date
|
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
2014-01-13 16:32:42 +01:00
|
|
|
zip -r $OUTDIR/qt-win32-5.2.0-gitian-r1.zip *
|