# Template build file for 'libtorrent' pkgname=libtorrent version=0.13.2 revision=3 build_style=gnu-configure # Check endiannes case "$XBPS_TARGET_MACHINE" in # XXX Only supported targets are matched. i686*|x86_64*|armv?l|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} --with-posix-fallocate have_stat_vfs=yes" hostmakedepends="automake libtool pkg-config" makedepends="openssl-devel libsigc++-devel" short_desc="BitTorrent library written in C++" maintainer="Juan RP " homepage="http://libtorrent.rakshasa.no" license="GPL-2" distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz" checksum=ed2f2dea16c29cac63fa2724f6658786d955f975861fa6811bcf1597ff8a5e4f pre_configure() { # Drop cppunit requirement sed '/AM_PATH_CPPUNIT.*/d' -i configure.ac autoreconf -fi } libtorrent-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove usr/lib/pkgconfig vmove "usr/lib/*.a" vmove "usr/lib/*.so" } }