# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name ntfs-3g version 2013.1.13 categories fuse platforms darwin maintainers nomaintainer license GPL-2+ LGPL-2 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. \ Also included are ntfsprogs, a set of utilities to create \ and manipulate NTFS file systems. homepage http://www.tuxera.com/community/ntfs-3g-download/ distname ntfs-3g_ntfsprogs-${version} extract.suffix .tgz master_sites http://tuxera.com/opensource/ checksums rmd160 1427cce3c8138e4eebd2128c6c25c85dde7958f0 \ sha256 4b383f0074a3ab7683339d1f18222b107aaeb4983db119292c43c2b275cefb27 livecheck.type regex livecheck.regex {stable version is } depends_build port:pkgconfig depends_lib path:lib/pkgconfig/fuse.pc:fuse4x \ port:ossp-uuid # Use default PKG_CONFIG_PATH to avoid picking up a FUSE installation # in /usr/local (see #30537) patchfiles patch-configure.diff configure.args --exec-prefix=${prefix} --with-fuse=external platform darwin { depends_lib-append port:gettext configure.ldflags-append -framework CoreFoundation -lintl } 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 check here to verify so updates don't miss it if it's turned back on if {[file exists ${destroot}/sbin/mount.ntfs-3g]} { # This violated the tree restrictions, hopefully fixed by now. file rename -- ${destroot}/sbin/mount.ntfs-3g \ ${destroot}${prefix}/sbin/mount_ntfs-3g } file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \ ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8 # This violated the tree restrictions, hopefully fixed by now. file rename -- ${destroot}/sbin/mkfs.ntfs \ ${destroot}${prefix}/sbin/mkfs.ntfs }