2011-06-20 19:35:01 +00:00
|
|
|
# Template build file for 'libtorrent'
|
|
|
|
pkgname=libtorrent
|
2012-07-22 10:36:25 +00:00
|
|
|
version=0.13.2
|
2014-02-02 10:47:08 +00:00
|
|
|
revision=3
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-03-25 17:15:45 +00:00
|
|
|
|
|
|
|
# Check endiannes
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
# XXX Only supported targets are matched.
|
2014-02-02 10:47:08 +00:00
|
|
|
i686*|x86_64*|armv?l|mipsel) _endiannes="ac_cv_c_bigendian=no";;
|
2013-03-25 17:15:45 +00:00
|
|
|
*) _endiannes="ac_cv_c_bigendian=yes";;
|
|
|
|
esac
|
|
|
|
|
2014-02-02 11:05:26 +00:00
|
|
|
configure_args="--enable-static --disable-debug --without-kqueue
|
|
|
|
--enable-aligned ${_endiannes} --with-posix-fallocate have_stat_vfs=yes"
|
|
|
|
hostmakedepends="automake libtool pkg-config"
|
2013-03-25 17:15:45 +00:00
|
|
|
makedepends="openssl-devel libsigc++-devel"
|
2011-06-20 19:35:01 +00:00
|
|
|
short_desc="BitTorrent library written in C++"
|
2011-07-17 06:27:36 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-06-20 19:42:00 +00:00
|
|
|
homepage="http://libtorrent.rakshasa.no"
|
|
|
|
license="GPL-2"
|
2012-07-22 10:36:25 +00:00
|
|
|
distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz"
|
|
|
|
checksum=ed2f2dea16c29cac63fa2724f6658786d955f975861fa6811bcf1597ff8a5e4f
|
2013-04-13 08:15:49 +00:00
|
|
|
|
2014-02-02 11:05:26 +00:00
|
|
|
pre_configure() {
|
|
|
|
# Drop cppunit requirement
|
|
|
|
sed '/AM_PATH_CPPUNIT.*/d' -i configure.ac
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
|
2013-04-13 08:15:49 +00:00
|
|
|
libtorrent-devel_package() {
|
2014-02-02 10:47:08 +00:00
|
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
2014-01-01 15:10:11 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 08:15:49 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
2014-02-02 10:47:08 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 08:15:49 +00:00
|
|
|
}
|
|
|
|
}
|