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

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

libgcrypt: update to 1.6.1 and revbump dependents (#43109)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.3 KB
Line 
1# $Id: Portfile 122412 2014-07-22 12:41:54Z ryandesign@macports.org $
2
3PortSystem 1.0
4name            wireshark
5version         1.10.7
6revision        2
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:c-ares \
36                path:lib/pkgconfig/glib-2.0.pc:glib2 \
37                port:libpcap \
38                port:kerberos5 \
39                port:zlib
40
41configure.args  \
42                --without-libsmi \
43                --disable-usr-local \
44                --without-adns \
45                --with-c-ares=${prefix} \
46                --without-geoip \
47                --without-gnutls \
48                --with-gcrypt=no \
49                --without-lua \
50                --disable-ipv6 \
51                --with-pcap=${prefix} \
52                --with-ssl=${prefix} \
53                --with-zlib=${prefix} \
54                --mandir=\\\${prefix}/share/man \
55                --infodir=\\\${prefix}/share/info \
56                --without-portaudio \
57                --disable-warnings-as-errors \
58                --with-krb5=${prefix} \
59                --without-ssl \
60                --disable-wireshark
61
62
63configure.ldflags-append "-Wl,-search_paths_first"
64
65default_variants +adns +gnutls +libgcrypt +ipv6 +lua +libsmi +geoip +rtp +ssl +x11
66
67
68## 1.10.0 doesn't include python options in configure
69## if {[variant_isset no_python]} {
70## } elseif {[variant_isset python25]} {
71## } elseif {[variant_isset python26]} {
72## } elseif {[variant_isset python27]} {
73## } else {
74##      default_variants +no_python
75## }
76
77
78pre-destroot {
79        xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/
80        xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/
81        xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/
82        xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/
83        xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/
84        xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/
85        eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/
86        eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/
87        eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/
88        eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/
89        eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/
90        eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/
91}
92
93if {[string match *llvm-gcc-4.2* ${configure.compiler}]} {
94        # see #32386
95        configure.cflags -fno-var-tracking
96}
97
98variant adns description {use adns library for async. dns resolution instead of the default c-ares library} {
99        configure.args-delete   --without-adns \
100                                                        --with-c-ares=${prefix}
101        configure.args-append   --with-adns=${prefix} \
102                                                        --without-c-ares
103        depends_lib-append      port:adns
104        depends_lib-delete      port:c-ares
105}
106
107variant gnutls {
108        configure.args-delete   --without-gnutls
109        configure.args-append   --with-gnutls=yes
110        depends_lib-append              port:gnutls
111}
112
113variant libgcrypt {
114        configure.args-delete   --with-gcrypt=no
115        configure.args-append   --with-libgcrypt-prefix=${prefix}
116        depends_lib-append              port:libgcrypt
117}
118
119variant ipv6 {
120        configure.args-delete   --disable-ipv6
121        configure.args-append   --enable-ipv6
122}
123
124variant lua {
125        configure.args-delete   --without-lua
126        configure.args-append   --with-lua=${prefix}
127        depends_lib-append              port:lua
128}
129
130variant libsmi {
131        configure.args-delete   --without-libsmi
132        configure.args-append   --with-libsmi=${prefix}
133        depends_lib-append              port:libsmi
134}
135
136variant geoip {
137        configure.args-delete   --without-geoip
138        configure.args-append   --with-geoip=${prefix}
139        depends_lib-append              port:libgeoip
140}
141
142## 1.10.0 doesn't include python options in configure
143## variant python25 description {use python25 for the experimental python interface} conflicts no_python python26 python27 {
144##      configure.args-append   --with-python=${prefix}
145##      depends_lib-append      port:python25
146## }
147##
148## variant python26 description {use python26 for the experimental python interface} conflicts no_python python25 python27 {
149##      configure.args-append   --with-python=${prefix}
150##      depends_lib-append      port:python26
151## }
152##
153## variant python27 description {use python27 for the experimental python interface} conflicts no_python python25 python26 {
154##      configure.args-append   --with-python=${prefix}/lib/wireshark/python/${version}
155##      depends_lib-append      port:python27
156## }
157##
158## variant no_python description {do not build python interface} conflicts python25 python26 python27 {
159##      configure.args-append   --without-python
160## }
161
162variant rtp description {add rtp support} {
163        configure.args-delete   --without-portaudio
164        configure.args-append   --with-portaudio=${prefix}
165        depends_lib-append      port:portaudio
166}
167
168variant ssl {
169        configure.args-delete   --without-ssl
170        depends_lib-append              port:openssl
171}
172
173variant x11     {
174        depends_lib-append              port:gtk2
175        configure.args-delete   --disable-wireshark
176}
177
178
179#
180##EOF
Note: See TracBrowser for help on using the repository browser.