# -*- 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 86894 2011-11-06 20:11:37Z ryandesign@macports.org $

PortSystem          1.0

name                FileZilla
version             3.5.1
categories          www aqua
platforms           darwin
maintainers         strasweb.fr:rudloff openmaintainer
license             GPL-2+

description         Open-source FTP, FTPS, and SFTP client

long_description    FileZilla Client is a fast and reliable cross-platform \
                    FTP, FTPS and SFTP client with lots of useful features \
                    and an intuitive graphical user interface.

homepage            http://filezilla-project.org/
master_sites        sourceforge:project/filezilla/FileZilla_Client/${version}

checksums           sha1    e4b2048cf8740e05cfff8e444a9059f79784e3f6 \
                    rmd160  6f5c7e9db07cb1b5cc43de194f35a032a6f966b8

depends_build       port:pkgconfig

depends_lib         port:wxWidgets \
                    port:libidn \
                    port:gettext \
                    port:libgpg-error \
                    port:libgcrypt \
                    port:gnutls \
                    port:sqlite3

# wxWidgets is 32-bit only
supported_archs     i386 ppc

# wxWidgets is not universal
universal_variant   no

distname            ${name}_${version}_src
use_bzip2           yes
worksrcdir          filezilla-${version}

# http://sourceforge.net/tracker/index.php?func=detail&aid=3031828&group_id=13559&atid=313559
configure.args      --with-tinyxml=builtin \
                    --disable-manualupdatecheck \
                    --disable-autoupdatecheck

# cp: fzputtygen: No such file or directory
use_parallel_build  no

destroot {
    copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir}
}
