# $Id: Portfile 81460 2011-07-31 06:39:40Z dports@macports.org $ PortSystem 1.0 name ntfs-3g version 2011.4.12 revision 2 categories fuse platforms darwin maintainers netatonce.net:petri \ openmaintainer description Safe read/write NTFS driver for FUSE long_description The NTFS-3G driver is an open source, freely available \ NTFS driver for FUSE with read and write support. It \ provides safe and fast handling of the Windows XP, Windows \ Server 2003, Windows 2000 and Windows Vista file systems. \ Most POSIX file system operations are supported, with the \ exception of full file ownership and access right support. homepage http://www.tuxera.com/community/ntfs-3g-download/ distname ntfs-3g_ntfsprogs-${version} extract.suffix .tgz master_sites http://tuxera.com/opensource/ checksums md5 9c4ce318373b15332239a77a9d2a39fe \ sha1 a4340ae611a3f26089f7d5601a86a5847517bff7 \ rmd160 7a5530874a3c5251049da16bc07e861c73b6f317 livecheck.type regex livecheck.regex {stable version is } depends_build port:pkgconfig depends_lib path:lib/pkgconfig/fuse.pc:macfuse configure.args --exec-prefix=${prefix} --with-fuse=external platform darwin { configure.ldflags-append -framework CoreFoundation -lintl } #destroot.violate_mtree yes pre-destroot { file mkdir ${destroot}/sbin } post-destroot { # ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g # but on darwin mount wants mount_* instead of mount.* # /sbin/mount.ntfs-3g is no longer installed with recent versions of ntfs-3g # but let's add a check here to verify this, so an update doesn't miss it if it's turned back on if {[file exists ${destroot}/sbin/mount.ntfs-3g]} { error "${destroot}/sbin/mount.ntfs-3g is present" } #file rename -- ${destroot}/sbin/mount.ntfs-3g ${destroot}/sbin/mount_ntfs-3g file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \ ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8 delete ${destroot}/sbin/mkfs.ntfs }