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

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

wireshark: upgrade to 1.6.6

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