2017-10-27 20:46:27 +02:00
|
|
|
|
# Tanım: Bir C ++ bittorrent kitaplığı.
|
2016-06-02 02:54:02 +02:00
|
|
|
|
# URL: http://www.rasterbar.com/products/libtorrent/
|
2017-10-27 20:46:27 +02:00
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: boost
|
2016-06-02 02:54:02 +02:00
|
|
|
|
|
2017-10-28 14:10:23 +02:00
|
|
|
|
isim=libtorrent-rasterbar
|
|
|
|
|
surum=1.1.4
|
|
|
|
|
_surum=1_1_4
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://github.com/arvidn/libtorrent/archive/libtorrent-$_version.tar.gz::$isim-$surum.tar.gz
|
2017-09-20 17:23:51 +02:00
|
|
|
|
libtorrent-boost-1.65.patch)
|
2016-06-02 02:54:02 +02:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-09-20 17:23:51 +02:00
|
|
|
|
cd libtorrent-libtorrent-$_version
|
|
|
|
|
./autotool.sh
|
|
|
|
|
patch -p1 -i $SRC/libtorrent-boost-1.65.patch
|
2016-06-02 02:54:02 +02:00
|
|
|
|
|
2017-09-20 17:23:51 +02:00
|
|
|
|
#CONFIG_SHELL=/bin/bash \
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--enable-shared=yes \
|
|
|
|
|
--enable-static=no \
|
|
|
|
|
--enable-fast-install=yes \
|
|
|
|
|
--enable-largefile \
|
|
|
|
|
--enable-logging \
|
|
|
|
|
--disable-debug \
|
|
|
|
|
--enable-dht \
|
|
|
|
|
--enable-encryption \
|
|
|
|
|
--enable-deprecated-functions \
|
|
|
|
|
--enable-examples \
|
|
|
|
|
--disable-tests \
|
|
|
|
|
--enable-python-binding \
|
|
|
|
|
--with-libiconv
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
# build python2 bindings (python3 bindings are built during 'make')
|
|
|
|
|
python2 setup.py build
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
python2 setup.py install --root="$PKG" --optimize=1
|
|
|
|
|
|
|
|
|
|
# license
|
2017-10-28 14:10:23 +02:00
|
|
|
|
install -D -m644 COPYING "${PKG}/usr/share/licenses/${isim}/LICENSE"
|
2017-09-20 17:23:51 +02:00
|
|
|
|
|
|
|
|
|
# remove most example binaries
|
|
|
|
|
rm "$PKG"/usr/bin/{*_test,*_tester,simple_client,stats_counters}
|
|
|
|
|
|
2016-06-02 02:54:02 +02:00
|
|
|
|
}
|