summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2011-01-21 14:09:28 -0600
committerJames Maki <jmaki@multitech.com>2011-01-21 14:09:28 -0600
commit567381e3aa7cc8ab72daf411c2db9644f0c4cd06 (patch)
treeb53f2d0696314a4657a093ac12e2bb2a8634c8d3
parent909b0aa1a6708cb268bbd63442365e00e9340a2b (diff)
protobuf
-rw-r--r--recipes/protobuf/protobuf-native_2.3.0.bb7
-rw-r--r--recipes/protobuf/protobuf.inc8
-rw-r--r--recipes/protobuf/protobuf_2.3.0.bb11
3 files changed, 26 insertions, 0 deletions
diff --git a/recipes/protobuf/protobuf-native_2.3.0.bb b/recipes/protobuf/protobuf-native_2.3.0.bb
new file mode 100644
index 0000000000..c2b79de1e1
--- /dev/null
+++ b/recipes/protobuf/protobuf-native_2.3.0.bb
@@ -0,0 +1,7 @@
+require protobuf.inc
+
+PR = "r0"
+
+SRC_URI[tarball.md5sum] = f2964f636b3c67d1e9d8b90819fa8ddb
+
+inherit native
diff --git a/recipes/protobuf/protobuf.inc b/recipes/protobuf/protobuf.inc
new file mode 100644
index 0000000000..0869a14636
--- /dev/null
+++ b/recipes/protobuf/protobuf.inc
@@ -0,0 +1,8 @@
+DESCRIPTION = "Google Protocol Buffers"
+HOMEPAGE = "http://www.google.com/"
+PRIORITY = "optional"
+LICENSE = "BSD"
+
+SRC_URI = "http://protobuf.googlecode.com/files/protobuf-${PV}.tar.bz2;name=tarball"
+
+inherit autotools
diff --git a/recipes/protobuf/protobuf_2.3.0.bb b/recipes/protobuf/protobuf_2.3.0.bb
new file mode 100644
index 0000000000..6efb8f7889
--- /dev/null
+++ b/recipes/protobuf/protobuf_2.3.0.bb
@@ -0,0 +1,11 @@
+require protobuf.inc
+
+PR = "r0"
+
+DEPENDS = "protobuf-native"
+
+SRC_URI[tarball.md5sum] = f2964f636b3c67d1e9d8b90819fa8ddb
+
+# use native protoc for running unit tests
+EXTRA_OECONF += "--with-protoc=${STAGING_BINDIR_NATIVE}/protoc"
+