Ticket #40782: Portfile_wireshark-devel-1.11.2-v2.diff

File Portfile_wireshark-devel-1.11.2-v2.diff, 5.9 KB (added by hsivank@…, 10 years ago)
  • Portfile

    old new  
    55
    66name            wireshark-devel
    77epoch           2
    8 version         1.9.0
    9 revision        3
     8version         1.11.2
     9revision        0
    1010patchfiles      patch-configure.diff
    1111categories      net
    1212license         {GPL-2 GPL-3}
     
    2727
    2828use_bzip2       yes
    2929
    30 checksums       rmd160  56f62e9a1bc2dfedcbd1856dd06c42869a2cdde2 \
    31                 sha256  0a21aa84e78de2ae2f758e5f21edf2ec5c26a372fbfbb30a53a9b67a128e4538
     30checksums       rmd160  17b0dd61360a75ec9a57d540801210eb6d0c3b59 \
     31                sha256  233f7b2e1315982efc34cee60fad6431d2a26f5f68b03b7a439a108bab95f01c
    3232
    3333conflicts       wireshark
    3434
     
    4646                --disable-usr-local \
    4747                --without-adns \
    4848                --with-c-ares=${prefix} \
    49                 --without-pcre \
    5049                --disable-ipv6 \
    5150                --with-pcap=${prefix} \
    5251                --with-ssl=${prefix} \
     
    5756                --disable-warnings-as-errors \
    5857                --with-krb5=${prefix} \
    5958                --without-gnutls \
    60                 --without-python
     59                --with-qt=no \
     60                --with-gtk2=no \
     61                --with-gtk3=no
    6162
    6263configure.ldflags-append "-Wl,-search_paths_first"
    6364
     65default_variants +gtk2
     66
    6467variant adns description {use adns library for async. dns resolution instead of the default c-ares library} {
    6568        configure.args-delete   --without-adns \
    6669                                --with-c-ares=${prefix}
     
    9093        depends_lib-append      port:lua
    9194}
    9295
    93 variant pcre {
    94         configure.args-append   --with-pcre=${prefix}
    95         configure.args-delete   --without-pcre
    96         depends_lib-append      port:pcre
    97 }
    98 
    9996variant rtp description {add rtp support with portaudio} {
    10097        configure.args-append   --with-portaudio=${prefix}
    10198        configure.args-delete   --without-portaudio
     
    107104        depends_lib-delete      port:openssl
    108105}
    109106
    110 variant no_gui description {Disable GTK GUI} {
    111         depends_lib-delete      port:gtk2
    112         configure.args-delete   --disable-gtk2
    113         configure.args-append   --disable-wireshark
     107variant gtk2 description {Enable Gtk2 GUI} {
     108        configure.args-delete   --with-gtk2=no
     109        configure.args-append   --with-gtk2=yes
     110        depends_lib-append      port:gtk2
     111}
     112
     113variant qt4 description {Enable Qt4 GUI} {
     114        configure.args-delete   --with-qt=no
     115        configure.args-append   --with-qt=yes
     116        depends_lib-append      port:qt4-mac
    114117}
    115118
    116119variant libsmi {
     
    118121        configure.args-append --with-libsmi
    119122}
    120123
    121 variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 {
    122         configure.python        ${prefix}/bin/python2.5
    123         depends_lib-append      port:python25
    124 }
    125 
    126 variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 {
    127         configure.python        ${prefix}/bin/python2.6
    128         depends_lib-append      port:python26
    129 }
    130 
    131 variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 {
    132         configure.python        ${prefix}/bin/python2.7
    133         depends_lib-append      port:python27
    134 }
    135 
    136 pre-configure {
    137         if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
    138                 configure.args-append   --with-python
    139                 configure.args-delete   --without-python
    140         }
    141         if {[variant_isset python25]} {
    142                 reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure
    143         }
    144         if {[variant_isset python26]} {
    145                 reinplace "s|python-config|python2.6-config|g" ${worksrcpath}/configure
    146         }
    147         if {[variant_isset python27]} {
    148                 reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure
    149         }
    150 }
    151 
    152 pre-destroot {
    153         if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
    154                  reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py
    155         }
    156 }
     124#variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 {
     125#        configure.python        ${prefix}/bin/python2.5
     126#        depends_lib-append      port:python25
     127#}
     128
     129#variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 {
     130#        configure.python        ${prefix}/bin/python2.6
     131#        depends_lib-append      port:python26
     132#}
     133
     134#variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 {
     135#        configure.python        ${prefix}/bin/python2.7
     136#        depends_lib-append      port:python27
     137#}
     138
     139#pre-configure {
     140#        if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     141#                configure.args-append   --with-python
     142#                configure.args-delete   --without-python
     143#        }
     144#        if {[variant_isset python25]} {
     145#                reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure
     146#        }
     147#        if {[variant_isset python26]} {
     148#                reinplace "s|python-config|python2.6-config|g" ${worksrcpath}/configure
     149#        }
     150#        if {[variant_isset python27]} {
     151#                reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure
     152#        }
     153#}
     154
     155#pre-destroot {
     156#        if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     157#                 reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py
     158#        }
     159#}
    157160
    158161post-destroot {
    159162        xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ \