source: trunk/dports/net/wireshark/Portfile @ 119324

Last change on this file since 119324 was 119324, checked in by ricci@…, 5 years ago

wireshark: upgrade to 1.10.7

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.5 KB
Line 
1# $Id: Portfile 119324 2014-04-22 21:32:18Z ricci@macports.org $
2
3PortSystem 1.0
4name            wireshark
5version         1.10.7
6revision        0
7categories      net
8license         {GPL-2 GPL-3}
9maintainers     darkart.com:opendarwin.org
10description     Graphical network analyzer and capture tool
11homepage        http://wireshark.org/
12platforms       darwin
13
14long_description A network analyzer that lets you capture and \
15                 interactively browse Ethernet frames. \
16                 Packet data can be read from a file, or live from a local \
17                 network interface.
18
19master_sites    http://www.wireshark.org/download/src/                  \
20                http://www.wireshark.org/download/src/all-versions/
21
22checksums           md5     0e8a111d24c11255eae139c8f27fd25b \
23                    sha1    5e5ce4fdc9aa53e545fc0fbd22eea6adcf7dfc0b \
24                    rmd160  67fcd4cce612a5af705e1db5a57549444d4c4e57
25
26use_bzip2       yes
27
28conflicts       wireshark-devel
29
30patchfiles      patch-configure.diff
31
32depends_build           \
33                port:pkgconfig
34depends_lib             \
35                port:adns \
36                port:libgcrypt \
37                port:libgeoip \
38                path:lib/pkgconfig/glib-2.0.pc:glib2 \
39                port:libsmi \
40                port:lua \
41                port:gnutls \
42                port:gtk2 \
43                port:openssl \
44                port:portaudio \
45                port:libpcap \
46                port:kerberos5 \
47                port:zlib
48
49configure.args  \
50                --with-libsmi=${prefix} \
51                --disable-usr-local \
52                --with-adns=${prefix} \
53                --without-c-ares \
54                --with-geoip=${prefix} \
55                --with-gnutls=yes \
56                --with-libgcrypt-prefix=${prefix} \
57                --with-lua=${prefix} \
58                --enable-ipv6 \
59                --with-pcap=${prefix} \
60                --with-ssl=${prefix} \
61                --with-zlib=${prefix} \
62                --mandir=\\\${prefix}/share/man \
63                --infodir=\\\${prefix}/share/info \
64                --with-portaudio=${prefix} \
65                --disable-warnings-as-errors \
66                --with-krb5=${prefix}
67
68configure.ldflags-append "-Wl,-search_paths_first"
69
70## 1.10.0 doesn't include python options in configure
71## if {[variant_isset no_python]} {
72## } elseif {[variant_isset python25]} {
73## } elseif {[variant_isset python26]} {
74## } elseif {[variant_isset python27]} {
75## } else {
76##      default_variants +no_python
77## }
78
79
80pre-destroot {
81        xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/
82        xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/
83        xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/
84        xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/
85        xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/
86        xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/
87        eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/
88        eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/
89        eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/
90        eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/
91        eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/
92        eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/
93}
94
95if {[string match *llvm-gcc-4.2* ${configure.compiler}]} {
96        # see #32386
97        configure.cflags -fno-var-tracking
98}
99
100variant no_adns description {don't use adns library for async. dns resolution instead of the default c-ares library} {
101        configure.args-append   --without-adns \
102                                                        --with-c-ares=${prefix}
103        configure.args-delete   --with-adns=${prefix} \
104                                                        --without-c-ares
105        depends_lib-delete      port:adns
106        depends_lib-append      port:c-ares
107}
108
109variant no_gnutls {
110        configure.args-append   --without-gnutls
111        configure.args-delete   --with-gnutls=yes
112        depends_lib-delete      port:gnutls
113}
114
115variant no_libgcrypt {
116        configure.args-append   --with-gcrypt=no
117        configure.args-delete   --with-libgcrypt-prefix=${prefix}
118        depends_lib-delete      port:libgcrypt
119}
120
121variant no_ipv6 {
122        configure.args-append   --disable-ipv6
123        configure.args-delete   --enable-ipv6
124}
125
126variant no_lua {
127        configure.args-append   --without-lua
128        configure.args-delete   --with-lua=${prefix}
129        depends_lib-delete      port:lua
130}
131
132variant no_libsmi {
133        configure.args-append   --without-libsmi
134        configure.args-delete   --with-libsmi=${prefix}
135        depends_lib-delete      port:libsmi
136}
137
138variant no_geoip {
139        configure.args-append   --without-geoip
140        configure.args-delete   --with-geoip=${prefix}
141        depends_lib-delete      port:libgeoip
142}
143
144## 1.10.0 doesn't include python options in configure
145## variant python25 description {use python25 for the experimental python interface} conflicts no_python python26 python27 {
146##      configure.args-append   --with-python=${prefix}
147##      depends_lib-append      port:python25
148## }
149##
150## variant python26 description {use python26 for the experimental python interface} conflicts no_python python25 python27 {
151##      configure.args-append   --with-python=${prefix}
152##      depends_lib-append      port:python26
153## }
154##
155## variant python27 description {use python27 for the experimental python interface} conflicts no_python python25 python26 {
156##      configure.args-append   --with-python=${prefix}/lib/wireshark/python/${version}
157##      depends_lib-append      port:python27
158## }
159##
160## variant no_python description {do not build python interface} conflicts python25 python26 python27 {
161##      configure.args-append   --without-python
162## }
163
164variant no_rtp description {remove rtp support} {
165        configure.args-append   --without-portaudio
166        configure.args-delete   --with-portaudio=${prefix}
167        depends_lib-delete      port:portaudio
168}
169
170variant no_ssl {
171        configure.args-append --without-ssl
172        depends_lib-delete      port:openssl
173}
174
175variant no_x11  {
176        depends_lib-delete      port:gtk2
177        configure.args-delete   --disable-gtk2
178        configure.args-append   --disable-wireshark
179}
180
181
182#
183##EOF
Note: See TracBrowser for help on using the repository browser.