122 | | set boost_python_lib ${prefix}/lib/libboost_python-mt.dylib |
123 | | set boost_python_version "0" |
124 | | if {[file exists ${boost_python_lib}]} { |
125 | | set boost_python_version [exec /usr/bin/otool -L ${boost_python_lib} | /usr/bin/grep Python | /usr/bin/sed -e "s|^.*Versions/||" -e "s|/.*||"] |
126 | | } |
127 | | if {${boost_python_version} != ${boost_python_required}} { |
128 | | depends_lib-delete port:boost |
129 | | pre-configure { |
130 | | ui_error "${name} requires boost installed with variant ${boost_variant}." |
131 | | ui_error "Please install boost as follows and try installing ${name} again:" |
132 | | ui_error "sudo port install boost ${boost_variant}" |
133 | | return -code error "incompatible boost installation" |
134 | | } |
135 | | } |
| 121 | require_active_variants boost ${boost_python_variant} |