Commit c07175b0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Extras: add protoc

parent d0a6d771
......@@ -80,6 +80,7 @@ check yasm
check_tar
check ragel
check_sed
check protoc
[ -n "$NEEDED" ] && mkdir -p build/
......
......@@ -42,3 +42,7 @@ SED_URL=$(GNU)/sed/sed-$(SED_VERSION).tar.bz2
ANT_VERSION=1.9.4
ANT_URL=$(APACHE)/ant/binaries/apache-ant-$(ANT_VERSION)-bin.tar.bz2
PROTOBUF_VERSION := 2.5.0
PROTOBUF_URL := https://protobuf.googlecode.com/files/protobuf-$(PROTOBUF_VERSION).tar.bz2
......@@ -265,6 +265,24 @@ CLEAN_PKG += ant
DISTCLEAN_PKG += apache-ant-$(ANT_VERSION).tar.bz2
CLEAN_FILE += .ant
# Protobuf Protoc
protobuf-$(PROTOBUF_VERSION).tar.bz2:
$(call download,$(PROTOBUF_URL))
protobuf: protobuf-$(PROTOBUF_VERSION).tar.bz2
$(UNPACK)
$(MOVE)
.protoc: protobuf
(cd $< && ./configure --prefix="$(PREFIX)" && $(MAKE) && $(MAKE) install)
touch $@
CLEAN_PKG += protobuf
DISTCLEAN_PKG += protobuf-$(PROTOBUF_VERSION).tar.bz2
CLEAN_FILE += .protoc
#
#
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment