[vlc-commits] contrib: use VPATH to symplify tarball dependencies

Rémi Denis-Courmont git at videolan.org
Tue Jun 28 18:45:33 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jun 28 15:57:26 2011 +0300| [aeaf6f780cb3cae9b5c0dbcb3a5454c9020ffc5a] | committer: Rémi Denis-Courmont

contrib: use VPATH to symplify tarball dependencies

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

 contrib/src/a52/rules.mak      |    4 ++--
 contrib/src/directx/rules.mak  |    4 ++--
 contrib/src/dshow/rules.mak    |    4 ++--
 contrib/src/ebml/rules.mak     |    4 ++--
 contrib/src/flac/rules.mak     |    4 ++--
 contrib/src/live555/rules.mak  |    4 ++--
 contrib/src/lua/rules.mak      |    4 ++--
 contrib/src/main.mak           |    1 +
 contrib/src/matroska/rules.mak |    4 ++--
 contrib/src/ogg/rules.mak      |   12 ++++++------
 contrib/src/speex/rules.mak    |    4 ++--
 contrib/src/theora/rules.mak   |    4 ++--
 contrib/src/tremor/rules.mak   |    4 ++--
 contrib/src/vorbis/rules.mak   |    4 ++--
 14 files changed, 31 insertions(+), 30 deletions(-)

diff --git a/contrib/src/a52/rules.mak b/contrib/src/a52/rules.mak
index fb44f0b..660194f 100644
--- a/contrib/src/a52/rules.mak
+++ b/contrib/src/a52/rules.mak
@@ -8,11 +8,11 @@ PKGS += a52
 $(TARBALLS)/a52dec-$(A52DEC_VERSION).tar.gz:
 	$(DOWNLOAD) $(A52DEC_URL)
 
-.sum-a52: $(TARBALLS)/a52dec-$(A52DEC_VERSION).tar.gz
+.sum-a52: a52dec-$(A52DEC_VERSION).tar.gz
 	$(CHECK_SHA512)
 	touch $@
 
-a52dec: $(TARBALLS)/a52dec-$(A52DEC_VERSION).tar.gz .sum-a52
+a52dec: a52dec-$(A52DEC_VERSION).tar.gz .sum-a52
 	$(UNPACK_GZ)
 ifndef HAVE_FPU
 	(cd $@-$(A52DEC_VERSION) && patch -p0) < $(SRC)/a52/liba52-fixed.diff
diff --git a/contrib/src/directx/rules.mak b/contrib/src/directx/rules.mak
index 3ecd88b..7dbde55 100644
--- a/contrib/src/directx/rules.mak
+++ b/contrib/src/directx/rules.mak
@@ -9,11 +9,11 @@ endif
 $(TARBALLS)/directx-oss.tar.bz2:
 	$(DOWNLOAD) $(DX_HEADERS_URL)
 
-.sum-directx: $(TARBALLS)/directx-oss.tar.bz2
+.sum-directx: directx-oss.tar.bz2
 	$(CHECK_SHA512)
 	touch $@
 
-.directx: $(TARBALLS)/directx-oss.tar.bz2 .sum-directx
+.directx: directx-oss.tar.bz2 .sum-directx
 	mkdir -p -- "$(PREFIX)/include"
 	tar xvjf $< -C "$(PREFIX)/include"
 	touch $@
diff --git a/contrib/src/dshow/rules.mak b/contrib/src/dshow/rules.mak
index f9bd00b..dcb7f4e 100644
--- a/contrib/src/dshow/rules.mak
+++ b/contrib/src/dshow/rules.mak
@@ -21,11 +21,11 @@ $(TARBALLS)/d2d_headers.tar.gz:
 
 DSHOW_SOURCES := dshow-headers-oss.tar.bz2 dxva2api.h d2d_headers.tar.gz
 
-.sum-dshow: $(DSHOW_SOURCES:%=$(TARBALLS)/%)
+.sum-dshow: $(DSHOW_SOURCES)
 	$(CHECK_SHA512)
 	touch $@
 
-.dshow: $(DSHOW_SOURCES:%=$(TARBALLS)/%) .sum-dshow
+.dshow: $(DSHOW_SOURCES) .sum-dshow
 	mkdir -p -- "$(PREFIX)/include"
 	tar xjf $< -C "$(PREFIX)/include" \
 		--wildcards --no-anchored '*.h' --strip-components=1
diff --git a/contrib/src/ebml/rules.mak b/contrib/src/ebml/rules.mak
index b6bdd58..ee8d55b 100644
--- a/contrib/src/ebml/rules.mak
+++ b/contrib/src/ebml/rules.mak
@@ -7,11 +7,11 @@ EBML_URL := http://dl.matroska.org/downloads/libebml/libebml-$(EBML_VERSION).tar
 $(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2:
 	$(DOWNLOAD) $(EBML_URL)
 
-.sum-ebml: $(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2
+.sum-ebml: libebml-$(EBML_VERSION).tar.bz2
 	$(CHECK_SHA512)
 	touch $@
 
-libebml: $(TARBALLS)/libebml-$(EBML_VERSION).tar.bz2 .sum-ebml
+libebml: libebml-$(EBML_VERSION).tar.bz2 .sum-ebml
 	$(UNPACK_BZ2)
 	mv $@-$(EBML_VERSION) $@
 	touch $@
diff --git a/contrib/src/flac/rules.mak b/contrib/src/flac/rules.mak
index 2fe685a..5466a25 100644
--- a/contrib/src/flac/rules.mak
+++ b/contrib/src/flac/rules.mak
@@ -8,11 +8,11 @@ PKGS += flac
 $(TARBALLS)/flac-$(FLAC_VERSION).tar.gz:
 	$(DOWNLOAD) $(FLAC_URL)
 
-.sum-flac: $(TARBALLS)/flac-$(FLAC_VERSION).tar.gz
+.sum-flac: flac-$(FLAC_VERSION).tar.gz
 	$(CHECK_SHA512)
 	touch $@
 
-flac: $(TARBALLS)/flac-$(FLAC_VERSION).tar.gz .sum-flac
+flac: flac-$(FLAC_VERSION).tar.gz .sum-flac
 	$(UNPACK_GZ)
 	(cd $@-$(FLAC_VERSION) && patch -p1) < $(SRC)/flac/flac-win32.patch
 	(cd $@-$(FLAC_VERSION) && patch -p1) < $(SRC)/flac/libFLAC-pc.patch
diff --git a/contrib/src/live555/rules.mak b/contrib/src/live555/rules.mak
index 7a94e5b..18e8dae 100644
--- a/contrib/src/live555/rules.mak
+++ b/contrib/src/live555/rules.mak
@@ -7,11 +7,11 @@ PKGS += live555
 $(TARBALLS)/live555-latest.tar.gz:
 	$(DOWNLOAD) $(LIVEDOTCOM_URL)
 
-.sum-live555: $(TARBALLS)/live555-latest.tar.gz
+.sum-live555: live555-latest.tar.gz
 	$(CHECK_SHA512)
 	touch $@
 
-live555: $(TARBALLS)/live555-latest.tar.gz .sum-live555
+live555: live555-latest.tar.gz .sum-live555
 	$(UNPACK_GZ)
 	patch -p0 < $(SRC)/live555/live-uselocale.patch
 	patch -p0 < $(SRC)/live555/live-inet_ntop.patch
diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
index 115b91e..77b0d83 100644
--- a/contrib/src/lua/rules.mak
+++ b/contrib/src/lua/rules.mak
@@ -24,11 +24,11 @@ PKGS += lua
 $(TARBALLS)/lua-$(LUA_VERSION).tar.gz:
 	$(DOWNLOAD) $(LUA_URL)
 
-.sum-lua: $(TARBALLS)/lua-$(LUA_VERSION).tar.gz
+.sum-lua: lua-$(LUA_VERSION).tar.gz
 	$(CHECK_SHA512)
 	touch $@
 
-lua: $(TARBALLS)/lua-$(LUA_VERSION).tar.gz .sum-lua
+lua: lua-$(LUA_VERSION).tar.gz .sum-lua
 	$(UNPACK_GZ)
 	(cd $@-$(LUA_VERSION) && patch -p1) < $(SRC)/lua/lua-noreadline.patch
 ifdef HAVE_MACOSX
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index e762e34..6b8f4d9 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -9,6 +9,7 @@ ALL_PKGS := $(patsubst ../src/%/rules.mak,%,$(wildcard ../src/*/rules.mak))
 SRC := ../src
 TARBALLS := ../tarballs
 DATE := $(shell date +%Y%m%d)
+VPATH := $(TARBALLS)
 
 # Common download locations
 GNU := http://ftp.gnu.org/gnu
diff --git a/contrib/src/matroska/rules.mak b/contrib/src/matroska/rules.mak
index f826647..ca0a97e 100644
--- a/contrib/src/matroska/rules.mak
+++ b/contrib/src/matroska/rules.mak
@@ -9,11 +9,11 @@ PKGS += matroska
 $(TARBALLS)/libmatroska-$(MATROSKA_VERSION).tar.bz2:
 	$(DOWNLOAD) $(MATROSKA_URL)
 
-.sum-matroska: $(TARBALLS/libmatroska-$(MATROSKA_VERSION).tar.bz2
+.sum-matroska: libmatroska-$(MATROSKA_VERSION).tar.bz2
 	$(CHECK_SHA512)
 	touch $@
 
-libmatroska: $(TARBALLS)/libmatroska-$(MATROSKA_VERSION).tar.bz2 .sum-matroska
+libmatroska: libmatroska-$(MATROSKA_VERSION).tar.bz2 .sum-matroska
 	$(UNPACK_BZ2)
 	mv $@-$(MATROSKA_VERSION) $@
 	touch $@
diff --git a/contrib/src/ogg/rules.mak b/contrib/src/ogg/rules.mak
index 01a5e21..c96e3b0 100644
--- a/contrib/src/ogg/rules.mak
+++ b/contrib/src/ogg/rules.mak
@@ -2,27 +2,27 @@
 
 OGG_VERSION := 1.2.2
 
-OGG_TARBALL := libogg-$(OGG_VERSION).tar.xz
-OGG_URL := http://downloads.xiph.org/releases/ogg/$(OGG_TARBALL)
-#OGG_URL := $(CONTRIB_VIDEOLAN)/$(OGG_TARBALL)
+OGG_URL := http://downloads.xiph.org/releases/ogg/libogg-$(OGG_VERSION).tar.xz
+#OGG_URL := $(CONTRIB_VIDEOLAN)/libogg-$(OGG_VERSION).tar.xz
 OGG_CVSROOT := :pserver:anoncvs at xiph.org:/usr/local/cvsroot
 
 NEED_OGG = $(call need_pkg,"ogg >= 1.0")
 
-$(TARBALLS)/$(OGG_TARBALL):
+$(TARBALLS)/libogg-$(OGG_VERSION).tar.xz:
 	$(DOWNLOAD) $(OGG_URL)
 
-.sum-ogg: $(TARBALLS)/$(OGG_TARBALL)
+.sum-ogg: libogg-$(OGG_VERSION).tar.xz
 	$(CHECK_SHA512)
 	touch $@
 
-libogg: $(TARBALLS)/$(OGG_TARBALL) .sum-ogg
+libogg: libogg-$(OGG_VERSION).tar.xz .sum-ogg
 	$(UNPACK_XZ)
 	(cd $@-$(OGG_VERSION) && patch -p1) < $(SRC)/ogg/libogg-1.1.patch
 ifdef HAVE_WINCE
 	(cd $@-$(OGG_VERSION) && patch -p1) < $(SRC)/ogg/libogg-wince.patch
 endif
 	mv $@-$(OGG_VERSION) $@
+	touch $@
 
 ifeq ($(NEED_OGG),)
 .ogg:
diff --git a/contrib/src/speex/rules.mak b/contrib/src/speex/rules.mak
index 5ad7786..f8fd438 100644
--- a/contrib/src/speex/rules.mak
+++ b/contrib/src/speex/rules.mak
@@ -8,11 +8,11 @@ PKGS += speex
 $(TARBALLS)/speex-$(SPEEX_VERSION).tar.gz:
 	$(DOWNLOAD) $(SPEEX_URL)
 
-.sum-speex: $(TARBALLS)/speex-$(SPEEX_VERSION).tar.gz
+.sum-speex: speex-$(SPEEX_VERSION).tar.gz
 	$(CHECK_SHA512)
 	touch $@
 
-speex: $(TARBALLS)/speex-$(SPEEX_VERSION).tar.gz .sum-speex
+speex: speex-$(SPEEX_VERSION).tar.gz .sum-speex
 	$(UNPACK_GZ)
 	mv $@-$(SPEEX_VERSION) $@
 	touch $@
diff --git a/contrib/src/theora/rules.mak b/contrib/src/theora/rules.mak
index 0138514..4888e7d 100644
--- a/contrib/src/theora/rules.mak
+++ b/contrib/src/theora/rules.mak
@@ -9,11 +9,11 @@ PKGS += theora
 $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz:
 	$(DOWNLOAD) $(THEORA_URL)
 
-.sum-theora: $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz
+.sum-theora: libtheora-$(THEORA_VERSION).tar.xz
 	$(CHECK_SHA512)
 	touch $@
 
-libtheora: $(TARBALLS)/libtheora-$(THEORA_VERSION).tar.xz .sum-theora
+libtheora: libtheora-$(THEORA_VERSION).tar.xz .sum-theora
 	$(UNPACK_XZ)
 	(cd $@-$(THEORA_VERSION) && patch -p1) < $(SRC)/theora/libtheora-includes.patch
 ifdef HAVE_WIN64
diff --git a/contrib/src/tremor/rules.mak b/contrib/src/tremor/rules.mak
index 0b102c3..20a929b 100644
--- a/contrib/src/tremor/rules.mak
+++ b/contrib/src/tremor/rules.mak
@@ -9,11 +9,11 @@ $(TARBALLS)/tremor-svn.tar.xz:
 	$(SVN) export http://svn.xiph.org/trunk/Tremor tremor-svn
 	tar cv tremor-svn | xz > $@
 
-.sum-tremor: $(TARBALLS)/tremor-svn.tar.xz
+.sum-tremor: tremor-svn.tar.xz
 	$(warning Integrity check skipped.)
 	touch $@
 
-tremor: $(TARBALLS)/tremor-svn.tar.xz .sum-tremor
+tremor: tremor-svn.tar.xz .sum-tremor
 	# Stuff that does not depend on libogg
 	$(UNPACK_XZ)
 	(cd tremor-svn && patch -p0) < $(SRC)/tremor/tremor.patch
diff --git a/contrib/src/vorbis/rules.mak b/contrib/src/vorbis/rules.mak
index 1b9c44a..76ded44 100644
--- a/contrib/src/vorbis/rules.mak
+++ b/contrib/src/vorbis/rules.mak
@@ -14,11 +14,11 @@ endif
 $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz:
 	$(DOWNLOAD) $(VORBIS_URL)
 
-.sum-vorbis: $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz
+.sum-vorbis: libvorbis-$(VORBIS_VERSION).tar.xz
 	$(CHECK_SHA512)
 	touch $@
 
-libvorbis: $(TARBALLS)/libvorbis-$(VORBIS_VERSION).tar.xz .sum-vorbis
+libvorbis: libvorbis-$(VORBIS_VERSION).tar.xz .sum-vorbis
 	$(UNPACK_XZ)
 	mv $@-$(VORBIS_VERSION) $@
 	touch $@



More information about the vlc-commits mailing list