--- Portfile.orig	2008-09-18 13:25:42.000000000 -0700
+++ Portfile	2008-09-18 17:42:07.000000000 -0700
@@ -4,7 +4,7 @@
 
 name		ffmpeg
 version		0.4.9-pre1
-revision	11
+revision	12
 categories	multimedia
 maintainers	acho@macports.org openmaintainer
 description	Digital VCR and streaming server
@@ -43,11 +43,19 @@
 
 set svn_rev 14381
 
+pre-fetch {
+    if {[file isdirectory ${distpath}/${svn_rev}]} {
+        if {![file isdirectory ${distpath}/${svn_rev}/trunk/.svn]} {
+             file delete -force ${distpath}/${svn_rev}
+        }
+    }
+}
+
 fetch {
     if {![file isdirectory ${distpath}/${svn_rev}]} {
         file mkdir ${distpath}/${svn_rev}
-        system "svn export -r${svn_rev} --ignore-externals svn://svn.mplayerhq.hu/ffmpeg/trunk ${distpath}/${svn_rev}/trunk"
-        system "svn export -r27349 svn://svn.mplayerhq.hu/mplayer/trunk/libswscale ${distpath}/${svn_rev}/trunk/libswscale"
+        system "svn co -r${svn_rev} --ignore-externals svn://svn.mplayerhq.hu/ffmpeg/trunk ${distpath}/${svn_rev}/trunk"
+        system "svn co -r27349 svn://svn.mplayerhq.hu/mplayer/trunk/libswscale ${distpath}/${svn_rev}/trunk/libswscale"
     }
 }
 

