26 lines
852 B
Bash
26 lines
852 B
Bash
|
#!/bin/bash
|
||
|
cd `dirname $0`
|
||
|
. ../env
|
||
|
|
||
|
name=libtorrent-rasterbar-0.16.12
|
||
|
rm -rf $name
|
||
|
tar xzf $src/$name.tar.gz
|
||
|
cd $name
|
||
|
|
||
|
export PATH=$prefix/bin:$PATH
|
||
|
|
||
|
sed "s/if platform.system() != 'Darwin': //g" bindings/python/setup.py.in > setup.py.in
|
||
|
mv setup.py.in bindings/python/setup.py.in
|
||
|
|
||
|
#breaks boost 1.54
|
||
|
# --disable-encryption \
|
||
|
|
||
|
./configure \
|
||
|
--enable-python-binding \
|
||
|
--with-boost=$prefix \
|
||
|
--prefix=$prefix
|
||
|
make && make install
|
||
|
install_name_tool -change "$prefix/lib/libtorrent-rasterbar.7.dylib" "@rpath/libtorrent-rasterbar.7.dylib" $prefix/lib/python2.7/site-packages/libtorrent.so
|
||
|
install_name_tool -change "libboost_system.dylib" "@rpath/libboost_system.dylib" $prefix/lib/python2.7/site-packages/libtorrent.so
|
||
|
install_name_tool -change libboost_system.dylib @rpath/libboost_system.dylib $prefix/lib/libtorrent-rasterbar.7.dylib
|