# -*- 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
# $Id: Portfile 119220 2014-04-20 23:19:38Z jeremyhu@macports.org $

PortSystem 1.0

name                sshfs
version             2.5
categories          fuse

platforms           darwin
maintainers         dports openmaintainer
description         SSH filesystem for FUSE
long_description    This is a filesystem client based on the \
                    SSH File Transfer Protocol. Since most SSH \
                    servers already support this protocol it is \
                    very easy to set up: i.e. on the server side \
                    there is nothing to do.  On the client side \
                    mounting the filesystem is as easy as logging \
                    into the server with ssh.

homepage            http://fuse.sourceforge.net/sshfs.html

distname            sshfs-fuse-${version}
master_sites        sourceforge:fuse
license             GPL-2

checksums           rmd160  055b4d39de5836fa6638eaca642b55b3cd939d02 \
                    sha256  e9171452e5d0150b9c6a2158fd2e2dcefb5d5d03ba4d208949e00a3a46c6e63e

livecheck.distname  sshfs-fuse

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         port:gettext \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/fuse.pc:osxfuse \
                    port:libiconv \
                    bin:ssh:openssh

patchfiles          patch-from-fuse4x.diff \
                    patch-configure.ac.diff \
                    patch-sshfs.1.diff
patch.pre_args      -p1

# osxfuse is -universal
universal_variant no

post-patch {
    # automake 1.13 compatibility (see #37513)
    reinplace "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|" ${worksrcpath}/configure.ac
}

use_autoreconf      yes
