[vlc-commits] Old contribs: FFmpeg switched to git

Rafaël Carré git at videolan.org
Wed Sep 14 00:29:44 CEST 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Sep 13 18:29:16 2011 -0400| [44b9decd384b60d47cf2b8930a3ce287aadae666] | committer: Rafaël Carré

Old contribs: FFmpeg switched to git

Also no need to keep references to an antique snapshot

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

 extras/contrib/src/contrib-src.mak |   32 ++++++++++++--------------------
 extras/contrib/src/packages.mak    |    5 +----
 2 files changed, 13 insertions(+), 24 deletions(-)

diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak
index f203895..8bc056d 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -1079,10 +1079,10 @@ FFMPEGCONF += --enable-pthreads
 FFMPEG_CFLAGS += --std=gnu99
 endif
 
-PHONY += ffmpeg-svn ffmpeg-tar
+ifdef GIT
 
-ffmpeg/.svn:
-	$(SVN) co $(FFMPEG_SVN) ffmpeg
+ffmpeg:
+	$(GIT) clone $(FFMPEG_GIT)
 ifdef HAVE_ISA_THUMB
 	patch -p0 < Patches/ffmpeg-avcodec-no-thumb.patch
 endif
@@ -1100,14 +1100,13 @@ endif
 	(cd ffmpeg; patch -p1 < ../Patches/libavformat-ape.c.patch )
 	touch $@
 
-ffmpeg-$(FFMPEG_VERSION).tar.gz:
-	echo "ffmpeg snapshot is too old, you MUST use subversion !"
-	exit -1
-	$(WGET) $(FFMPEG_URL)
+else
 
-ffmpeg/.untar: ffmpeg-$(FFMPEG_VERSION).tar.gz
-	$(EXTRACT_GZ)
-	touch $@
+ffmpeg:
+	echo "ffmpeg snapshot is too old, you MUST use git !"
+	exit 1
+
+endif
 
 ifeq ($(ARCH),armel)
 HAVE_ARMELF=1
@@ -1124,26 +1123,19 @@ FFMPEG_DEPS-$(HAVE_WIN32)  += .dshow_headers
 FFMPEG_DEPS-$(HAVE_ANDROID) =
 FFMPEG_DEPS-$(HAVE_SYMBIAN) =
 
-ifdef SVN
-FFMPEG_MK_TARGET = ffmpeg/.svn
-else
-FFMPEG_MK_TARGET = ffmpeg/.untar
-endif
-
-.ffmpeg: $(FFMPEG_MK_TARGET) $(FFMPEG_DEPS-1)
+.ffmpeg: ffmpeg $(FFMPEG_DEPS-1)
 	(cd ffmpeg; $(HOSTCC) ./configure --prefix=$(PREFIX) --extra-cflags="$(FFMPEG_CFLAGS) -DHAVE_STDINT_H" --extra-ldflags="$(LDFLAGS)" $(FFMPEGCONF) --disable-shared --enable-static && make && make install-libs install-headers)
 	touch $@
 
-ifdef SVN
+ifdef GIT
 ffmpeg-source: ffmpeg
-	tar cv --exclude=.svn ffmpeg | bzip2 > ffmpeg-$(DATE).tar.bz2
+	tar cv --exclude=.git ffmpeg | bzip2 > ffmpeg-$(DATE).tar.bz2
 
 SOURCE += ffmpeg-source
 endif
 
 CLEAN_FILE += .ffmpeg
 CLEAN_PKG += ffmpeg
-DISTCLEAN_PKG += ffmpeg-$(FFMPEG_VERSION).tar.gz
 
 # ***************************************************************************
 # libdvdcss
diff --git a/extras/contrib/src/packages.mak b/extras/contrib/src/packages.mak
index 82ee95a..fc37c1e 100644
--- a/extras/contrib/src/packages.mak
+++ b/extras/contrib/src/packages.mak
@@ -92,10 +92,7 @@ LIBEBML_URL=http://dl.matroska.org/downloads/libebml/libebml-$(LIBEBML_VERSION).
 LIBMATROSKA_VERSION=1.2.0
 LIBMATROSKA_URL=http://dl.matroska.org/downloads/libmatroska/libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
 #IBMATROSKA_URL=$(CONTRIB_VIDEOLAN)/libmatroska-$(LIBMATROSKA_VERSION).tar.bz2
-FFMPEG_VERSION=0.4.8
-FFMPEG_URL=$(SF)/ffmpeg/ffmpeg-$(FFMPEG_VERSION).tar.gz
-FFMPEG_SVN=svn://svn.ffmpeg.org/ffmpeg/trunk
-FFMPEG_SVN_REV=26400
+FFMPEG_GIT=git://git.videolan.org/ffmpeg.git
 LIBDVDCSS_VERSION=1.2.10
 LIBDVDCSS_URL=$(VIDEOLAN)/libdvdcss/$(LIBDVDCSS_VERSION)/libdvdcss-$(LIBDVDCSS_VERSION).tar.bz2
 LIBDVDNAV_VERSION=4.1.1



More information about the vlc-commits mailing list