Ticket #33128: Portfile

File Portfile, 2.4 KB (added by petri@…, 13 years ago)

New Portfile; updated maintainer e-mail

Line 
1# $Id: Portfile 81605 2011-08-02 23:19:30Z dports@macports.org $
2
3PortSystem          1.0
4
5name                ntfs-3g
6version             2012.1.15
7categories          fuse
8platforms           darwin
9maintainers         kelotti.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/
20distname            ntfs-3g_ntfsprogs-${version}
21extract.suffix      .tgz
22
23master_sites        http://tuxera.com/opensource/
24
25checksums           md5     341acae00a290cab9b00464db65015cc \
26                    sha1    8d55cf49afde172fefa369a0a85289e09c4d7bbb \
27                    rmd160  4db6ea1025eedeee160a1cd4238d069a307b9b35
28
29livecheck.type      regex
30livecheck.regex     {stable version</font></b> is <a href="http://tuxera.com/opensource/ntfs-3g-(.+?)\.tgz">}
31
32depends_build       port:pkgconfig
33depends_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)
37patchfiles          patch-configure.diff
38
39configure.args      --exec-prefix=${prefix} --with-fuse=external
40
41platform darwin {
42    configure.ldflags-append    -framework CoreFoundation -lintl
43}
44
45pre-destroot {
46    file mkdir ${destroot}/sbin
47}
48
49post-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