Mercurial > mxe-octave
annotate src/protobuf.mk @ 4039:1c72016826aa
of-fl-core: update patch for --enable-64
* src/of-fl-core-1-fixes.patch: update patch
author | John Donoghue |
---|---|
date | Wed, 30 Sep 2015 14:11:45 -0400 |
parents | 13be64f9f16d |
children | 7e8c6bb47c21 |
rev | line source |
---|---|
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
1 # This file is part of MXE. |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
2 # See index.html for further information. |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
3 |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
4 PKG := protobuf |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
5 $(PKG)_IGNORE := |
3480
13be64f9f16d
move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents:
3048
diff
changeset
|
6 $(PKG)_VERSION := 2.4.1 |
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
7 $(PKG)_CHECKSUM := df5867e37a4b51fb69f53a8baf5b994938691d6d |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2 |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
10 $(PKG)_URL := http://protobuf.googlecode.com/files/$($(PKG)_FILE) |
3048
5ef49fb3299d
treat gcc and binutils as build tools
John W. Eaton <jwe@octave.org>
parents:
3031
diff
changeset
|
11 $(PKG)_DEPS := zlib |
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
12 |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
13 define $(PKG)_UPDATE |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
14 $(WGET) -q -O- 'http://code.google.com/p/protobuf/downloads/list?sort=-uploaded' | \ |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
15 $(SED) -n 's,.*protobuf-\([0-9][^<]*\)\.tar.*,\1,p' | \ |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
16 head -1 |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
17 endef |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
18 |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
19 define $(PKG)_BUILD |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
20 # First step: Build for host system in order to create "protoc" binary. |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2752
diff
changeset
|
22 $(ENABLE_SHARED_OR_STATIC) |
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
23 $(MAKE) -C '$(1)' -j '$(JOBS)' |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
24 cp '$(1)/src/protoc' '$(1)/src/protoc_host' |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
25 $(MAKE) -C '$(1)' -j 1 distclean |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
26 # Second step: Build for target system. |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
27 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
28 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
29 --prefix='$(HOST_PREFIX)' \ |
2855
47558e958113
Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents:
2752
diff
changeset
|
30 $(ENABLE_SHARED_OR_STATIC) \ |
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
31 --with-zlib \ |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
32 --with-protoc=src/protoc_host |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
33 $(MAKE) -C '$(1)' -j '$(JOBS)' |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
34 $(MAKE) -C '$(1)' -j 1 install |
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
35 |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
36 '$(MXE_CXX)' \ |
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
37 -W -Wall -Werror -ansi -pedantic \ |
3014
b6c7244a2f66
Use HOST_BINDIR, HOST_LIBDIR, and HOST_INCDIR instead of MXE_BINDIR, MXE_LIBDIR, and MXE_INCDIR. Attempt to use these variables consistently instead of using $(HOST_PREFIX)/bin, $(HOST_PREFIX)/lib, and $(HOST_PREFIX)/include
John W. Eaton <jwe@octave.org>
parents:
3013
diff
changeset
|
38 '$(2).cpp' -o '$(HOST_BINDIR)/test-protobuf.exe' \ |
3031
951da75fd09c
improve handling of cross tool prefix
John W. Eaton <jwe@octave.org>
parents:
3014
diff
changeset
|
39 `'$(MXE_PKG_CONFIG)' protobuf --cflags --libs` |
2746
a69eb5b6d9a5
Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff
changeset
|
40 endef |