2011-06-20 21:35:01 +02:00
|
|
|
# Template build file for 'libtorrent'
|
|
|
|
pkgname=libtorrent
|
2012-07-22 12:36:25 +02:00
|
|
|
version=0.13.2
|
2013-03-25 18:15:45 +01:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-03-25 18:15:45 +01:00
|
|
|
|
|
|
|
# Check endiannes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
# XXX Only supported targets are matched.
|
|
|
|
i686|x86_64|armv6l|mipsel) _endiannes="ac_cv_c_bigendian=no";;
|
|
|
|
*) _endiannes="ac_cv_c_bigendian=yes";;
|
|
|
|
esac
|
|
|
|
|
|
|
|
configure_args="--enable-static --disable-debug --without-kqueue --enable-aligned ${_endiannes}"
|
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="openssl-devel libsigc++-devel"
|
2011-06-20 21:35:01 +02:00
|
|
|
short_desc="BitTorrent library written in C++"
|
2011-07-17 08:27:36 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 21:42:00 +02:00
|
|
|
homepage="http://libtorrent.rakshasa.no"
|
|
|
|
license="GPL-2"
|
2012-07-22 12:36:25 +02:00
|
|
|
distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz"
|
|
|
|
checksum=ed2f2dea16c29cac63fa2724f6658786d955f975861fa6811bcf1597ff8a5e4f
|
2011-06-20 21:35:01 +02:00
|
|
|
long_desc="
|
|
|
|
LibTorrent is a BitTorrent library written in C++ for *nix, with a focus
|
|
|
|
on high performance and good code. The library differentiates itself from
|
|
|
|
other implementations by transfering directly from file pages to the network
|
|
|
|
stack. On high-bandwidth connections it is able to seed at 3 times the speed
|
|
|
|
of the official client."
|
2013-04-13 10:15:49 +02:00
|
|
|
|
|
|
|
libtorrent-devel_package() {
|
|
|
|
depends="libtorrent>=$version"
|
|
|
|
short_desc="${short_desc} - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libtorrent_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|