4
4
VERSION_libtorrent=${VERSION_libtorrent:- 0.16.16}
5
5
6
6
# dependencies of this recipe
7
- DEPS_libtorrent=()
7
+ DEPS_libtorrent=(python )
8
8
9
9
# url of the package
10
10
URL_libtorrent=http://downloads.sourceforge.net/project/libtorrent/libtorrent/libtorrent-rasterbar-${VERSION_libtorrent} .tar.gz
@@ -21,27 +21,14 @@ RECIPE_libtorrent=$RECIPES_PATH/libtorrent
21
21
# function called for preparing source code if needed
22
22
# (you can apply patch etc here.)
23
23
function prebuild_libtorrent() {
24
- # patch ${BUILD_libtorrent}/include/libtorrent/config.hpp < ${RECIPE_libtorrent}/config.patch
25
- # patch ${BUILD_libtorrent}/src/file.cpp < ${RECIPE_libtorrent}/file.patch
26
- # patch ${BUILD_libtorrent}/src/utp_stream.cpp < ${RECIPE_libtorrent}/utp_stream.patch
24
+ true
27
25
}
28
26
29
27
# function called to build the source code
30
28
function build_libtorrent() {
31
29
32
- # Build using bjam with boost statically linked
33
- cd $BUILD_libtorrent /bindings/python
34
- export BOOST_ROOT=$BUILD_boost
35
- export BOOST_BUILD_PATH=${BUILD_boost} /tools/build/v2
36
- # $BUILD_boost/b2 gcc-androidR9 release need-librt=no dht-support=on boost=source link=static geoip=off boost-link=static asserts=off threading=single
37
-
38
- cp $RECIPE_libtorrent /armeabi/libtorrent.so $BUILD_PATH /python-install/lib/python2.7/site-packages/libtorrent.so
39
- # Build using automake
40
- # BOOSTANDROID=/home/rolf/Projects/Android/tordroid/boostandroid
41
- # cd $BUILD_libtorrent
42
- # push_arm
43
- # ./configure --enable-python-binding --host=arm-linux-gnueabi --with-boost=${BOOSTANDROID}/build
44
- # pop_arm
30
+ # Copy the prebuilt libtorrent.so to the python's packages, so it can be imported
31
+ try cp $RECIPE_libtorrent /libtorrent.so $BUILD_PATH /python-install/lib/python2.7/site-packages/libtorrent.so
45
32
46
33
}
47
34
0 commit comments