diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-10-24 11:39:31 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2012-10-24 11:39:31 +0200 |
commit | 345f4d4a5bcbee989d85acd2f867a3771b3f4219 (patch) | |
tree | 9ef03bc3cb5507dc8e22c7c525fc4e9633cbe940 /rules/protobuf.make | |
parent | 990dc84044174b9336f384c634ac5cf962343dd2 (diff) | |
download | ptxdist-345f4d4a5bcbee989d85acd2f867a3771b3f4219.tar.gz ptxdist-345f4d4a5bcbee989d85acd2f867a3771b3f4219.tar.xz |
protobuf: new package
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/protobuf.make')
-rw-r--r-- | rules/protobuf.make | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/protobuf.make b/rules/protobuf.make new file mode 100644 index 000000000..6a3a42c9d --- /dev/null +++ b/rules/protobuf.make @@ -0,0 +1,62 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Adrian Baumgarth <adrian.baumgarth@l-3com.com> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PROTOBUF) += protobuf + +# +# Paths and names +# +PROTOBUF_VERSION := 2.4.1 +PROTOBUF_MD5 := ed436802019c9e1f40cc750eaf78f318 +PROTOBUF := protobuf-$(PROTOBUF_VERSION) +PROTOBUF_SUFFIX := tar.bz2 +PROTOBUF_URL := http://protobuf.googlecode.com/files/$(PROTOBUF).$(PROTOBUF_SUFFIX) +PROTOBUF_SOURCE := $(SRCDIR)/$(PROTOBUF).$(PROTOBUF_SUFFIX) +PROTOBUF_DIR := $(BUILDDIR)/$(PROTOBUF) +PROTOBUF_LICENSE := BSD New + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +PROTOBUF_CONF_TOOL := autoconf +PROTOBUF_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-static \ + --$(call ptx/wwo, PTXCONF_PROTOBUF_ZLIB)-zlib \ + --with-protoc=$(PTXDIST_SYSROOT_HOST)/bin/protoc + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/protobuf.targetinstall: + @$(call targetinfo) + + @$(call install_init, protobuf) + @$(call install_fixup, protobuf,PRIORITY,optional) + @$(call install_fixup, protobuf,SECTION,base) + @$(call install_fixup, protobuf,AUTHOR,"Adrian Baumgarth <adrian.baumgarth@l-3com.com>") + @$(call install_fixup, protobuf,DESCRIPTION,missing) + + @$(call install_lib, protobuf, 0, 0, 0644, libprotobuf-lite) + @$(call install_lib, protobuf, 0, 0, 0644, libprotobuf) + + @$(call install_finish, protobuf) + + @$(call touch) + +# vim: syntax=make |