libtorrent: proper cross build support.
This commit is contained in:
parent
8454015e7b
commit
f72d172033
2 changed files with 23 additions and 2 deletions
14
srcpkgs/libtorrent/patches/fix-sysroot-handling.patch
Normal file
14
srcpkgs/libtorrent/patches/fix-sysroot-handling.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
--sysroot should be enough.
|
||||
|
||||
--- scripts/common.m4.orig 2014-02-02 11:58:17.361448885 +0100
|
||||
+++ scripts/common.m4 2014-02-02 11:59:13.048185911 +0100
|
||||
@@ -63,8 +63,7 @@ AC_DEFUN([TORRENT_WITH_SYSROOT], [
|
||||
else
|
||||
AC_MSG_RESULT($withval)
|
||||
|
||||
- CXXFLAGS="$CXXFLAGS -isysroot $withval"
|
||||
- LDFLAGS="$LDFLAGS -Wl,-syslibroot,$withval"
|
||||
+ CXXFLAGS="$CXXFLAGS --sysroot=$withval"
|
||||
fi
|
||||
])
|
||||
])
|
|
@ -11,8 +11,9 @@ case "$XBPS_TARGET_MACHINE" in
|
|||
*) _endiannes="ac_cv_c_bigendian=yes";;
|
||||
esac
|
||||
|
||||
configure_args="--enable-static --disable-debug --without-kqueue --enable-aligned ${_endiannes}"
|
||||
hostmakedepends="pkg-config"
|
||||
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 <xtraeme@gmail.com>"
|
||||
|
@ -21,6 +22,12 @@ 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"
|
||||
|
|
Loading…
Reference in a new issue