source: trunk/dports/fuse/ntfs-3g/Portfile

Last change on this file was 152710, checked in by ryandesign@…, 10 months ago

ntfs-3g: disable universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- 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
2# $Id: Portfile 152710 2016-09-15 10:19:57Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                ntfs-3g
7version             2015.3.14
8categories          fuse
9platforms           darwin
10maintainers         nomaintainer
11license             GPL-2+ LGPL-2
12description         Safe read/write NTFS driver for FUSE
13long_description    The NTFS-3G driver is an open source, freely available \
14                    NTFS driver for FUSE with read and write support. It \
15                    provides safe and fast handling of the Windows XP, Windows \
16                    Server 2003, Windows 2000 and Windows Vista file systems. \
17                    Most POSIX file system operations are supported, with the \
18                    exception of full file ownership and access right support. \
19                    Also included are ntfsprogs, a set of utilities to create \
20                    and manipulate NTFS file systems.
21
22homepage            http://www.tuxera.com/community/ntfs-3g-download/
23distname            ntfs-3g_ntfsprogs-${version}
24extract.suffix      .tgz
25
26master_sites        http://tuxera.com/opensource/
27
28checksums           rmd160  67cbb81ab619c0941fe23a73e9a187a73008d51e \
29                    sha256  97f996015d8316d4a272bd2629978e5e97072dd3cc148ce39802f8037c6538f2
30
31livecheck.type      regex
32livecheck.regex     {stable version</font></b> is <a href="http://tuxera.com/opensource/ntfs-3g_(.+?)\.tgz">}
33
34depends_build       port:pkgconfig
35
36depends_lib         path:lib/pkgconfig/fuse.pc:osxfuse \
37                    port:ossp-uuid
38
39# osxfuse is not universal
40universal_variant   no
41
42# Use default PKG_CONFIG_PATH to avoid picking up a FUSE installation
43# in /usr/local (see #30537)
44patchfiles          patch-configure.diff
45
46configure.args      --exec-prefix=${prefix} --with-fuse=external
47
48platform darwin {
49    depends_lib-append          port:gettext
50    configure.ldflags-append    -framework CoreFoundation -lintl
51}
52
53pre-destroot {
54    file mkdir ${destroot}/sbin
55}
56
57post-destroot {
58    # ntfs-3g symlinks /sbin/mount.ntfs-3g to ${prefix}/bin/ntfs-3g
59    # but on darwin mount wants mount_* instead of mount.*
60
61    # /sbin/mount.ntfs-3g is no longer installed with recent versions of ntfs-3g
62    # but check here to verify so updates don't miss it if it's turned back on
63    if {[file exists ${destroot}/sbin/mount.ntfs-3g]} {
64       # This violated the tree restrictions, hopefully fixed by now.
65       file rename -- ${destroot}/sbin/mount.ntfs-3g \
66                      ${destroot}${prefix}/sbin/mount_ntfs-3g
67    }
68    file rename -- ${destroot}${prefix}/share/man/man8/mount.ntfs-3g.8 \
69                   ${destroot}${prefix}/share/man/man8/mount_ntfs-3g.8
70
71    # This violated the tree restrictions, hopefully fixed by now.
72    file rename -- ${destroot}/sbin/mkfs.ntfs \
73                   ${destroot}${prefix}/sbin/mkfs.ntfs
74}
75
76notes "
77To make this port work in the Finder, see this link: <https://trac.macports.org/wiki/howto/Ntfs3gFinder>
78"
Note: See TracBrowser for help on using the repository browser.