| 68 | default_variants +gnutls +libgcrypt +ipv6 +krb5 +lua +libsmi +geoip +rtp +ssl |
| 69 | |
| 70 | if {![variant_isset qt] && ![variant_isset x11] && ![variant_isset gtk3]} { |
| 71 | default_variants +qt5 |
| 72 | } |
| 73 | |
| 74 | pre-destroot { |
| 75 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ |
| 76 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/ |
| 77 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/ |
| 78 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/ |
| 79 | xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/ |
| 80 | xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/ |
| 81 | eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/ |
| 82 | eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/ |
| 83 | eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/ |
| 84 | eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/ |
| 85 | eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/ |
| 86 | eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/ |
| 87 | } |
| 88 | |
| 89 | if {[string match *llvm-gcc-4.2* ${configure.compiler}]} { |
| 90 | # see #32386 |
| 91 | configure.cflags -fno-var-tracking |
| 92 | } |
| 93 | |
93 | | variant pcre { |
94 | | configure.args-append --with-pcre=${prefix} |
95 | | configure.args-delete --without-pcre |
96 | | depends_lib-append port:pcre |
97 | | } |
98 | | |
99 | | variant rtp description {add rtp support with portaudio} { |
100 | | configure.args-append --with-portaudio=${prefix} |
101 | | configure.args-delete --without-portaudio |
102 | | depends_lib-append port:portaudio |
103 | | } |
104 | | |
105 | | variant no_ssl { |
106 | | configure.args-append --without-ssl |
107 | | depends_lib-delete port:openssl |
| 132 | variant libsmi { |
| 133 | configure.args-delete --without-libsmi |
| 134 | configure.args-append --with-libsmi=${prefix} |
| 135 | depends_lib-append port:libsmi |
121 | | # TODO: Remove after 2016-01-04. |
122 | | variant python25 requires python27 description {Legacy variant} {} |
123 | | variant python26 requires python27 description {Legacy variant} {} |
| 152 | variant qt5 description {use qt5 for the GUI} conflicts x11 gtk3 qt { |
| 153 | depends_lib-append port:qt5-mac |
| 154 | configure.args-delete --disable-wireshark |
| 155 | configure.args-append --with-qt=5 |
| 156 | configure.args-append --with-gtk2=no |
| 157 | configure.args-append --with-gtk3=no |
138 | | pre-destroot { |
139 | | if {[variant_isset python27]} { |
140 | | reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py |
| 170 | variant ssl { |
| 171 | configure.args-delete --without-ssl |
| 172 | configure.args-append --with-ssl=${prefix} |
| 173 | depends_lib-append port:openssl |
| 174 | } |
| 175 | |
| 176 | variant x11 description {use X11 (gtk2) for GUI} conflicts qt qt5 gtk3 { |
| 177 | depends_lib-append port:gtk2 \ |
| 178 | port:atk \ |
| 179 | path:lib/pkgconfig/cairo.pc:cairo \ |
| 180 | port:fontconfig \ |
| 181 | port:freetype \ |
| 182 | port:gdk-pixbuf2 \ |
| 183 | path:lib/pkgconfig/pango.pc:pango \ |
| 184 | port:xorg-libX11 \ |
| 185 | port:xorg-libXcomposite \ |
| 186 | port:xorg-libXcursor \ |
| 187 | port:xorg-libXdamage \ |
| 188 | port:xorg-libXext \ |
| 189 | port:xorg-libXfixes \ |
| 190 | port:xorg-libXi \ |
| 191 | port:xorg-libXinerama \ |
| 192 | port:xorg-libXrandr \ |
| 193 | port:xrender |
| 194 | |
| 195 | configure.args-delete --disable-wireshark |
| 196 | configure.args-append --with-qt=no |
| 197 | configure.args-append --with-gtk2=yes |
| 198 | configure.args-append --with-gtk3=no |
| 199 | } |
| 200 | |
| 201 | variant gtk3 description {use X11 (gtk3) for GUI} conflicts qt qt5 x11 { |
| 202 | depends_lib-append port:gtk3 \ |
| 203 | port:adwaita-icon-theme |
| 204 | |
| 205 | configure.args-delete --disable-wireshark |
| 206 | configure.args-append --with-qt=no |
| 207 | configure.args-append --with-gtk2=no |
| 208 | configure.args-append --with-gtk3=yes |
| 209 | } |
| 210 | |
| 211 | platform macosx { |
| 212 | if { [variant_isset qt] || [variant_isset qt5] || [variant_isset x11] || [variant_isset gtk3] } { |
| 213 | patchfiles-append patch-osxapp.diff |
| 214 | destroot.target-append osx-install |
144 | | post-destroot { |
145 | | xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ \ |
146 | | ${destroot}${prefix}/include/wireshark/epan/dfilter/ \ |
147 | | ${destroot}${prefix}/include/wireshark/epan/dissectors/ \ |
148 | | ${destroot}${prefix}/include/wireshark/epan/ftypes/ \ |
149 | | ${destroot}${prefix}/include/wireshark/wiretap/ |
150 | | xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/ |
151 | | eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/ |
152 | | eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/ |
153 | | eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/ |
154 | | eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/ |
155 | | eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/ |
156 | | eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/ |
157 | | } |
| 218 | livecheck.type regex |
| 219 | livecheck.url ${homepage}download.html |
| 220 | livecheck.regex "Development Release \\((\\d+(?:\\.\\d+)*)" |