diff options
| author | Thomas Texier | 2014-03-26 09:44:53 -0400 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-29 09:02:31 -0500 |
| commit | 00033a1306ec558b27ff7defc3b804a4b3cfa76d (patch) | |
| tree | d5283449b32289a15f848ae5b4b27f5aca84d6f3 /Library | |
| parent | aaaaa1c7fe50547d5e5daf296cf0209eb9eb330e (diff) | |
| download | homebrew-00033a1306ec558b27ff7defc3b804a4b3cfa76d.tar.bz2 | |
libtorrent-rasterbar: fixed python bindings.
Closes #27884.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libtorrent-rasterbar.rb | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/Library/Formula/libtorrent-rasterbar.rb b/Library/Formula/libtorrent-rasterbar.rb index b3e164d44..1c1fa8a63 100644 --- a/Library/Formula/libtorrent-rasterbar.rb +++ b/Library/Formula/libtorrent-rasterbar.rb @@ -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 |
