1 | # $Id: Portfile 81605 2011-08-02 23:19:30Z dports@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name ntfs-3g |
---|
6 | version 2012.1.15 |
---|
7 | categories fuse |
---|
8 | platforms darwin |
---|
9 | maintainers kelotti.net:petri \ |
---|
10 | openmaintainer |
---|
11 | description Safe read/write NTFS driver for FUSE |
---|
12 | long_description The NTFS-3G driver is an open source, freely available \ |
---|
13 | NTFS driver for FUSE with read and write support. It \ |
---|
14 | provides safe and fast handling of the Windows XP, Windows \ |
---|
15 | Server 2003, Windows 2000 and Windows Vista file systems. \ |
---|
16 | Most POSIX file system operations are supported, with the \ |
---|
17 | exception of full file ownership and access right support. |
---|
18 | |
---|
19 | homepage http://www.tuxera.com/community/ntfs-3g-download/ |
---|
20 | distname ntfs-3g_ntfsprogs-${version} |
---|
21 | extract.suffix .tgz |
---|
22 | |
---|
23 | master_sites http://tuxera.com/opensource/ |
---|
24 | |
---|
25 | checksums md5 341acae00a290cab9b00464db65015cc \ |
---|
26 | sha1 8d55cf49afde172fefa369a0a85289e09c4d7bbb \ |
---|
27 | rmd160 4db6ea1025eedeee160a1cd4238d069a307b9b35 |
---|
28 | |
---|
29 | livecheck.type regex |
---|
30 | livecheck.regex {stable version</font></b> is <a href="http://tuxera.com/opensource/ntfs-3g-(.+?)\.tgz">} |
---|
31 | |
---|
32 | depends_build port:pkgconfig |
---|
33 | depends_lib path:lib/pkgconfig/fuse.pc:macfuse |
---|
34 | |
---|
35 | # Use default PKG_CONFIG_PATH to avoid picking up a FUSE installation |
---|
36 | # in /usr/local (see #30537) |
---|
37 | patchfiles patch-configure.diff |
---|
38 | |
---|
39 | configure.args --exec-prefix=${prefix} --with-fuse=external |
---|
40 | |
---|
41 | platform darwin { |
---|
42 | configure.ldflags-append -framework CoreFoundation -lintl |
---|
43 | } |
---|
44 | |
---|
45 | pre-destroot { |
---|
46 | file mkdir ${destroot}/sbin |
---|
47 | } |
---|
48 | |
---|
49 | post-destroot { |
---|
50 | # ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g |
---|
51 | # but on darwin mount wants mount_* instead of mount.* |
---|
52 | |
---|
53 | # /sbin/mount.ntfs-3g is no longer installed with recent versions of ntfs-3g |
---|
54 | # but let's add a check here to verify this, so an update doesn't miss it if it's turned back on |
---|
55 | if {[file exists ${destroot}/sbin/mount.ntfs-3g]} { |
---|
56 | error "${destroot}/sbin/mount.ntfs-3g is present" |
---|
57 | } |
---|
58 | file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \ |
---|
59 | ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8 |
---|
60 | file delete -- ${destroot}/sbin/mkfs.ntfs |
---|
61 | } |
---|
62 | |
---|