diff --git a/libs/protobuf/Makefile b/libs/protobuf/Makefile index 1553a7e..789fbb1 100644 --- a/libs/protobuf/Makefile +++ b/libs/protobuf/Makefile @@ -8,17 +8,17 @@ include $(TOPDIR)/rules.mk PKG_NAME:=protobuf -PKG_VERSION:=2.5.0 +PKG_VERSION:=2.6.1 PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 -PKG_SOURCE_URL:=http://protobuf.googlecode.com/files -PKG_MD5SUM:=a72001a9067a4c2c4e0e836d0f92ece4 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://github.com/google/protobuf/releases/download/$(PKG_VERSION)/ +PKG_MD5SUM:=f3916ce13b7fcb3072a1fa8cf02b2423 PKG_BUILD_DEPENDS:=protobuf/host -PKG_USE_MIPS16:=0 PKG_INSTALL:=1 +HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk @@ -33,19 +33,27 @@ define Package/protobuf endef define Package/protobuf/description - Protocol Buffers are a way of encoding structured data in an efficient - yet extensible format. Google uses Protocol Buffers for almost all - of its internal RPC protocols and file formats. + From package description: + "Protocol buffers are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data - think XML, but smaller, faster, and simpler. + You define how you want your data to be structured once, then you can use special generated source code to easily write and read your structured data to and from a variety of data streams and using a variety of languages - Java, C++, or Python." endef define Host/Compile $(MAKE) -C $(HOST_BUILD_DIR) endef +define Host/Prepare + $(call Host/Prepare/Default) +endef + + + define Host/Install + $(Host/Install/Default) + $(MAKE) -C $(HOST_BUILD_DIR) install endef -CONFIGURE_ARGS += --with-protoc=$(HOST_BUILD_DIR)/src/protoc +CONFIGURE_ARGS += --with-protoc=$(STAGING_DIR_HOST)/bin/protoc define Build/InstallDev $(INSTALL_DIR) \