rtorrent: proper cross build support.

This commit is contained in:
Juan RP 2014-02-02 12:09:43 +01:00
parent f72d172033
commit 04f13bf199
2 changed files with 16 additions and 7 deletions

View 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
])
])

View File

@ -1,10 +1,10 @@
# Template file for 'rtorrent'
pkgname=rtorrent
version=0.9.2
revision=2
revision=3
build_style=gnu-configure
configure_args="--disable-debug"
hostmakedepends="automake pkg-config"
hostmakedepends="automake libtool pkg-config"
makedepends="libcurl-devel libsigc++-devel libtorrent-devel>=0.13.2 ncurses-devel"
depends="libtorrent>=0.13.2"
short_desc="Ncurses BitTorrent client based on libTorrent"
@ -13,11 +13,6 @@ homepage="http://libtorrent.rakshasa.no"
license="GPL-2"
distfiles="http://libtorrent.rakshasa.no/downloads/$pkgname-$version.tar.gz"
checksum=5c8f8c780bee376afce3c1cde2f5ecb928f40bac23b2b8171deed5cf3c888c3d
long_desc="
rtorrent is a BitTorrent client for ncurses, using the libtorrent library.
The client and library is written in C++ with emphasis on speed and efficiency,
while delivering equivalent features to those found in GUI based clients
in an ncurses client."
pre_configure() {
sed -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -i configure.ac