2011-06-20 21:35:01 +02:00
|
|
|
# Template build file for 'libtorrent'
|
|
|
|
pkgname=libtorrent
|
2014-06-16 12:32:37 +02:00
|
|
|
version=0.13.4
|
2014-07-15 18:35:03 +02:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2014-02-02 12:05:26 +01:00
|
|
|
configure_args="--enable-static --disable-debug --without-kqueue
|
2014-06-16 12:32:37 +02:00
|
|
|
--enable-aligned --with-posix-fallocate"
|
2014-02-02 12:05:26 +01:00
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2014-07-15 18:35:03 +02:00
|
|
|
makedepends="zlib-devel libressl-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"
|
2014-06-16 12:32:37 +02:00
|
|
|
checksum=704e097119dc89e2ee4630396b25de1cd64b0549841347ea75b9ef9217084955
|
2013-04-13 10:15:49 +02:00
|
|
|
|
2014-02-02 12:05:26 +01:00
|
|
|
pre_configure() {
|
|
|
|
# Drop cppunit requirement
|
|
|
|
sed '/AM_PATH_CPPUNIT.*/d' -i configure.ac
|
|
|
|
autoreconf -fi
|
2014-06-16 12:32:37 +02:00
|
|
|
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
|
2014-02-02 12:05:26 +01:00
|
|
|
}
|
|
|
|
|
2013-04-13 10:15:49 +02:00
|
|
|
libtorrent-devel_package() {
|
2014-02-02 11:47:08 +01:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2014-01-01 16:10:11 +01:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 10:15:49 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-02 11:47:08 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 10:15:49 +02:00
|
|
|
}
|
|
|
|
}
|