Ticket #31986: Portfile-v2_wireshark-devel.diff

File Portfile-v2_wireshark-devel.diff, 2.8 KB (added by hsivank@…, 12 years ago)
  • Portfile

    old new  
    55
    66name            wireshark-devel
    77epoch           2
    8 version         1.6.2
     8version         1.7.0
    99categories      net
    1010maintainers     gmail.com:hsivank
    1111description     Graphical network analyzer and capture tool
     
    2424
    2525use_bzip2       yes
    2626
    27 checksums       rmd160  e343d9bb5600b236dea708bb68ecad805a9ee20a \
    28                 sha256  5343f514ce98c28498ec4734e40e34e2bbf779a6c57d958837e3f70234471e7f
     27checksums       rmd160  d65be41a4384b1754756b255330cc76e93cdd3af \
     28                sha256  8b00ff9622d309d9848a078acafd59763dc341215b676b87fdeff98a7ccef89d
    2929
    3030conflicts       wireshark
    3131
     
    5151                --infodir=\\\${prefix}/share/info \
    5252                --without-portaudio \
    5353                --disable-warnings-as-errors \
    54                 --without-gnutls
     54                --without-gnutls \
     55                --without-python
    5556
    5657configure.ldflags-append "-Wl,-search_paths_first"
    5758
     
    112113        configure.args-append --with-libsmi
    113114}
    114115
     116variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 {
     117        configure.env-append    PYTHON=${prefix}/bin/python2.5
     118        depends_lib-append      port:python25
     119}
     120
     121variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 {
     122        configure.env-append    PYTHON=${prefix}/bin/python2.6
     123        depends_lib-append      port:python26
     124}
     125
     126variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 {
     127        configure.env-append    PYTHON=${prefix}/bin/python2.7
     128        depends_lib-append      port:python27
     129}
     130
     131pre-configure {
     132        if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     133                configure.args-append   --with-python
     134                configure.args-delete   --without-python
     135        }
     136        if {[variant_isset python25]} {
     137                reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure
     138        }
     139        if {[variant_isset python26]} {
     140                reinplace "s|python-config|python2.6-config|g" ${worksrcpath}/configure
     141        }
     142        if {[variant_isset python27]} {
     143                reinplace "s|python-config|python2.7-config|g" ${worksrcpath}/configure
     144        }
     145}
     146
     147pre-destroot {
     148        if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} {
     149                 reinplace "s|libwireshark.dylib|${prefix}/lib/libwireshark.dylib|g" ${worksrcpath}/epan/wspython/wspy_libws.py
     150        }       
     151}
     152
    115153post-destroot {
    116154        xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ \
    117155                    ${destroot}${prefix}/include/wireshark/epan/dfilter/ \