mirror of https://git.wownero.com/dsc/mxe.git
Merge pull request #1373 from tehnick/fix-protobuf
protobuf: use official release tarball instead of tarball from git tag
This commit is contained in:
commit
6fc5ea3714
|
@ -4,21 +4,19 @@
|
||||||
PKG := protobuf
|
PKG := protobuf
|
||||||
$(PKG)_IGNORE :=
|
$(PKG)_IGNORE :=
|
||||||
$(PKG)_VERSION := 2.6.1
|
$(PKG)_VERSION := 2.6.1
|
||||||
$(PKG)_CHECKSUM := 2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1
|
$(PKG)_CHECKSUM := dbbd7bdd2381633995404de65a945ff1a7610b0da14593051b4738c90c6dd164
|
||||||
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
|
||||||
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
|
||||||
$(PKG)_URL := https://github.com/google/$(PKG)/archive/$($(PKG)_VERSION).tar.gz
|
$(PKG)_URL := https://github.com/google/protobuf/releases/download/v$($(PKG)_VERSION)/$($(PKG)_FILE)
|
||||||
$(PKG)_DEPS := gcc zlib googletest
|
$(PKG)_DEPS := gcc zlib
|
||||||
|
|
||||||
define $(PKG)_UPDATE
|
define $(PKG)_UPDATE
|
||||||
$(call MXE_GET_GITHUB_TAGS, google/protobuf, v)
|
$(call MXE_GET_GITHUB_TAGS, google/protobuf, v)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(PKG)_BUILD
|
define $(PKG)_BUILD
|
||||||
$(call PREPARE_PKG_SOURCE,googletest,$(1))
|
|
||||||
cd '$(1)' && mv googletest-release-$(googletest_VERSION)/ gtest
|
|
||||||
# First step: Build for host system in order to create "protoc" binary.
|
# First step: Build for host system in order to create "protoc" binary.
|
||||||
cd '$(1)' && ./autogen.sh && ./configure \
|
cd '$(1)' && ./configure \
|
||||||
--disable-shared
|
--disable-shared
|
||||||
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
||||||
cp '$(1)/src/protoc' '$(PREFIX)/bin/$(TARGET)-protoc'
|
cp '$(1)/src/protoc' '$(PREFIX)/bin/$(TARGET)-protoc'
|
||||||
|
|
Loading…
Reference in New Issue