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

Last change on this file since 104704 was 104704, checked in by jeremyhu@…, 6 years ago

gnutls: Bump to 3.1.10 and revbump dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.3 KB
Line 
1# $Id: Portfile 104704 2013-04-01 03:14:41Z jeremyhu@macports.org $
2
3PortSystem 1.0
4name            wireshark
5version         1.8.6
6revision        1
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     317361e701936c72f7f18f857059b944 \
23                    sha1    0f51ed901b5e07cceb1373f3368f739be8f1e827 \
24                    rmd160  21688bef39816cc81d596205eefc5a067e5d6c25
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
70if {[variant_isset no_python]} {
71} elseif {[variant_isset python25]} {
72} elseif {[variant_isset python26]} {
73} elseif {[variant_isset python27]} {
74} else {
75        default_variants +no_python
76}
77
78
79pre-destroot {
80        xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/
81        xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/
82        xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/
83        xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/
84        xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/
85        xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/
86        eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/
87        eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/
88        eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/
89        eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/
90        eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/
91        eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/
92}
93
94if {${configure.compiler} == "clang"} {
95        configure.compiler llvm-gcc-4.2
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}
107
108variant no_gnutls {
109        configure.args-append   --without-gnutls
110        configure.args-delete   --with-gnutls=yes
111        depends_lib-delete      port:gnutls
112}
113
114variant no_libgcrypt {
115        configure.args-append   --with-gcrypt=no
116        configure.args-delete   --with-libgcrypt-prefix=${prefix}
117        depends_lib-delete      port:libgcrypt
118}
119
120variant no_ipv6 {
121        configure.args-append   --disable-ipv6
122        configure.args-delete   --enable-ipv6
123}
124
125variant no_lua {
126        configure.args-append   --without-lua
127        configure.args-delete   --with-lua=${prefix}
128        depends_lib-delete      port:lua
129}
130
131variant no_libsmi {
132        configure.args-append   --without-libsmi
133        configure.args-delete   --with-libsmi=${prefix}
134        depends_lib-delete      port:libsmi
135}
136
137variant no_geoip {
138        configure.args-append   --without-geoip
139        configure.args-delete   --with-geoip=${prefix}
140        depends_lib-delete      port:libgeoip
141}
142
143variant 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
148variant 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
153variant 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
158variant no_python description {do not build python interface} conflicts python25 python26 python27 {
159        configure.args-append   --without-python
160}
161
162variant no_rtp description {remove rtp support} {
163        configure.args-append   --without-portaudio
164        configure.args-delete   --with-portaudio=${prefix}
165        depends_lib-delete      port:portaudio
166}
167
168variant no_ssl {
169        configure.args-append --without-ssl
170        depends_lib-delete      port:openssl
171}
172
173variant no_x11  {
174        depends_lib-delete      port:gtk2
175        configure.args-delete   --disable-gtk2
176        configure.args-append   --disable-wireshark
177}
178
179
180#
181##EOF
Note: See TracBrowser for help on using the repository browser.