Ticket #26108: Portfile

File Portfile, 2.2 KB (added by petri@…, 14 years ago)
Line 
1# $Id: Portfile 69429 2010-07-05 21:59:57Z dports@macports.org $
2
3PortSystem 1.0
4
5name                ntfs-3g
6version             2010.8.8
7categories          fuse
8platforms           darwin
9maintainers         netatonce.net:petri \
10                    openmaintainer
11description         Safe read/write NTFS driver for FUSE
12long_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
19homepage            http://www.tuxera.com/community/ntfs-3g-download/
20extract.suffix      .tgz
21
22master_sites        http://tuxera.com/opensource/
23checksums           md5 6c109746c2708f679725a2ea441c61c6 \
24                    sha1 f9862700905b23b06e7944f663352227b9c776a6 \
25                    rmd160 07521bd66c4cd26bb40ac84629159eec8d8da43d
26
27livecheck.type      regex
28livecheck.regex     {stable version</font></b> is <a href="http://tuxera.com/opensource/ntfs-3g-(.+?)\.tgz">}
29
30depends_build       port:pkgconfig
31depends_lib         port:macfuse
32
33configure.args      --exec-prefix=${prefix} --with-fuse=external
34
35platform darwin {
36    configure.ldflags-append    -framework CoreFoundation
37}
38
39#destroot.violate_mtree yes
40
41pre-destroot {
42    file mkdir ${destroot}/sbin
43}
44
45post-destroot {
46    # ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g
47    # but on darwin mount wants mount_* instead of mount.*
48
49    # /sbin/mount.ntfs-3g is no longer installed with recent versions of ntfs-3g
50    # but let's add a check here to verify this, so an update doesn't miss it if it's turned back on
51    if {[file exists ${destroot}/sbin/mount.ntfs-3g]} {
52        error "${destroot}/sbin/mount.ntfs-3g is present"
53    }
54    #file rename -- ${destroot}/sbin/mount.ntfs-3g ${destroot}/sbin/mount_ntfs-3g
55    file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \
56                   ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8
57}