aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwsnipex <wsnipex@a1.net>2023-02-14 07:21:04 +0100
committerwsnipex <wsnipex@a1.net>2023-02-14 07:43:07 +0100
commitcaeec3983c6da9a0bb42b1fc7fba62cfa0864d07 (patch)
treebf330133f45452ba7a3790833dbf616afe046f6f
parentc3b0166c8ed42b58487ac69aedbee04e462a48d3 (diff)
[depends] add download target for ffmpeg
-rw-r--r--.gitignore2
-rw-r--r--tools/depends/target/ffmpeg/Makefile15
2 files changed, 13 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 818928340c..4ae6452fc4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -264,7 +264,7 @@ cmake_install.cmake
/tools/depends/native/JsonSchemaBuilder/bin/
/tools/depends/native/TexturePacker/bin/
/tools/depends/target/ffmpeg/.ffmpeg-installed
-/tools/depends/target/ffmpeg/ffmpeg-*-*.tar.gz
+/tools/depends/target/ffmpeg/ffmpeg-*.tar.gz*
/tools/depends/target/ffmpeg/ffmpeg-*-*/
/tools/depends/target/ffmpeg/ffmpeg-install/
/tools/depends/target/ffmpeg/ffmpeg-release/
diff --git a/tools/depends/target/ffmpeg/Makefile b/tools/depends/target/ffmpeg/Makefile
index 82009bc731..807560cc8f 100644
--- a/tools/depends/target/ffmpeg/Makefile
+++ b/tools/depends/target/ffmpeg/Makefile
@@ -1,6 +1,6 @@
-include ../../Makefile.include
-include FFMPEG-VERSION ../../download-files.include
-DEPS = ../../Makefile.include FFMPEG-VERSION Makefile ../../download-files.include
+-include ../../Makefile.include
+include FFMPEG-VERSION
+DEPS = FFMPEG-VERSION Makefile ../../download-files.include
BUILD_TYPE = Release
ifeq ($(DEBUG_BUILD),yes)
@@ -21,11 +21,18 @@ ifeq ($(USE_CCACHE), yes)
endif
ifeq ($(CROSS_COMPILING), yes)
+ DEPS += ../../Makefile.include
CMAKE_ARGS+= -DPKG_CONFIG_EXECUTABLE=$(NATIVEPREFIX)/bin/pkg-config \
-DCROSSCOMPILING=$(CROSS_COMPILING)
-DCMAKE_AR=$(AR) \
-DCMAKE_RANLIB=$(RANLIB) \
-DCMAKE_STRIP=$(STRIP)
+else
+ TARBALLS_LOCATION := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
+ RETRIEVE_TOOL = curl
+ RETRIEVE_TOOL_FLAGS = -LsS --create-dirs --retry 10 --retry-connrefused -O
+ ARCHIVE_TOOL_FLAGS = --strip-components=1 -xf
+ BASE_URL := http://mirrors.kodi.tv/build-deps/sources
endif
ifeq ($(OS), android)
@@ -34,6 +41,8 @@ ifeq ($(OS), android)
endif
endif
+include ../../download-files.include
+download: $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
all: .installed-$(PLATFORM)
$(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)