[vlc-commits] extras/tools: Allow some packages to be built as dependencies only

Hugo Beauzée-Luyssen git at videolan.org
Fri Jul 13 12:08:11 CEST 2018


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Jul 13 11:54:26 2018 +0200| [bb69cd78d267cae0ebba119145dc0cf795abd046] | committer: Hugo Beauzée-Luyssen

extras/tools: Allow some packages to be built as dependencies only

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb69cd78d267cae0ebba119145dc0cf795abd046
---

 extras/tools/bootstrap | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index df29cb68be..d9455be29a 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -145,7 +145,7 @@ check_nasm 2.13.01
 check gettext
 check help2man
 
-[ -n "$NEEDED" ] && mkdir -p build/ && echo "To-be-built packages: $NEEDED"
+DEPS_ONLY="help2man"
 
 CPUS=
 case `uname` in
@@ -179,9 +179,18 @@ done
 
 for t in $NEEDED; do
     echo .$t: .build$t >> Makefile
-    TARGETS="$TARGETS .build$t"
+    case "$t" in
+        *$DEPS_ONLY*)
+            ;; # Dependency only, not build by default
+        *)
+            PACKAGES="$PACKAGES $t"
+            TARGETS="$TARGETS .build$t"
+            ;;
+    esac
 done
 
+[ -n "$PACKAGES" ] && mkdir -p build/ && echo "To-be-built packages: $PACKAGES"
+
 cat >> Makefile << EOF
 all: $TARGETS
 	@echo "You are ready to build VLC and its contribs"



More information about the vlc-commits mailing list