diff options
author | wsnipex <wsnipex@a1.net> | 2023-02-14 07:21:04 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2023-02-14 07:43:07 +0100 |
commit | caeec3983c6da9a0bb42b1fc7fba62cfa0864d07 (patch) | |
tree | bf330133f45452ba7a3790833dbf616afe046f6f /tools/depends/target/ffmpeg | |
parent | c3b0166c8ed42b58487ac69aedbee04e462a48d3 (diff) |
[depends] add download target for ffmpeg
Diffstat (limited to 'tools/depends/target/ffmpeg')
-rw-r--r-- | tools/depends/target/ffmpeg/Makefile | 15 |
1 files changed, 12 insertions, 3 deletions
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) |