Commit 3aec21f2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: touch downloaded file

wget uses the timestamp from the server, which is nice in theory, but
breaks makefile dependency propagation.
parent 6c8b2093
......@@ -6,7 +6,7 @@ A52DEC_URL := $(CONTRIB_VIDEOLAN)/a52dec-$(A52DEC_VERSION).tar.gz
PKGS += a52
$(TARBALLS)/a52dec-$(A52DEC_VERSION).tar.gz:
$(DOWNLOAD) $(A52DEC_URL)
$(call download,$(A52DEC_URL))
.sum-a52: a52dec-$(A52DEC_VERSION).tar.gz
......
......@@ -7,7 +7,7 @@ PKGS += directx
endif
$(TARBALLS)/directx-oss.tar.bz2:
$(DOWNLOAD) $(DX_HEADERS_URL)
$(call download,$(DX_HEADERS_URL))
.sum-directx: directx-oss.tar.bz2
......
......@@ -11,13 +11,13 @@ PKGS += dshow
endif
$(TARBALLS)/dshow-headers-oss.tar.bz2:
$(DOWNLOAD) $(DSHOW_HEADERS_URL)
$(call download,$(DSHOW_HEADERS_URL))
$(TARBALLS)/dxva2api.h:
$(DOWNLOAD) $(DXVA2_URL)
$(call download,$(DXVA2_URL))
$(TARBALLS)/d2d_headers.tar.gz:
$(DOWNLOAD) $(D2D_URL) -O $@
$(call download,$(D2D_URL) -O $@)
DSHOW_SOURCES := dshow-headers-oss.tar.bz2 dxva2api.h d2d_headers.tar.gz
......
......@@ -5,7 +5,7 @@ EBML_URL := http://dl.matroska.org/downloads/libebml/libebml-$(EBML_VERSION).tar
#EBML_URL := $(CONTRIB_VIDEOLAN)/libebml-$(EBML_VERSION).tar.bz2
$(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2:
$(DOWNLOAD) $(EBML_URL)
$(call download,$(EBML_URL))
.sum-ebml: libebml-$(EBML_VERSION).tar.bz2
......
......@@ -6,7 +6,7 @@ FLAC_URL := $(SF)/flac/flac-$(FLAC_VERSION).tar.gz
PKGS += flac
$(TARBALLS)/flac-$(FLAC_VERSION).tar.gz:
$(DOWNLOAD) $(FLAC_URL)
$(call download,$(FLAC_URL))
.sum-flac: flac-$(FLAC_VERSION).tar.gz
......
......@@ -5,7 +5,7 @@ LIVEDOTCOM_URL := http://live555.com/liveMedia/public/live555-latest.tar.gz
PKGS += live555
$(TARBALLS)/live555-latest.tar.gz:
$(DOWNLOAD) $(LIVEDOTCOM_URL)
$(call download,$(LIVEDOTCOM_URL))
.sum-live555: live555-latest.tar.gz
......
......@@ -22,7 +22,7 @@ endif
PKGS += lua
$(TARBALLS)/lua-$(LUA_VERSION).tar.gz:
$(DOWNLOAD) $(LUA_URL)
$(call download,$(LUA_URL))
.sum-lua: lua-$(LUA_VERSION).tar.gz
......
......@@ -157,7 +157,10 @@ else
HOSTCONF += --with-pic
endif
DOWNLOAD = cd $(TARBALLS) && $(WGET) -nc
download = rm -f $@.tmp && \
$(WGET) -p -O $@.tmp $(1) && \
touch $@.tmp && \
mv $@.tmp $@
checksum = (cd $(TARBALLS) && $(1)sum -c -) < \
$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS
CHECK_SHA256 = $(call checksum,sha512,SHA512)
......
......@@ -7,7 +7,7 @@ MATROSKA_URL := http://dl.matroska.org/downloads/libmatroska/libmatroska-$(MATRO
PKGS += matroska
$(TARBALLS)/libmatroska-$(MATROSKA_VERSION).tar.bz2:
$(DOWNLOAD) $(MATROSKA_URL)
$(call download,$(MATROSKA_URL))
.sum-matroska: libmatroska-$(MATROSKA_VERSION).tar.bz2
......
......@@ -9,7 +9,7 @@ OGG_CVSROOT := :pserver:anoncvs@xiph.org:/usr/local/cvsroot
NEED_OGG = $(call need_pkg,"ogg >= 1.0")
$(TARBALLS)/libogg-$(OGG_VERSION).tar.xz:
$(DOWNLOAD) $(OGG_URL)
$(call download,$(OGG_URL))
.sum-ogg: libogg-$(OGG_VERSION).tar.xz
......
......@@ -6,7 +6,7 @@ SHOUT_URL := http://downloads.us.xiph.org/releases/libshout/libshout-$(SHOUT_VER
PKGS += shout
$(TARBALLS)/libshout-$(SHOUT_VERSION).tar.gz:
$(DOWNLOAD) $(SHOUT_URL)
$(call download,$(SHOUT_URL))
.sum-shout: libshout-$(SHOUT_VERSION).tar.gz
......
......@@ -6,7 +6,7 @@ SPEEX_URL := http://downloads.us.xiph.org/releases/speex/speex-$(SPEEX_VERSION).
PKGS += speex
$(TARBALLS)/speex-$(SPEEX_VERSION).tar.gz:
$(DOWNLOAD) $(SPEEX_URL)
$(call download,$(SPEEX_URL))
.sum-speex: speex-$(SPEEX_VERSION).tar.gz
......
......@@ -7,7 +7,7 @@ THEORA_URL := http://downloads.xiph.org/releases/theora/libtheora-$(THEORA_VERSI
PKGS += theora
$(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
$(DOWNLOAD) $(THEORA_URL)
$(call download,$(THEORA_URL))
.sum-theora: libtheora-$(THEORA_VERSION).tar.xz
......
......@@ -12,7 +12,7 @@ PKGS += vorbisenc
endif
$(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz:
$(DOWNLOAD) $(VORBIS_URL)
$(call download,$(VORBIS_URL))
.sum-vorbis: libvorbis-$(VORBIS_VERSION).tar.xz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment