source: trunk/dports/net/wireshark-devel/Portfile @ 139229

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

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.6 KB
Line 
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: Portfile 139229 2015-08-08 03:10:35Z jeremyhu@macports.org $
3
4PortSystem 1.0
5
6name            wireshark-devel
7epoch           2
8version         1.9.0
9revision        4
10patchfiles      patch-configure.diff
11categories      net
12license         {GPL-2 GPL-3}
13maintainers     gmail.com:hsivank
14description     Graphical network analyzer and capture tool
15homepage        http://wireshark.org/
16platforms       darwin
17distname        wireshark-${version}
18dist_subdir     wireshark
19
20long_description A network analyzer that lets you capture and \
21                 interactively browse Ethernet frames. \
22                 Packet data can be read from a file, or live from a local \
23                 network interface.
24
25master_sites    http://www.wireshark.org/download/src/ \
26                http://www.wireshark.org/download/src/all-versions/
27
28use_bzip2       yes
29
30checksums       rmd160  56f62e9a1bc2dfedcbd1856dd06c42869a2cdde2 \
31                sha256  0a21aa84e78de2ae2f758e5f21edf2ec5c26a372fbfbb30a53a9b67a128e4538
32
33conflicts       wireshark
34
35depends_build   port:pkgconfig
36
37depends_lib     port:c-ares \
38                path:lib/pkgconfig/glib-2.0.pc:glib2 \
39                port:gtk2 \
40                path:lib/libssl.dylib:openssl \
41                port:libpcap \
42                port:kerberos5 \
43                port:zlib
44
45configure.args  \
46                --disable-usr-local \
47                --without-adns \
48                --with-c-ares=${prefix} \
49                --without-pcre \
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-gnutls \
60                --without-python
61
62configure.ldflags-append "-Wl,-search_paths_first"
63
64variant adns description {use adns library for async. dns resolution instead of the default c-ares library} {
65        configure.args-delete   --without-adns \
66                                --with-c-ares=${prefix}
67        configure.args-append   --with-adns=${prefix} \
68                                --without-c-ares
69        depends_lib-delete      port:c-ares
70        depends_lib-append      port:adns
71}
72
73variant gnutls {
74        configure.args-append   --with-gnutls=yes
75        depends_lib-append      port:gnutls
76}
77
78variant libgcrypt {
79        configure.args-append   --with-libgcrypt-prefix=${prefix}
80        depends_lib-append      port:libgcrypt
81}
82
83variant ipv6 {
84        configure.args-append   --enable-ipv6
85        configure.args-delete   --disable-ipv6
86}
87
88variant lua {
89        configure.args-append   --with-lua=${prefix}
90        depends_lib-append      port:lua
91}
92
93variant pcre {
94        configure.args-append   --with-pcre=${prefix}
95        configure.args-delete   --without-pcre
96        depends_lib-append      port:pcre
97}
98
99variant rtp description {add rtp support with portaudio} {
100        configure.args-append   --with-portaudio=${prefix}
101        configure.args-delete   --without-portaudio
102        depends_lib-append      port:portaudio
103}
104
105variant no_ssl {
106        configure.args-append --without-ssl
107        depends_lib-delete      path:lib/libssl.dylib:openssl
108}
109
110variant no_gui description {Disable GTK GUI} {
111        depends_lib-delete      port:gtk2
112        configure.args-delete   --disable-gtk2
113        configure.args-append   --disable-wireshark
114}
115
116variant libsmi {
117        depends_lib-append port:libsmi
118        configure.args-append --with-libsmi
119}
120
121# TODO: Remove after 2016-01-04.
122variant python25 requires python27 description {Legacy variant} {}
123variant python26 requires python27 description {Legacy variant} {}
124
125variant python27 description {use python27 for the experimental python interface} {
126        configure.python        ${prefix}/bin/python2.7
127        depends_lib-append      port:python27
128}
129
130pre-configure {
131        if {[variant_isset python27]} {
132                configure.args-append   --with-python
133                configure.args-delete   --without-python
134                reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure
135        }
136}
137
138pre-destroot {
139        if {[variant_isset python27]} {
140                 reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py
141        }
142}
143
144post-destroot {
145        xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ \
146                    ${destroot}${prefix}/include/wireshark/epan/dfilter/ \
147                    ${destroot}${prefix}/include/wireshark/epan/dissectors/ \
148                    ${destroot}${prefix}/include/wireshark/epan/ftypes/ \
149                    ${destroot}${prefix}/include/wireshark/wiretap/
150        xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/
151        eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/
152        eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/
153        eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/
154        eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/
155        eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/
156        eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/
157}
Note: See TracBrowser for help on using the repository browser.