Ticket #32168: wireshark-Portfile.patch

File wireshark-Portfile.patch, 9.1 KB (added by jpo@…, 13 years ago)

wireshark Portfile patch

  • Portfile

    old new  
     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
    12# $Id: Portfile 87401 2011-11-19 20:58:36Z ricci@macports.org $
    23
    34PortSystem 1.0
    4 name            wireshark
    5 version         1.6.4
    6 revision        0
    7 categories      net
    8 maintainers     darkart.com:opendarwin.org
    9 description     Graphical network analyzer and capture tool
    10 homepage        http://wireshark.org/
    11 platforms       darwin
     5name        wireshark
     6version     1.6.4
     7revision    1
     8categories  net
     9maintainers darkart.com:opendarwin.org
     10description Graphical network analyzer and capture tool
     11homepage    http://wireshark.org/
     12platforms   darwin
    1213
    1314long_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.
     15        interactively browse Ethernet frames. \
     16        Packet data can be read from a file, or live from a local \
     17        network interface.
    1718
    18 master_sites    http://www.wireshark.org/download/src/                  \
    19                 http://www.wireshark.org/download/src/all-versions/
     19master_sites    http://www.wireshark.org/download/src/          \
     20        http://www.wireshark.org/download/src/all-versions/
    2021
    2122checksums           md5     a348521c514fcdd890d974f2a0b59db3 \
    2223                    sha1    8abd7681e8c05841b7cf31d5dc83c1092c54e79f \
    2324                    rmd160  9437c416a5963aee1c049c0275bdfd3edd7488e8
    2425
    25 use_bzip2       yes
     26use_bzip2   yes
    2627
    27 conflicts       wireshark-devel
     28conflicts   wireshark-devel
    2829
    29 depends_build           \
    30                 port:pkgconfig
    31 depends_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 
    40 configure.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
     30depends_build       \
     31        port:pkgconfig
     32depends_lib         \
     33        port:bzip2 \
     34        port:c-ares \
     35        path:lib/pkgconfig/glib-2.0.pc:glib2 \
     36        port:gtk2 \
     37        port:openssl \
     38        port:libpcap \
     39        port:zlib
     40
     41configure.args  \
     42        --without-libsmi \
     43        --disable-usr-local \
     44        --without-adns \
     45        --with-c-ares=${prefix} \
     46        --without-pcre \
     47        --disable-ipv6 \
     48        --with-pcap=${prefix} \
     49        --with-ssl=${prefix} \
     50        --with-zlib=${prefix} \
     51        --mandir=\\\${prefix}/share/man \
     52        --infodir=\\\${prefix}/share/info \
     53        --without-portaudio \
     54        --disable-warnings-as-errors \
     55        --without-gnutls    \
     56        --without-python
    5657
    5758configure.ldflags-append "-Wl,-search_paths_first"
    5859
    5960pre-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/
     61    xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/
     62    xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/
     63    xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/
     64    xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/
     65    xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/
     66    xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/
     67    eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/
     68    eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/
     69    eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/
     70    eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/
     71    eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/
     72    eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/
    7273}
    7374
    7475if {${configure.compiler} == "clang"} {
    75         configure.compiler llvm-gcc-4.2
     76    configure.compiler llvm-gcc-4.2
    7677}
    7778
    7879variant adns description {use adns library for async. dns resolution instead of the default c-ares library} {
    79         configure.args-append   --with-adns=${prefix} \
    80                                                         --without-c-ares
    81         configure.args-delete   --without-adns \
    82                                                         --with-c-ares=${prefix}
    83         depends_lib-append      port:adns
     80    configure.args-append   --with-adns=${prefix} \
     81                            --without-c-ares
     82    configure.args-delete   --without-adns \
     83                            --with-c-ares=${prefix}
     84    depends_lib-append  port:adns
    8485}
    8586
    8687variant gnutls {
    87         configure.args-append   --with-gnutls=yes
    88         depends_lib-append      port:gnutls
     88    configure.args-append   --with-gnutls=yes
     89    depends_lib-append  port:gnutls
    8990}
    9091
    9192variant libgcrypt {
    92         configure.args-append   --with-libgcrypt-prefix=${prefix}
    93         depends_lib-append      port:libgcrypt
     93    configure.args-append   --with-libgcrypt-prefix=${prefix}
     94    depends_lib-append  port:libgcrypt
    9495}
    9596
    9697variant ipv6 {
    97         configure.args-append   --enable-ipv6
    98         configure.args-delete   --disable-ipv6
     98    configure.args-append   --enable-ipv6
     99    configure.args-delete   --disable-ipv6
    99100}
    100101
    101 variant lua {
    102         configure.args-append   --with-lua=${prefix}
    103         depends_lib-append      port:lua
     102variant libsmi {
     103    configure.args-append   --with-libsmi=${prefix}
     104    configure.args-delete   --without-libsmi
     105    depends_lib-append  port:libsmi
    104106}
    105107
    106 variant libsmi {
    107         configure.args-append   --with-libsmi=${prefix}
    108         configure.args-delete   --without-libsmi
    109         depends_lib-append      port:libsmi
     108variant lua {
     109    configure.args-append   --with-lua=${prefix}
     110    depends_lib-append  port:lua
    110111}
    111112
    112113variant pcre {
    113         configure.args-append   --with-pcre=${prefix}
    114         configure.args-delete   --without-pcre
    115         depends_lib-append      port:pcre
     114    configure.args-append   --with-pcre=${prefix}
     115    configure.args-delete   --without-pcre
     116    depends_lib-append  port:pcre
    116117}
    117118
    118119variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 {
    119         configure.args-append   --with-python=${prefix}
    120         configure.args-delete   --without-python
    121         depends_lib-append      port:python25
     120    configure.args-append   --with-python=${prefix}
     121    configure.args-delete   --without-python
     122    depends_lib-append  port:python25
    122123}
    123124
    124125variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 {
    125         configure.args-append   --with-python=${prefix}
    126         configure.args-delete   --without-python
    127         depends_lib-append      port:python26
     126    configure.args-append   --with-python=${prefix}
     127    configure.args-delete   --without-python
     128    depends_lib-append  port:python26
    128129}
    129130
    130131variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 {
    131         configure.args-append   --with-python=${prefix}
    132         configure.args-delete   --without-python
    133         depends_lib-append      port:python27
     132    configure.args-append   --with-python=${prefix}
     133    configure.args-delete   --without-python
     134    depends_lib-append  port:python27
    134135}
    135136
    136137variant rtp description {add rtp support with portaudio} {
    137         configure.args-append   --with-portaudio=${prefix}
    138         configure.args-delete   --without-portaudio
    139         depends_lib-append      port:portaudio
     138    configure.args-append   --with-portaudio=${prefix}
     139    configure.args-delete   --without-portaudio
     140    depends_lib-append      port:portaudio
    140141}
    141142
    142143variant no_ssl {
    143         configure.args-append --without-ssl
    144         depends_lib-delete      port:openssl
     144    configure.args-append --without-ssl
     145    depends_lib-delete  port:openssl
    145146}
    146147
    147 variant no_x11  {
    148         depends_lib-delete      port:gtk2
    149         configure.args-delete   --disable-gtk2
    150         configure.args-append   --disable-wireshark
     148variant no_x11  {
     149    depends_lib-delete  port:gtk2
     150    configure.args-delete   --disable-gtk2
     151    configure.args-append   --disable-wireshark
    151152}
    152153
     154default_variants    +ipv6 +libgcrypt +libsmi
     155
    153156#
    154157##EOF