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"
|
2013-05-28 01:55:01 +02:00
|
|
|
- "unzip"
|
2011-10-06 06:13:57 +02:00
|
|
|
reference_datetime: "2011-01-30 00:00:00"
|
|
|
|
remotes: []
|
|
|
|
files:
|
2012-10-29 02:40:49 +01:00
|
|
|
- "qt-everywhere-opensource-src-4.8.3.tar.gz"
|
2013-09-30 08:46:26 +02:00
|
|
|
- "bitcoin-deps-win32-gitian-r9.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
|
|
|
|
echo "f1f72974f924861be04019f49f07cd43ab3c95056db2ba8f34b283487cccc728 qt-everywhere-opensource-src-4.8.3.tar.gz" | sha256sum -c
|
|
|
|
|
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:
|
2013-09-30 08:46:26 +02:00
|
|
|
unzip bitcoin-deps-win32-gitian-r9.zip
|
2013-07-22 08:50:39 +02:00
|
|
|
DEPSDIR=`pwd`
|
2011-10-06 06:13:57 +02:00
|
|
|
#
|
2012-10-29 02:40:49 +01:00
|
|
|
tar xzf qt-everywhere-opensource-src-4.8.3.tar.gz
|
|
|
|
cd qt-everywhere-opensource-src-4.8.3
|
2011-11-03 20:13:30 +01:00
|
|
|
sed 's/$TODAY/2011-01-30/' -i configure
|
2013-10-01 03:21:06 +02:00
|
|
|
sed "s/i686-pc-mingw32-/$HOST-/" -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
|
|
|
sed --posix "s|QMAKE_CFLAGS\t\t= -pipe|QMAKE_CFLAGS\t\t= -pipe -isystem /usr/$HOST/include/ -frandom-seed=qtbuild|" -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
2011-10-06 06:13:57 +02:00
|
|
|
sed 's/QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions -mthreads/QMAKE_CXXFLAGS_EXCEPTIONS_ON = -fexceptions/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
|
|
|
sed 's/QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads/QMAKE_LFLAGS_EXCEPTIONS_ON = -lmingwthrd/' -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
2013-10-01 03:21:06 +02:00
|
|
|
sed --posix "s/QMAKE_MOC\t\t= $HOST-moc/QMAKE_MOC\t\t= moc/" -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
|
|
|
sed --posix "s/QMAKE_RCC\t\t= $HOST-rcc/QMAKE_RCC\t\t= rcc/" -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
|
|
|
sed --posix "s/QMAKE_UIC\t\t= $HOST-uic/QMAKE_UIC\t\t= uic/" -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
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
|
2013-09-23 04:55:00 +02:00
|
|
|
sed --posix "s|QMAKE_LIB\t\t= $HOST-ar -ru|QMAKE_LIB\t\t= $HOME/ar -Dr|" -i mkspecs/unsupported/win32-g++-cross/qmake.conf
|
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
|
2013-07-22 08:50:39 +02:00
|
|
|
# Compile static libraries, and use statically linked openssl (-openssl-linked):
|
2013-05-28 01:55:01 +02:00
|
|
|
OPENSSL_LIBS="-L$DEPSDIR/lib -lssl -lcrypto -lgdi32" ./configure -prefix $INSTDIR -bindir $INSTDIR/host/bin -I $DEPSDIR/include -confirm-license -release -opensource -static -no-qt3support -xplatform unsupported/win32-g++-cross -no-multimedia -no-audio-backend -no-phonon -no-phonon-backend -no-declarative -no-script -no-scripttools -no-javascript-jit -no-webkit -no-svg -no-xmlpatterns -no-sql-sqlite -no-nis -no-cups -no-iconv -no-dbus -no-gif -no-libtiff -no-opengl -nomake examples -nomake demos -nomake docs -no-feature-style-plastique -no-feature-style-cleanlooks -no-feature-style-motif -no-feature-style-cde -no-feature-style-windowsce -no-feature-style-windowsmobile -no-feature-style-s60 -openssl-linked
|
2011-10-06 06:13:57 +02:00
|
|
|
find . -name *.prl | xargs -l sed 's|/\.||' -i
|
|
|
|
find . -name *.prl | xargs -l sed 's|/$||' -i
|
|
|
|
make $MAKEOPTS install
|
|
|
|
cd $INSTDIR
|
|
|
|
find . -name *.prl | xargs -l sed 's|/$||' -i
|
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
|
2013-09-23 04:55:00 +02:00
|
|
|
zip -r $OUTDIR/qt-win32-4.8.3-gitian-r4.zip *
|