# $Id: Portfile 68218 2010-05-29 02:40:35Z ryandesign@macports.org $

PortSystem 1.0

name                ntfsprogs
version             2.0.0
categories          sysutils
platforms           darwin
maintainers         nomaintainer

description         a collection of utilities for doing stuff with NTFS volumes
long_description    $description

homepage            http://www.linux-ntfs.org/

master_sites        sourceforge:linux-ntfs

checksums           md5 2c402b647bb7aeb1d3f8ce1cc354fd68 \
                    sha1 c433189eb0955beb7360c6a475cc97083c5cd020

livecheck.distname  ntfsprogs
livecheck.url       http://sourceforge.net/export/rss2_projnews.php?group_id=13956

configure.args      --disable-gnome-vfs \
                    --disable-ntfsmount \
                    --disable-crypto \
                    --without-uuid

configure.ldflags-append -lintl

depends_build       port:pkgconfig

variant crypto description {Enable crypto related code and utilities} {
    configure.args-delete   --disable-crypto
    configure.args-append   --enable-crypto
    depends_lib-append      port:gnutls \
                            port:libconfig-hr
}

variant ntfsmount description {Enable userspace NTFS driver using FUSE} {
    configure.args-delete   --disable-ntfsmount
    configure.args-append   --enable-ntfsmount
    depends_lib-append      port:macfuse
    destroot.violate_mtree  yes
}

variant gnome_vfs description {Enable building of gnome-vfs libntfs modules} {
    configure.args-delete   --disable-gnome-vfs
    configure.args-append   --enable-gnome-vfs
    depends_lib-append      port:gnome-vfs
}

variant extra description {Build extra ntfs programs} {
    build.target            all extra
}

platform darwin {
    post-destroot {
        # /sbin/mkfs.ntfs is unnecessary since darwin doesn't have mkfs
        delete ${destroot}/sbin/mkfs.ntfs
    }
}
