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 |
| 107 | variant 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 | |
| 113 | variant 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 |
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 | #} |