| 116 | variant 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 | |
| 121 | variant 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 | |
| 126 | variant 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 | |
| 131 | pre-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 | |
| 147 | pre-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 | |