Ticket #48363: ForReference-Portfile-vs-wireshark-port.2.diff
File ForReference-Portfile-vs-wireshark-port.2.diff, 8.7 KB (added by mdeaudelin (Mathieu Deaudelin-Lemay), 9 years ago) |
---|
-
Portfile
old new 1 # $Id: Portfile 137761 2015-06-18 20:07:17Z ricci@macports.org $ 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 131578 2015-01-15 00:14:59Z larryv@macports.org $ 2 3 3 4 PortSystem 1.0 4 name wireshark 5 version 1.12.6 5 6 name wireshark-devel 7 epoch 2 8 version 1.99.7 6 9 revision 0 7 10 categories net 8 11 license {GPL-2 GPL-3} 9 maintainers darkart.com:opendarwin.org12 maintainers gmail.com:hsivank 10 13 description Graphical network analyzer and capture tool 11 14 homepage http://wireshark.org/ 12 15 platforms darwin 13 16 17 distname wireshark-${version} 18 dist_subdir wireshark 19 14 20 long_description A network analyzer that lets you capture and \ 15 21 interactively browse Ethernet frames. \ 16 22 Packet data can be read from a file, or live from a local \ … … 19 25 master_sites http://www.wireshark.org/download/src/ \ 20 26 http://www.wireshark.org/download/src/all-versions/ 21 27 22 checksums md5 25ad2bc1c2a21396827c238fcff51bf3 \ 23 sha1 5b592bd0389b76d3bdee6a7336e9492f8162c94d \ 24 rmd160 46d0ceb05ea26670e73fc89928d54c0a00151cbe 28 checksums rmd160 7a9a0a50fdeb91fc97871129167329fc694b09b4 \ 29 sha256 3d34d51edabc07ceb13734f222421f2fb012a870c837ffb313dc1af51c16b28a 25 30 26 31 use_bzip2 yes 27 32 28 33 conflicts wireshark-devel 29 34 30 patchfiles patch-configure.diff \31 patch-configure.pixmap-fix.diff32 33 35 depends_build \ 34 36 port:pkgconfig 35 37 depends_lib \ 36 38 port:c-ares \ 37 39 port:gettext \ 38 port:kerberos5 \39 40 port:libcomerr \ 40 41 port:libgpg-error \ 41 42 path:lib/pkgconfig/glib-2.0.pc:glib2 \ … … 43 44 port:zlib 44 45 45 46 configure.args \ 46 --without-libsmi \47 47 --disable-usr-local \ 48 --disable-warnings-as-errors \ 48 49 --without-adns \ 49 50 --with-c-ares=${prefix} \ 50 51 --without-geoip \ 51 52 --without-gnutls \ 52 53 --with-gcrypt=no \ 54 --without-libsmi \ 53 55 --without-lua \ 54 56 --disable-ipv6 \ 55 57 --with-pcap=${prefix} \ 56 --with-ssl=${prefix} \57 58 --with-zlib=${prefix} \ 58 59 --mandir=\\\${prefix}/share/man \ 59 60 --infodir=\\\${prefix}/share/info \ 60 61 --without-portaudio \ 61 --disable-warnings-as-errors \ 62 --with-krb5=${prefix} \ 62 --without-krb5 \ 63 63 --without-ssl \ 64 64 --disable-wireshark 65 65 66 66 67 67 configure.ldflags-append "-Wl,-search_paths_first" 68 68 69 default_variants +gnutls +libgcrypt +ipv6 + lua +libsmi +geoip +rtp +ssl69 default_variants +gnutls +libgcrypt +ipv6 +krb5 +lua +libsmi +geoip +rtp +ssl 70 70 71 if {![variant_isset qt] && ![variant_isset gtk3]} {72 default_variants +x11 71 if {![variant_isset qt] && ![variant_isset x11] && ![variant_isset gtk3]} { 72 default_variants +qt5 73 73 } 74 74 75 ## 1.10.0 doesn't include python options in configure76 ## if {[variant_isset no_python]} {77 ## } elseif {[variant_isset python25]} {78 ## } elseif {[variant_isset python26]} {79 ## } elseif {[variant_isset python27]} {80 ## } else {81 ## default_variants +no_python82 ## }83 84 85 75 pre-destroot { 86 76 xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ 87 77 xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/ … … 89 79 xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/ 90 80 xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/ 91 81 xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/ 92 eval xinstall -m 644[glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/93 eval xinstall -m 644[glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/94 eval xinstall -m 644[glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/95 eval xinstall -m 644[glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/96 eval xinstall -m 644[glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/97 eval xinstall -m 644[glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/82 xinstall -m 644 {*}[glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/ 83 xinstall -m 644 {*}[glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/ 84 xinstall -m 644 {*}[glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/ 85 xinstall -m 644 {*}[glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/ 86 xinstall -m 644 {*}[glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/ 87 xinstall -m 644 {*}[glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/ 98 88 } 99 89 100 90 if {[string match *llvm-gcc-4.2* ${configure.compiler}]} { … … 117 107 depends_lib-append port:gnutls 118 108 } 119 109 110 variant krb5 { 111 configure.args-delete --without-krb5 112 configure.args-append --with-krb5=${prefix} 113 depends_lib-append port:kerberos5 114 } 115 120 116 variant libgcrypt { 121 117 configure.args-delete --with-gcrypt=no 122 118 configure.args-append --with-libgcrypt-prefix=${prefix} … … 146 142 depends_lib-append port:libgeoip 147 143 } 148 144 149 ## 1.10.0 doesn't include python options in configure 150 ## variant python25 description {use python25 for the experimental python interface} conflicts no_python python26 python27 { 151 ## configure.args-append --with-python=${prefix} 152 ## depends_lib-append port:python25 153 ## } 154 ## 155 ## variant python26 description {use python26 for the experimental python interface} conflicts no_python python25 python27 { 156 ## configure.args-append --with-python=${prefix} 157 ## depends_lib-append port:python26 158 ## } 159 ## 160 ## variant python27 description {use python27 for the experimental python interface} conflicts no_python python25 python26 { 161 ## configure.args-append --with-python=${prefix}/lib/wireshark/python/${version} 162 ## depends_lib-append port:python27 163 ## } 164 ## 165 ## variant no_python description {do not build python interface} conflicts python25 python26 python27 { 166 ## configure.args-append --without-python 167 ## } 168 169 variant qt description {use qt for the GUI} conflicts x11 gtk3 { 170 ## qt 5.3.1 doesn't work at this point, wireshark needs to be adjusted for Qt 5. 171 ## depends_lib-append port:qt5-mac 145 variant qt description {use qt4 for the GUI} conflicts x11 gtk3 qt5 { 172 146 depends_lib-append port:qt4-mac 173 147 configure.args-delete --disable-wireshark 174 configure.args-append --with-qt=yes 148 configure.args-append --with-qt=4 175 149 configure.args-append --with-gtk2=no 176 150 configure.args-append --with-gtk3=no 177 151 } 152 153 variant qt5 description {use qt5 for the GUI} conflicts x11 gtk3 qt { 154 depends_lib-append port:qt5-mac 155 configure.args-delete --disable-wireshark 156 configure.args-append --with-qt=5 157 configure.args-append --with-gtk2=no 158 configure.args-append --with-gtk3=no 159 160 configure.pkg_config_path ${configure.pkg_config_path}:${prefix}/libexec/qt5-mac/lib/pkgconfig 161 configure.env-append PATH=$env(PATH):${prefix}/libexec/qt5-mac/bin 162 build.env-append PATH=$env(PATH):${prefix}/libexec/qt5-mac/bin 163 } 164 178 165 variant rtp description {add rtp support} { 179 166 configure.args-delete --without-portaudio 180 167 configure.args-append --with-portaudio=${prefix} … … 183 170 184 171 variant ssl { 185 172 configure.args-delete --without-ssl 173 configure.args-append --with-ssl=${prefix} 186 174 depends_lib-append port:openssl 187 175 } 188 176 189 ## variant x11 conflicts qt { 190 variant x11 description {use X11 (gtk2) for GUI} conflicts qt gtk3 { 177 variant x11 description {use X11 (gtk2) for GUI} conflicts qt qt5 gtk3 { 191 178 depends_lib-append port:gtk2 \ 192 179 port:atk \ 193 180 path:lib/pkgconfig/cairo.pc:cairo \ … … 212 199 configure.args-append --with-gtk3=no 213 200 } 214 201 215 variant gtk3 description {use X11 (gtk3) for GUI} conflicts qt x11 { 216 depends_lib-append port:gtk3 202 variant gtk3 description {use X11 (gtk3) for GUI} conflicts qt qt5 x11 { 203 depends_lib-append port:gtk3 \ 204 port:adwaita-icon-theme 205 217 206 configure.args-delete --disable-wireshark 218 207 configure.args-append --with-qt=no 219 208 configure.args-append --with-gtk2=no 220 209 configure.args-append --with-gtk3=yes 221 210 } 222 211 212 platform macosx { 213 if { [variant_isset qt] || [variant_isset qt5] || [variant_isset x11] || [variant_isset gtk3] } { 214 patchfiles-append patch-osxapp.diff 215 destroot.target-append osx-install 216 destroot.env-append APPLICATIONS_DIR=${applications_dir} 217 } 218 } 223 219 224 220 livecheck.type regex 225 221 livecheck.url ${homepage}download.html 226 livecheck.regex "Stable Release \\((\\d+(?:\\.\\d+)*)" 227 # 228 ##EOF 229 230 231 # 232 ##EOF 222 livecheck.regex "Development Release \\((\\d+(?:\\.\\d+)*)"