libtorrent-rasterbar needs boost-python
parent
ab396ca98c
commit
0655fde81c
|
@ -13,10 +13,15 @@ class LibtorrentRasterbar < Formula
|
|||
end
|
||||
|
||||
depends_on 'pkg-config' => :build
|
||||
depends_on 'boost'
|
||||
depends_on 'openssl' if MacOS.version <= :snow_leopard # Needs a newer version of OpenSSL on Snow Leopard
|
||||
depends_on :python => :optional
|
||||
|
||||
if build.with? "python"
|
||||
depends_on "boost" => "with-python"
|
||||
else
|
||||
depends_on "boost"
|
||||
end
|
||||
|
||||
def install
|
||||
boost = Formula["boost"]
|
||||
|
||||
|
@ -26,12 +31,9 @@ class LibtorrentRasterbar < Formula
|
|||
"--with-boost=#{boost.opt_prefix}" ]
|
||||
|
||||
# Build python bindings requires forcing usage of the mt version of boost_python.
|
||||
# Be aware that if using a brewed python, boost will have to be built from source
|
||||
# to ensure that boost_python is linked against the brewed python runtime.
|
||||
if build.with? "python"
|
||||
args << "--enable-python-binding"
|
||||
args << "--with-boost-python=boost_python-mt"
|
||||
args << "PYTHON_EXTRA_LDFLAGS= "
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
|
|
Loading…
Reference in New Issue