annotate src/protobuf.mk @ 5893:53a6c7df43f8

Mesa 3D: Update to version 21.1.8. * src/mesa.mk: Update version and checksum. * src/mesa-2-uninitialized.patch: Remove file. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Thu, 16 Sep 2021 22:37:45 +0200
parents 7e8c6bb47c21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4558
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3480
diff changeset
7 $(PKG)_CHECKSUM := e0138dd2d8fd2433508838bb4aab4db926a0d6fe
2746
a69eb5b6d9a5 Add package protobuf (google protocol buffers).
lotodore <pokerth@lotharmay.de>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
4558
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3480
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3480
diff changeset
10 $(PKG)_URL := https://github.com/google/$(PKG)/archive/v$($(PKG)_VERSION).tar.gz
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
4558
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3480
diff changeset
14 $(WGET) -q -O- 'https://github.com/google/protobuf/tags' | \
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3480
diff changeset
15 $(SED) -n 's|.*releases/tag/v\([^"]*\).*|\1|p' | $(SORT) -V | \
7e8c6bb47c21 update: additional pkg update updates
John D
parents: 3480
diff changeset
16 tail -1
2746
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