--- /opt/local/var/macports/sources/svn.macports.org/trunk/dports/graphics/exiv2/Portfile	2015-01-12 12:44:48.000000000 +0100
+++ /opt/local/site-ports/graphics/exiv2/Portfile	2015-05-25 23:03:41.000000000 +0200
@@ -4,7 +4,7 @@
 PortGroup  cmake 1.0
 
 name             exiv2
-version          0.24
+version          0.24.3839
 homepage         http://www.exiv2.org/
 description      EXIF and IPTC metadata manipulation library and tools
 categories       graphics
@@ -14,8 +14,20 @@
 
 master_sites     http://www.exiv2.org/
 
-checksums        sha1    2f19538e54f8c21c180fa96d17677b7cff7dc1bb \
-                 rmd160  453247926e8626bf888578afd5a0dde42c6f6962
+#checksums        sha1    2f19538e54f8c21c180fa96d17677b7cff7dc1bb \
+#                 rmd160  453247926e8626bf888578afd5a0dde42c6f6962
+
+fetch.type       svn
+depends_fetch-append	port:subversion
+svn.cmd		  ${prefix}/bin/svn
+if {[file exists ${filespath}/${name}-svn/.svn]} {
+	svn.url     ${filespath}/${name}-svn
+	distname	  ${name}-svn
+} else {
+	svn.url     svn://dev.exiv2.org/svn/trunk
+	distname	  trunk
+}
+svn.revision     3839
 
 long_description Exiv2 comprises of a C++ library and a command line utility \
                  which allows you to manipulate EXIF and IPTC image metadata.
@@ -23,8 +35,22 @@
 depends_lib      port:expat \
                  port:gettext \
                  port:libiconv \
+			  port:libssh \
+			  port:curl \
                  port:zlib
 
+cmake.out_of_source		yes
+configure.args-append	-DEXIV2_ENABLE_WEBREADY:BOOL=ON
+
+variant video description {include support for reading video file metadata} {
+	patchfiles-append		patch-deactivate-QT-userdata.diff
+	configure.args-append	-DEXIV2_ENABLE_VIDEO:BOOL=ON
+}
+default_variants +video
+
+notes-append	"Install ${name} without the +video variant (\"-video\") if you observe crashes when parsing video files\
+	and please report on trac.macports.org"
+
 post-destroot {
     file mkdir ${destroot}${prefix}/share/man
     system "ditto ${destroot}${prefix}/man ${destroot}${prefix}/share/man"
