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