Revision: 79930 http://trac.macports.org/changeset/79930 Author: jeremyhu@macports.org Date: 2011-06-29 10:26:39 -0700 (Wed, 29 Jun 2011) Log Message: ----------- ffmpeg-devel: Use fetch.type git rather than reinventing the wheel Modified Paths: -------------- trunk/dports/multimedia/ffmpeg-devel/Portfile Modified: trunk/dports/multimedia/ffmpeg-devel/Portfile =================================================================== --- trunk/dports/multimedia/ffmpeg-devel/Portfile 2011-06-29 17:15:23 UTC (rev 79929) +++ trunk/dports/multimedia/ffmpeg-devel/Portfile 2011-06-29 17:26:39 UTC (rev 79930) @@ -6,12 +6,15 @@ name ffmpeg-devel conflicts ffmpeg -set rev 9e17d051ac9b113b70980373b8489ca469505f3f version 20110628 license nonfree GPL-2+ LGPL-2.1+ categories multimedia maintainers devans openmaintainer +fetch.type git +git.url git://git.videolan.org/ffmpeg.git +git.branch 9e17d051ac9b113b70980373b8489ca469505f3f + description FFmpeg is a complete solution to play, record, convert and \ stream audio and video. @@ -45,13 +48,7 @@ platforms darwin homepage http://www.ffmpeg.org/ -master_sites -distfiles -worksrcdir ffmpeg - -depends_fetch bin:git:git-core - depends_build port:pkgconfig \ port:gmake \ port:texi2html @@ -71,34 +68,11 @@ port:bzip2 \ port:zlib - -pre-fetch { - if {[file isdirectory ${distpath}/${rev}]} { - if {![file exists ${distpath}/${rev}/.complete]} { - file delete -force ${distpath}/${rev} - } - } -} - -fetch { - if {![file isdirectory ${distpath}/${rev}]} { - file mkdir ${distpath}/${rev}/ffmpeg - system "git clone --depth 1000 git://git.videolan.org/ffmpeg.git ${distpath}/${rev}/ffmpeg" - system "cd ${distpath}/${rev}/ffmpeg && git checkout -f ${rev}" - system "touch ${distpath}/${rev}/.complete" - } -} - -# # enable auto configure of mmx and related Intel optimizations by default # requires Xcode 3.1 or better on Leopard # minimum_xcodeversions {9 3.1} -extract { - file copy ${distpath}/${rev}/ffmpeg ${worksrcpath} -} - configure.cflags-append -DHAVE_LRINTF ${configure.cppflags} configure.args \ --enable-nonfree \