2013-07-21 23:50:39 -07:00
|
|
|
---
|
|
|
|
name: "protobuf-win32"
|
|
|
|
suites:
|
2013-09-22 19:55:00 -07:00
|
|
|
- "precise"
|
2013-07-21 23:50:39 -07:00
|
|
|
architectures:
|
2013-09-22 19:55:00 -07:00
|
|
|
- "amd64"
|
2013-07-21 23:50:39 -07:00
|
|
|
packages:
|
2013-09-22 19:55:00 -07:00
|
|
|
- "mingw-w64"
|
|
|
|
- "g++-mingw-w64"
|
2013-07-21 23:50:39 -07: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-27 16:55:01 -07:00
|
|
|
export INSTALLPREFIX=$OUTDIR/staging/deps
|
2013-09-22 19:55:00 -07:00
|
|
|
export HOST=i686-w64-mingw32
|
2013-10-31 20:47:56 -07:00
|
|
|
# Integrity Check
|
|
|
|
echo "13bfc5ae543cf3aa180ac2485c0bc89495e3ae711fc6fab4f8ffe90dfb4bb677 protobuf-2.5.0.tar.bz2" | sha256sum -c
|
|
|
|
|
2013-05-27 16:55:01 -07:00
|
|
|
#
|
|
|
|
mkdir -p $INSTALLPREFIX
|
|
|
|
|
2013-07-21 23:50:39 -07: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-27 16:55:01 -07:00
|
|
|
mkdir -p $INSTALLPREFIX/host/bin
|
|
|
|
cp src/protoc $INSTALLPREFIX/host/bin
|
2013-07-21 23:50:39 -07:00
|
|
|
# Now recompile with the mingw cross-compiler:
|
|
|
|
make distclean
|
2013-05-27 16:55:01 -07:00
|
|
|
./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS=-frandom-seed=11
|
2013-07-21 23:50:39 -07:00
|
|
|
make
|
2013-05-27 16:55:01 -07:00
|
|
|
make install
|
|
|
|
cd $INSTALLPREFIX
|
2013-09-18 19:40:02 -07:00
|
|
|
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
|
|
|
|
export FAKETIME=$REFERENCE_DATETIME
|
2013-09-22 19:55:00 -07:00
|
|
|
zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r3.zip include lib host
|
2013-09-18 19:40:02 -07:00
|
|
|
unset LD_PRELOAD
|
|
|
|
unset FAKETIME
|