--- Portfile.orig	2009-12-23 10:28:39.000000000 -0700
+++ Portfile	2009-12-23 10:26:13.000000000 -0700
@@ -3,7 +3,7 @@
 PortSystem 1.0
 
 name                ntfs-3g
-version             1.5130
+version             2009.11.14
 categories          fuse
 platforms           darwin
 maintainers         eridius openmaintainer
@@ -15,26 +15,35 @@
                     Most POSIX file system operations are supported, with the \
                     exception of full file ownership and access right support.
 
-homepage            http://www.ntfs-3g.org/
-extract.suffix      .tgz
+homepage            http://www.tuxera.com/
 
-master_sites        $homepage
-checksums           md5 ad3c40bba398d162f97c2936293eae1f \
-                    sha1 02b7a874b02827665c97123c6335e1d856054c42
+distname            mac${name}-${version}-src
+use_bzip2           yes
 
-livecheck.type      regex
-livecheck.regex     {<a href="ntfs-3g-(.+?)\.tgz">Stable}
+master_sites        sourceforge:catacombae/NTFS-3G%20for%20Mac%20OS%20X/${version}
 
-depends_lib         port:pkgconfig port:macfuse
+checksums           md5     a46f49fdbf15946c1b9b5271589a99e1 \
+                    sha1    34222e0186626ef030f2dd4bfdd877d94f41ca1e \
+                    rmd160  9d2bd2760a5c69f179dea4e733da449abd7f584e
 
-configure.args      --exec-prefix=${prefix}
+worksrcdir          mac${name}-${version}
 
-platform darwin {
-    configure.ldflags-append    -framework CoreFoundation
-}
+depends_build       port:pkgconfig
+depends_lib         port:macfuse
+
+#configure.args      --exec-prefix=${prefix}
+use_configure       no
+
+#platform darwin {
+#    configure.ldflags-append    -framework CoreFoundation
+#}
 
 #destroot.violate_mtree yes
 
+build {
+    system "cd ${worksrcpath};./build.sh"
+}
+
 pre-destroot {
     file mkdir ${destroot}/sbin
 }
@@ -52,3 +61,7 @@
     file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \
                    ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8
 }
+
+livecheck.type      regexm
+livecheck.url       ${homepage}community/ntfs-3g-download/
+livecheck.regex     ntfs-3g-(\[0-9.\]*).tgz

