Ticket #55221: FileZilla.Portfile.diff
File FileZilla.Portfile.diff, 3.4 KB (added by mojca (Mojca Miklavec), 7 years ago) |
---|
-
Portfile
old new master_sites sourceforge:project/filezilla/FileZilla_Client/${version} 24 24 checksums rmd160 390456877d3a8d3ac0896b1ad1bb00355fa2d41e \ 25 25 sha256 e49621aeb07c89547508c9ef244e2226168e06b120f49d2c4d428d95f1adbfb7 26 26 27 # wxWidgets-3.0 with support for C++11 on < 10.9 28 wxWidgets.use wxWidgets-3.0-cxx11 29 27 30 depends_build port:pkgconfig 28 31 29 32 depends_lib port:dbus \ … … depends_lib port:dbus \ 32 35 port:libfilezilla \ 33 36 port:libidn \ 34 37 port:sqlite3 \ 35 port:xdg-utils 38 port:xdg-utils \ 39 port:${wxWidgets.port} 36 40 37 41 distname ${name}_${version}_src 38 42 … … patchfiles patch-src-interface-buildinfo.cpp.diff 46 50 configure.args --with-tinyxml=builtin \ 47 51 --with-pugixml=builtin \ 48 52 --disable-manualupdatecheck \ 49 --disable-autoupdatecheck 53 --disable-autoupdatecheck \ 54 --with-wxdir=${wxWidgets.wxdir} 50 55 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 } 56 configure.env WXRC=${wxWidgets.wxrc} 63 57 64 58 # FileZilla now requires thread_local keyword in C++11 (N2659), which is 65 59 # supported since Xcode 8.0 [1][2], upstream clang 3.3 [3] and GCC 4.8 [4] … … if {${os.major} <= 10} { 69 63 # [4] https://gcc.gnu.org/projects/cxx-status.html#cxx11 70 64 compiler.blacklist-append {clang < 800} 71 65 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 } 66 destroot { 67 copy ${worksrcpath}/FileZilla.app ${destroot}${applications_dir} 102 68 } 103 69 104 70 livecheck.type regex