Ticket #55221: FileZilla.Portfile.diff

File FileZilla.Portfile.diff, 3.4 KB (added by mojca (Mojca Miklavec), 7 years ago)

Replace wxWidgets in FileZilla

  • Portfile

    old new master_sites sourceforge:project/filezilla/FileZilla_Client/${version} 
    2424checksums           rmd160  390456877d3a8d3ac0896b1ad1bb00355fa2d41e \
    2525                    sha256  e49621aeb07c89547508c9ef244e2226168e06b120f49d2c4d428d95f1adbfb7
    2626
     27# wxWidgets-3.0 with support for C++11 on < 10.9
     28wxWidgets.use       wxWidgets-3.0-cxx11
     29
    2730depends_build       port:pkgconfig
    2831
    2932depends_lib         port:dbus \
    depends_lib port:dbus \ 
    3235                    port:libfilezilla \
    3336                    port:libidn \
    3437                    port:sqlite3 \
    35                     port:xdg-utils
     38                    port:xdg-utils \
     39                    port:${wxWidgets.port}
    3640
    3741distname            ${name}_${version}_src
    3842
    patchfiles patch-src-interface-buildinfo.cpp.diff 
    4650configure.args      --with-tinyxml=builtin \
    4751                    --with-pugixml=builtin \
    4852                    --disable-manualupdatecheck \
    49                     --disable-autoupdatecheck
     53                    --disable-autoupdatecheck \
     54                    --with-wxdir=${wxWidgets.wxdir}
    5055
    51 platform 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
    60 if {${os.major} <= 10} {
    61     compiler.whitelist macports-clang-3.4 macports-clang-3.5 macports-clang-3.6 macports-clang-3.7
    62 }
     56configure.env       WXRC=${wxWidgets.wxrc}
    6357
    6458# FileZilla now requires thread_local keyword in C++11 (N2659), which is
    6559# supported since Xcode 8.0 [1][2], upstream clang 3.3 [3] and GCC 4.8 [4]
    if {${os.major} <= 10} { 
    6963# [4] https://gcc.gnu.org/projects/cxx-status.html#cxx11
    7064compiler.blacklist-append {clang < 800}
    7165
    72 variant wxgtk30 conflicts wxwidgets30 wxwidgets30_libcxx description {Use wxWidgets 3.0 with GTK} {
    73     wxWidgets.use           wxGTK-3.0
    74     depends_lib-append      port:${wxWidgets.port}
    75     configure.args-append   --with-wxdir=${wxWidgets.wxdir}
    76     configure.env-append    WXRC=${wxWidgets.wxrc}
    77 }
    78 
    79 variant wxwidgets30 conflicts wxgtk30 wxwidgets30_libcxx description {Use wxWidgets 3.0} {
    80     wxWidgets.use           wxWidgets-3.0
    81     depends_lib-append      port:${wxWidgets.port}
    82     configure.args-append   --with-wxdir=${wxWidgets.wxdir}
    83     configure.env-append    WXRC=${wxWidgets.wxrc}
    84     destroot {              copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} }
    85 }
    86 
    87 variant wxwidgets30_libcxx conflicts wxgtk30 wxwidgets30 description {Use wxWidgets 3.0 with libcxx (for < 10.9)} {
    88     wxWidgets.use           wxWidgets-3.0-libcxx
    89     depends_lib-append      port:${wxWidgets.port}
    90     configure.args-append   --with-wxdir=${wxWidgets.wxdir}
    91     configure.env-append    WXRC=${wxWidgets.wxrc}
    92     destroot {              copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} }
    93 }
    94 
    95 if {![variant_isset wxgtk30] && ![variant_isset wxwidgets30] && ![variant_isset wxwidgets30_libcxx]} {
    96     if {${os.major} <= 12} {
    97         # TODO: && configure.cxx_stdlib != libc++
    98         default_variants +wxwidgets30_libcxx
    99     } else {
    100         default_variants +wxwidgets30
    101     }
     66destroot {
     67    copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir}
    10268}
    10369
    10470livecheck.type      regex