[vlc-devel] [PATCH 2/4] contrib: add protobuf
Adrien Maglo
magsoft at videolan.org
Fri Aug 1 11:22:07 CEST 2014
From: Felix Paul Kühne <fkuehne at videolan.org>
---
contrib/src/protobuf/SHA512SUMS | 1 +
contrib/src/protobuf/rules.mak | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
create mode 100644 contrib/src/protobuf/SHA512SUMS
create mode 100644 contrib/src/protobuf/rules.mak
diff --git a/contrib/src/protobuf/SHA512SUMS b/contrib/src/protobuf/SHA512SUMS
new file mode 100644
index 0000000..1367522
--- /dev/null
+++ b/contrib/src/protobuf/SHA512SUMS
@@ -0,0 +1 @@
+5994b3669808b82fef5c860ecad36358c0767f84acac877e7bfcf722e59d972835a955714149bdd4158fbd1328a51d01397a563991d26475351ee72be48142ee protobuf-2.5.0.tar.bz2
diff --git a/contrib/src/protobuf/rules.mak b/contrib/src/protobuf/rules.mak
new file mode 100644
index 0000000..e62347c
--- /dev/null
+++ b/contrib/src/protobuf/rules.mak
@@ -0,0 +1,23 @@
+# protobuf
+
+PROTOBUF_VERSION := 2.5.0
+
+PROTOBUF_URL := https://protobuf.googlecode.com/files/protobuf-$(PROTOBUF_VERSION).tar.bz2
+
+PKGS += protobuf
+DEPS_protobuf = zlib
+
+$(TARBALLS)/protobuf-$(PROTOBUF_VERSION).tar.bz2:
+ $(call download,$(PROTOBUF_URL))
+
+.sum-protobuf: protobuf-$(PROTOBUF_VERSION).tar.bz2
+
+protobuf: protobuf-$(PROTOBUF_VERSION).tar.bz2 .sum-protobuf
+ $(UNPACK)
+ $(MOVE)
+
+.protobuf: protobuf
+ $(RECONF)
+ cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+ cd $< && $(MAKE) install
+ touch $@
--
1.9.1
More information about the vlc-devel
mailing list