]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
build: provide a simple ./configure means of enabling bintray staticlib cache
authorAdam Sutton <dev@adamsutton.me.uk>
Mon, 18 Jan 2016 17:11:31 +0000 (17:11 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Mon, 18 Jan 2016 17:16:25 +0000 (17:16 +0000)
Makefile.static
configure

index f645dc3ac6fb121c767544afaf45bbe4152e0cee..85fecc51a67f9e2e43aeaec41c5cf56f66bacf5d 100644 (file)
 #   BINTRAY_REPO  - The repo to upload to
 #
 
-MAKEFILE ?= $(firstword $(MAKEFILE_LIST))
+MAKEFILE      ?= $(firstword $(MAKEFILE_LIST))
+
+# ./configure override
+BINTRAY_CACHE ?= $(CONFIG_BINTRAY_CACHE)
 
 default: liball
 
@@ -57,7 +60,7 @@ export BINTRAY_REPO
 # Download cache
 .PHONY: libcacheget
 libcacheget:
-ifneq ($(BINTRAY_CACHE),)
+ifeq ($(BINTRAY_CACHE),yes)
        @( $(ROOTDIR)/support/lib.sh download $(LIB_NAME) &&\
         $(ROOTDIR)/support/lib.sh unpack $(LIB_NAME) ) || true
 endif
index 5e972e165afeb2c68d3c814158006597de2328da..03297a5ac9945cee0467d6a09ed6800c0cbd2d16 100755 (executable)
--- a/configure
+++ b/configure
@@ -56,6 +56,7 @@ OPTIONS=(
   "tsdebug:no"
   "gtimer_check:no"
   "libsystemd_daemon:no"
+  "bintray_cache:yes"
 )
 
 #
@@ -653,7 +654,6 @@ if enabled_or_auto libsystemd_daemon; then
   fi
 fi
 
-
 # ###########################################################################
 # Write config
 # ###########################################################################