78 | | variant libgcrypt { |
79 | | configure.args-append --with-libgcrypt-prefix=${prefix} |
80 | | depends_lib-append port:libgcrypt |
| 75 | pre-destroot { |
| 76 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ |
| 77 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/ |
| 78 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/ |
| 79 | xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/ |
| 80 | xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/ |
| 81 | xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/ |
| 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/ |
| 88 | } |
| 89 | |
| 90 | if {[string match *llvm-gcc-4.2* ${configure.compiler}]} { |
| 91 | # see #32386 |
| 92 | configure.cflags -fno-var-tracking |
117 | | depends_lib-append port:libsmi |
118 | | configure.args-append --with-libsmi |
119 | | } |
120 | | |
121 | | # TODO: Remove after 2016-01-04. |
122 | | variant python25 requires python27 description {Legacy variant} {} |
123 | | variant python26 requires python27 description {Legacy variant} {} |
124 | | |
125 | | variant python27 description {use python27 for the experimental python interface} { |
126 | | configure.python ${prefix}/bin/python2.7 |
127 | | depends_lib-append port:python27 |
128 | | } |
129 | | |
130 | | pre-configure { |
131 | | if {[variant_isset python27]} { |
132 | | configure.args-append --with-python |
133 | | configure.args-delete --without-python |
134 | | reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure |
135 | | } |
136 | | } |
137 | | |
138 | | pre-destroot { |
139 | | if {[variant_isset python27]} { |
140 | | reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py |
141 | | } |
142 | | } |
143 | | |
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 | | } |
| 134 | configure.args-delete --without-libsmi |
| 135 | configure.args-append --with-libsmi=${prefix} |
| 136 | depends_lib-append port:libsmi |
| 137 | } |
| 138 | |
| 139 | variant geoip { |
| 140 | configure.args-delete --without-geoip |
| 141 | configure.args-append --with-geoip=${prefix} |
| 142 | depends_lib-append port:libgeoip |
| 143 | } |
| 144 | |
| 145 | variant qt description {use qt4 for the GUI} conflicts x11 gtk3 qt5 { |
| 146 | depends_lib-append port:qt4-mac |
| 147 | configure.args-delete --disable-wireshark |
| 148 | configure.args-append --with-qt=4 |
| 149 | configure.args-append --with-gtk2=no |
| 150 | configure.args-append --with-gtk3=no |
| 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 | |
| 165 | variant rtp description {add rtp support} { |
| 166 | configure.args-delete --without-portaudio |
| 167 | configure.args-append --with-portaudio=${prefix} |
| 168 | depends_lib-append port:portaudio |
| 169 | } |
| 170 | |
| 171 | variant ssl { |
| 172 | configure.args-delete --without-ssl |
| 173 | configure.args-append --with-ssl=${prefix} |
| 174 | depends_lib-append port:openssl |
| 175 | } |
| 176 | |
| 177 | variant x11 description {use X11 (gtk2) for GUI} conflicts qt qt5 gtk3 { |
| 178 | depends_lib-append port:gtk2 \ |
| 179 | port:atk \ |
| 180 | path:lib/pkgconfig/cairo.pc:cairo \ |
| 181 | port:fontconfig \ |
| 182 | port:freetype \ |
| 183 | port:gdk-pixbuf2 \ |
| 184 | path:lib/pkgconfig/pango.pc:pango \ |
| 185 | port:xorg-libX11 \ |
| 186 | port:xorg-libXcomposite \ |
| 187 | port:xorg-libXcursor \ |
| 188 | port:xorg-libXdamage \ |
| 189 | port:xorg-libXext \ |
| 190 | port:xorg-libXfixes \ |
| 191 | port:xorg-libXi \ |
| 192 | port:xorg-libXinerama \ |
| 193 | port:xorg-libXrandr \ |
| 194 | port:xrender |
| 195 | |
| 196 | configure.args-delete --disable-wireshark |
| 197 | configure.args-append --with-qt=no |
| 198 | configure.args-append --with-gtk2=yes |
| 199 | configure.args-append --with-gtk3=no |
| 200 | } |
| 201 | |
| 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 | |
| 206 | configure.args-delete --disable-wireshark |
| 207 | configure.args-append --with-qt=no |
| 208 | configure.args-append --with-gtk2=no |
| 209 | configure.args-append --with-gtk3=yes |
| 210 | } |
| 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 | } |
| 219 | |
| 220 | livecheck.type regex |
| 221 | livecheck.url ${homepage}download.html |
| 222 | livecheck.regex "Development Release \\((\\d+(?:\\.\\d+)*)" |