1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | name wireshark-devel |
---|
6 | set my_name wireshark |
---|
7 | version 1.3.0 |
---|
8 | revision 0 |
---|
9 | categories net |
---|
10 | maintainers hsivank.com:gmail.com |
---|
11 | description Graphical network analyzer and capture tool |
---|
12 | homepage http://wireshark.org/ |
---|
13 | platforms darwin |
---|
14 | distname ${my_name}-${version} |
---|
15 | |
---|
16 | long_description A network analyzer that lets you capture and \ |
---|
17 | interactively browse Ethernet frames. \ |
---|
18 | Packet data can be read from a file, or live from a local \ |
---|
19 | network interface. |
---|
20 | |
---|
21 | master_sites http://www.wireshark.org/download/src/ \ |
---|
22 | http://www.wireshark.org/download/src/all-versions/ |
---|
23 | |
---|
24 | checksums md5 edb62e625bf7f98a320bc80f2733fe8a \ |
---|
25 | sha1 5726769670a09bde80ac70321fea95586347fd02 \ |
---|
26 | rmd160 563b0ae4e2db8b83baf6bd1ebfe34dd86e40a9e4 |
---|
27 | |
---|
28 | |
---|
29 | depends_lib port:c-ares \ |
---|
30 | port:glib2 \ |
---|
31 | port:gtk2 \ |
---|
32 | port:openssl \ |
---|
33 | port:libpcap \ |
---|
34 | port:zlib \ |
---|
35 | port:xorg-inputproto |
---|
36 | |
---|
37 | configure.args --enable-gtk2 \ |
---|
38 | --disable-usr-local \ |
---|
39 | --without-adns \ |
---|
40 | --with-c-ares=${prefix} \ |
---|
41 | --without-pcre \ |
---|
42 | --disable-ipv6 \ |
---|
43 | --with-pcap=${prefix} \ |
---|
44 | --with-ssl=${prefix} \ |
---|
45 | --with-zlib=${prefix} \ |
---|
46 | --mandir=\\\${prefix}/share/man \ |
---|
47 | --infodir=\\\${prefix}/share/info \ |
---|
48 | --without-portaudio \ |
---|
49 | --disable-warnings-as-errors \ |
---|
50 | --enable-new-packet-list |
---|
51 | |
---|
52 | configure.ldflags-append "-Wl,-search_paths_first" |
---|
53 | |
---|
54 | # port:libpcap is !universal_variant |
---|
55 | universal_variant no |
---|
56 | |
---|
57 | variant adns description {use adns library for async. dns resolution instead of the default c-ares library} { |
---|
58 | configure.args-append --with-adns=${prefix} \ |
---|
59 | --without-c-ares |
---|
60 | configure.args-delete --without-adns \ |
---|
61 | --with-c-ares=${prefix} |
---|
62 | depends_lib-append port:adns |
---|
63 | } |
---|
64 | |
---|
65 | variant gnutls { |
---|
66 | configure.args-append --with-libgnutls-prefix=${prefix} |
---|
67 | depends_lib-append port:gnutls |
---|
68 | } |
---|
69 | |
---|
70 | variant libgcrypt { |
---|
71 | configure.args-append --with-libgcrypt-prefix=${prefix} |
---|
72 | depends_lib-append port:libgcrypt |
---|
73 | } |
---|
74 | |
---|
75 | variant ipv6 { |
---|
76 | configure.args-append --enable-ipv6 |
---|
77 | configure.args-delete --disable-ipv6 |
---|
78 | } |
---|
79 | |
---|
80 | variant lua { |
---|
81 | configure.args-append --with-lua=${prefix} |
---|
82 | depends_lib-append port:lua |
---|
83 | } |
---|
84 | |
---|
85 | variant pcre { |
---|
86 | configure.args-append --with-pcre=${prefix} |
---|
87 | configure.args-delete --without-pcre |
---|
88 | depends_lib-append lib:libpcre:pcre |
---|
89 | } |
---|
90 | |
---|
91 | variant rtp description {add rtp support with portaudio} { |
---|
92 | configure.args-append --with-portaudio=${prefix} |
---|
93 | configure.args-delete --without-portaudio |
---|
94 | depends_lib-append port:portaudio |
---|
95 | } |
---|
96 | |
---|
97 | variant no_ssl { |
---|
98 | configure.args-append --without-ssl |
---|
99 | depends_lib-delete port:openssl |
---|
100 | } |
---|
101 | |
---|
102 | variant no_x11 { |
---|
103 | depends_lib-delete port:gtk2 |
---|
104 | configure.args-delete --disable-gtk2 |
---|
105 | configure.args-append --disable-wireshark |
---|
106 | } |
---|
107 | |
---|