aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian-descriptors/protobuf-win32.yml
blob: ad676e5654b82a3118a12635b970733f6b806e88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
name: "protobuf-win32"
suites:
- "lucid"
architectures:
- "i386"
packages:
- "mingw32"
- "zip"
- "faketime"
reference_datetime: "2013-04-15 00:00:00"
remotes: []
files:
- "protobuf-2.5.0.tar.bz2"
script: |
  #
  export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
  export FAKETIME=$REFERENCE_DATETIME
  export TZ=UTC
  export INSTALLPREFIX=$OUTDIR/staging/deps
  export HOST=i586-mingw32msvc
  #
  #
  mkdir -p $INSTALLPREFIX

  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
  mkdir -p $INSTALLPREFIX/host/bin
  cp src/protoc $INSTALLPREFIX/host/bin
  # Now recompile with the mingw cross-compiler:
  make distclean
  ./configure --prefix=$INSTALLPREFIX --enable-shared=no --disable-dependency-tracking --with-protoc=$INSTALLPREFIX/host/bin/protoc --host=$HOST CXXFLAGS=-frandom-seed=11
  make
  make install
  cd $INSTALLPREFIX
  zip -r $OUTDIR/protobuf-win32-2.5.0-gitian-r2.zip include lib host