binutils: allow static linking
[openadk.git] / package / protobuf / Makefile
blob10920ae2fa635b5f59678bbb303e912aea689abf
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 PKG_NAME:= protobuf
7 PKG_VERSION:= 3.19.4
8 PKG_RELEASE:= 1
9 PKG_HASH:= 3bd7828aa5af4b13b99c191e8b1e884ebfa9ad371b0ce264605d347f135d2568
10 PKG_DESCR:= extensible mechanism for serializing structured data
11 PKG_SECTION:= libs/misc
12 PKG_URL:= https://developers.google.com/protocol-buffers/
13 PKG_BUILDDEP:= protobuf-host
14 PKG_NEEDS:= c++
15 PKG_SITES:= https://github.com/google/protobuf/archive/
16 PKG_OPTS:= dev
18 DISTFILES:= v$(PKG_VERSION).tar.gz
20 include $(ADK_TOPDIR)/mk/host.mk
21 include $(ADK_TOPDIR)/mk/package.mk
23 $(eval $(call HOST_template,PROTOBUF,protobuf,$(PKG_VERSION)-$(PKG_RELEASE)))
24 $(eval $(call PKG_template,PROTOBUF,protobuf,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
26 AUTOTOOL_STYLE:= autogen
27 CONFIGURE_ARGS+= --with-protoc=$(STAGING_HOST_DIR)/usr/bin/protoc
29 protobuf-install:
30 $(INSTALL_DIR) $(IDIR_PROTOBUF)/usr/lib
31 $(CP) $(WRKINST)/usr/lib/libprotobuf*.so* \
32 $(IDIR_PROTOBUF)/usr/lib
34 include $(ADK_TOPDIR)/mk/host-bottom.mk
35 include $(ADK_TOPDIR)/mk/pkg-bottom.mk