# -*- 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$ PortSystem 1.0 PortGroup wxWidgets 1.0 PortGroup compiler_blacklist_versions 1.0 name FileZilla version 3.11.0.2 categories www aqua platforms darwin maintainers mojca 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 https://filezilla-project.org/ master_sites sourceforge:project/filezilla/FileZilla_Client/${version} checksums rmd160 64d4b3b0f81840f64f21da1417128057652d9619 \ sha256 341ba02803c29bdd1f9c3ce524723fe9288433d22d286b5a4b7d7c2e0d6989d9 depends_build port:pkgconfig depends_lib port:dbus \ port:gettext \ port:gnutls \ port:libidn \ port:sqlite3 \ port:xdg-utils distname ${name}_${version}_src use_bzip2 yes worksrcdir filezilla-${version} # http://trac.filezilla-project.org/ticket/5473 # http://sourceforge.net/p/tinyxml/patches/51/ configure.args --with-tinyxml=builtin \ --disable-manualupdatecheck \ --disable-autoupdatecheck platform darwin { configure.cxx_stdlib libc++ depends_lib-append port:libcxx configure.ldflags-append \ -stdlib=${configure.cxx_stdlib} } # gcc 4.2 doesn't suffice to build FileZilla on 10.6 and earlier # newer gcc compilers should also work if {${os.major} <= 10} { compiler.whitelist macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 macports-clang-3.7 } # http://trac.macports.org/ticket/47273 # In theory gcc could work, but we need to disable llvm-gcc and we need to match stdlib with wxWidgets (= use libc++) compiler.blacklist-append *gcc* {clang < 425} macports-clang-3.0 macports-clang-3.1 variant wxgtk30 conflicts wxwidgets30 wxwidgets30_libcxx description {Use wxWidgets 3.0 with GTK} { wxWidgets.use wxGTK-3.0 depends_lib-append port:${wxWidgets.port} configure.args-append --with-wxdir=${wxWidgets.wxdir} configure.env-append WXRC=${wxWidgets.wxrc} } variant wxwidgets30 conflicts wxgtk30 wxwidgets30_libcxx description {Use wxWidgets 3.0} { wxWidgets.use wxWidgets-3.0 depends_lib-append port:${wxWidgets.port} configure.args-append --with-wxdir=${wxWidgets.wxdir} configure.env-append WXRC=${wxWidgets.wxrc} destroot { copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} } } variant wxwidgets30_libcxx conflicts wxgtk30 wxwidgets30 description {Use wxWidgets 3.0 with libcxx (for < 10.9)} { wxWidgets.use wxWidgets-3.0-libcxx depends_lib-append port:${wxWidgets.port} configure.args-append --with-wxdir=${wxWidgets.wxdir} configure.env-append WXRC=${wxWidgets.wxrc} destroot { copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} } } if {![variant_isset wxgtk30] && ![variant_isset wxwidgets30] && ![variant_isset wxwidgets30_libcxx]} { if {${os.major} <= 12} { # TODO: && configure.cxx_stdlib != libc++ default_variants +wxwidgets30_libcxx } else { default_variants +wxwidgets30 } } livecheck.type regex livecheck.url ${homepage}download.php?type=client livecheck.regex /${name}_(\[0-9.\]+)