2013-07-22 08:50:39 +02:00
|
|
|
---
|
|
|
|
name: "protobuf-win32"
|
|
|
|
suites:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "precise"
|
2013-07-22 08:50:39 +02:00
|
|
|
architectures:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "amd64"
|
2013-07-22 08:50:39 +02:00
|
|
|
packages:
|
2013-09-23 04:55:00 +02:00
|
|
|
- "mingw-w64"
|
|
|
|
- "g++-mingw-w64"
|
2013-07-22 08:50:39 +02:00
|
|
|
- "zip"
|
|
|
|
- "faketime"
|
|
|
|
reference_datetime: "2013-04-15 00:00:00"
|
|
|
|
remotes: []
|
|
|
|
files:
|
|
|
|
- "protobuf-2.5.0.tar.bz2"
|
|
|
|
script: |
|
|
|
|
#
|
|
|
|
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
|
|
|
# Integrity Check
|
|
|
|
echo "13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 protobuf-2.5.0.tar.bz2" | sha256sum -c
|
|
|
|
|
2013-05-28 01:55:01 +02:00
|
|
|
#
|
|
|
|
mkdir -p $INSTALLPREFIX
|
|
|
|
|
2013-07-22 08:50:39 +02:00
|
|
|
tar xjf protobuf-2.5.0.tar.bz2
|
|
|
|
cd protobuf-2.5.0
|
|
|
|
# First: build a native (linux) protoc
|
|
|
|
./configure --enable-shared=no --disable-dependency-tracking
|
|
|
|
make
|
2013-05-28 01:55:01 +02:00
|
|
|
mkdir -p $INSTALLPREFIX/host/bin
|
|
|
|
cp src/protoc $INSTALLPREFIX/host/bin
|
2013-07-22 08:50:39 +02:00
|
|
|
# Now recompile with the mingw cross-compiler:
|
|
|
|
make distclean
|
2013-05-28 01:55:01 +02:00
|
|
|
./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS=-frandom-seed=11
|
2013-07-22 08:50:39 +02:00
|
|
|
make
|
2013-05-28 01:55:01 +02:00
|
|
|
make install
|
|
|
|
cd $INSTALLPREFIX
|
2013-09-19 04:40:02 +02:00
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
2013-09-23 04:55:00 +02:00
|
|
|
zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r3.zip include lib host
|
2013-09-19 04:40:02 +02:00
|
|
|
unset LD_PRELOAD
|
|
|
|
unset FAKETIME
|