source: trunk/dports/www/FileZilla/Portfile

Last change on this file was 148228, checked in by mps@…, 15 months ago

gnutls: update to version 3.4.11, bump to the current stable branch 3.4.x (#51147), rebuild dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.8 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 148228 2016-04-30 17:55:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           wxWidgets 1.0
6PortGroup           compiler_blacklist_versions 1.0
7
8name                FileZilla
9version             3.14.1
10revision            1
11categories          www aqua
12platforms           darwin
13maintainers         strasweb.fr:rudloff openmaintainer
14license             GPL-2+
15
16description         Open-source FTP, FTPS, and SFTP client
17
18long_description    FileZilla Client is a fast and reliable cross-platform \
19                    FTP, FTPS and SFTP client with lots of useful features \
20                    and an intuitive graphical user interface.
21
22homepage            https://filezilla-project.org/
23master_sites        sourceforge:project/filezilla/FileZilla_Client/${version}
24
25checksums           rmd160  2226ca612ae01a0871d051f357b508b92888df79 \
26                    sha256  b10871b6ced5f52062b44deda037edb8a38090b226a018b9b64b1a1feb59d46c
27
28depends_build       port:pkgconfig
29
30depends_lib         port:dbus \
31                    port:gettext \
32                    port:gnutls \
33                    port:libidn \
34                    port:sqlite3 \
35                    port:xdg-utils
36
37distname            ${name}_${version}_src
38
39use_bzip2           yes
40worksrcdir          filezilla-${version}
41
42patchfiles          patch-src-interface-buildinfo.cpp.diff
43
44# http://trac.filezilla-project.org/ticket/5473
45# http://sourceforge.net/p/tinyxml/patches/51/
46configure.args      --with-tinyxml=builtin \
47                    --with-pugixml=builtin \
48                    --disable-manualupdatecheck \
49                    --disable-autoupdatecheck
50
51platform darwin {
52    configure.cxx_stdlib    libc++
53    depends_lib-append      port:libcxx
54    configure.ldflags-append \
55                            -stdlib=${configure.cxx_stdlib}
56}
57
58# gcc 4.2 doesn't suffice to build FileZilla on 10.6 and earlier
59# newer gcc compilers should also work
60if {${os.major} <= 10} {
61    compiler.whitelist macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 macports-clang-3.7
62}
63# http://trac.macports.org/ticket/47273
64# In theory gcc could work, but we need to disable llvm-gcc and we need to match stdlib with wxWidgets (= use libc++)
65compiler.blacklist-append *gcc* {clang < 503}
66
67variant wxgtk30 conflicts wxwidgets30 wxwidgets30_libcxx description {Use wxWidgets 3.0 with GTK} {
68    wxWidgets.use           wxGTK-3.0
69    depends_lib-append      port:${wxWidgets.port}
70    configure.args-append   --with-wxdir=${wxWidgets.wxdir}
71    configure.env-append    WXRC=${wxWidgets.wxrc}
72}
73
74variant wxwidgets30 conflicts wxgtk30 wxwidgets30_libcxx description {Use wxWidgets 3.0} {
75    wxWidgets.use           wxWidgets-3.0
76    depends_lib-append      port:${wxWidgets.port}
77    configure.args-append   --with-wxdir=${wxWidgets.wxdir}
78    configure.env-append    WXRC=${wxWidgets.wxrc}
79    destroot {              copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} }
80}
81
82variant wxwidgets30_libcxx conflicts wxgtk30 wxwidgets30 description {Use wxWidgets 3.0 with libcxx (for < 10.9)} {
83    wxWidgets.use           wxWidgets-3.0-libcxx
84    depends_lib-append      port:${wxWidgets.port}
85    configure.args-append   --with-wxdir=${wxWidgets.wxdir}
86    configure.env-append    WXRC=${wxWidgets.wxrc}
87    destroot {              copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} }
88}
89
90if {![variant_isset wxgtk30] && ![variant_isset wxwidgets30] && ![variant_isset wxwidgets30_libcxx]} {
91    if {${os.major} <= 12} {
92        # TODO: && configure.cxx_stdlib != libc++
93        default_variants +wxwidgets30_libcxx
94    } else {
95        default_variants +wxwidgets30
96    }
97}
98
99livecheck.type      regex
100livecheck.url       ${homepage}download.php?type=client
101livecheck.regex     /${name}_(\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.