[vlc-devel] [PATCH 4/4] tools: don't compile protoc anymore

Steve Lhomme robux4 at ycbcr.xyz
Thu Feb 14 16:53:35 CET 2019


it's all done in contribs now
---
 extras/tools/bootstrap    | 17 -----------------
 extras/tools/packages.mak |  3 ---
 extras/tools/tools.mak    | 18 ------------------
 3 files changed, 38 deletions(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index fd399315fe..1d23818616 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -119,22 +119,6 @@ else
 fi
 }
 
-check_majmin() {
-if ! $1 --version >/dev/null 2>&1 && ! $1 -version >/dev/null 2>&1 && ! $1 --version 2>/dev/null
-then
-    echo "$1 not found"
-    NEEDED="$NEEDED $1"
-else
-    # found, need to check version ?
-    if [ -z "$2" ];then
-        FOUND="$FOUND $1"
-    else
-        gotver=`$1 --version | head -1 | sed s/'.* '//`
-        check_version_majmin $1 $gotver $2
-    fi
-fi
-}
-
 check autoconf 2.69
 check automake 1.15
 check m4 1.4.16
@@ -145,7 +129,6 @@ check yasm
 check_tar
 check ragel
 check_sed
-check_majmin protoc 3.1.0
 check ant
 check xz
 check bison 3.0.0
diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
index 97ef3fc9b7..061263df96 100644
--- a/extras/tools/packages.mak
+++ b/extras/tools/packages.mak
@@ -45,9 +45,6 @@ SED_URL=$(GNU)/sed/sed-$(SED_VERSION).tar.bz2
 ANT_VERSION=1.9.7
 ANT_URL=$(APACHE)/ant/binaries/apache-ant-$(ANT_VERSION)-bin.tar.bz2
 
-PROTOBUF_VERSION := 3.1.0
-PROTOBUF_URL := https://github.com/google/protobuf/releases/download/v$(PROTOBUF_VERSION)/protobuf-cpp-$(PROTOBUF_VERSION).tar.gz
-
 BISON_VERSION=3.0.4
 BISON_URL=$(GNU)/bison/bison-$(BISON_VERSION).tar.xz
 
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index 63e5e62668..bfaba6df8f 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -317,24 +317,6 @@ DISTCLEAN_PKG += apache-ant-$(ANT_VERSION).tar.bz2
 CLEAN_FILE += .buildant
 
 
-# Protobuf Protoc
-
-protobuf-$(PROTOBUF_VERSION).tar.gz:
-	$(call download_pkg,$(PROTOBUF_URL),protobuf)
-
-protobuf: protobuf-$(PROTOBUF_VERSION).tar.gz
-	$(UNPACK)
-	$(MOVE)
-
-.buildprotoc: protobuf
-	(cd $< && ./configure --prefix="$(PREFIX)" --disable-shared --enable-static && $(MAKE) && $(MAKE) install)
-	(find $(PREFIX) -name 'protobuf*.pc' -exec rm -f {} \;)
-	touch $@
-
-CLEAN_PKG += protobuf
-DISTCLEAN_PKG += protobuf-$(PROTOBUF_VERSION).tar.gz
-CLEAN_FILE += .buildprotoc
-
 #
 # GNU bison
 #
-- 
2.17.1



More information about the vlc-devel mailing list