libtorrent-rasterbar: fixed python bindings.
Closes Homebrew/homebrew#27884. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
a3bbba09a6
commit
6fefdf4b45
1 changed files with 17 additions and 4 deletions
|
@ -8,13 +8,26 @@ class LibtorrentRasterbar < Formula
|
|||
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 => :recommended
|
||||
|
||||
def install
|
||||
boost = Formula["boost"]
|
||||
system "./configure", "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--with-boost=#{boost.opt_prefix}"
|
||||
|
||||
args = [ "--disable-debug",
|
||||
"--disable-dependency-tracking",
|
||||
"--prefix=#{prefix}",
|
||||
"--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
|
||||
system "make install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue