Ticket #14704: Portfile

File Portfile, 1.7 KB (added by avsmith@…, 17 years ago)

Portfile used for compile

Line 
1
2PortSystem 1.0
3
4name                ntfs-3g
5version             1.2310
6categories          fuse
7platforms           darwin
8maintainers         eridius openmaintainer
9description         Safe read/write NTFS driver for FUSE
10long_description    The NTFS-3G driver is an open source, freely available \
11                    NTFS driver for FUSE with read and write support. It \
12                    provides safe and fast handling of the Windows XP, Windows \
13                    Server 2003, Windows 2000 and Windows Vista file systems. \
14                    Most POSIX file system operations are supported, with the \
15                    exception of full file ownership and access right support.
16
17homepage            http://www.ntfs-3g.org/
18extract.suffix      .tgz
19
20master_sites        $homepage
21checksums           $distfiles md5 70579e20da7cb5c1649096c6bf6d1b73 \
22                               sha1 d8fd4827be5f4a80ae4e1684f107a5fdb296bcbc \
23                               rmd160 f366ba46f638a09479b733dc8c5617e9cab33b38
24
25livecheck.check     regex
26livecheck.regex     {Source Code.*<a href="ntfs-3g-(.+?)\.tgz">}
27
28depends_lib         port:libfuse port:pkgconfig
29
30configure.args      --exec-prefix=${prefix}
31
32destroot.violate_mtree  yes
33
34platform darwin {
35    configure.ldflags-append    -framework CoreFoundation
36}
37
38post-destroot {
39    # ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g
40    # but on darwin mount wants mount_* instead of mount.*
41    file rename -- ${destroot}/sbin/mount.ntfs-3g ${destroot}/sbin/mount_ntfs-3g
42    file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \
43                   ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8
44}