From 0f0b91e2f7f3d61bc9c625477d1a20f813ff3fed Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 25 Mar 2013 18:27:07 +0100 Subject: [PATCH] rtorrent: cross build and dbg support. --- .../patches/rtorrent-cross_compile.patch | 25 +++++++++++++++++++ srcpkgs/rtorrent/template | 10 ++++++-- 2 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/rtorrent/patches/rtorrent-cross_compile.patch diff --git a/srcpkgs/rtorrent/patches/rtorrent-cross_compile.patch b/srcpkgs/rtorrent/patches/rtorrent-cross_compile.patch new file mode 100644 index 0000000000..1298785691 --- /dev/null +++ b/srcpkgs/rtorrent/patches/rtorrent-cross_compile.patch @@ -0,0 +1,25 @@ +Fix cross compilation, based on OpenWRT patch. + +Signed-off-by: Gustavo Zacarias + +--- configure.ac 2012-04-20 03:55:30.000000000 -0300 ++++ configure.ac 2012-05-09 11:06:49.436474039 -0300 +@@ -4,7 +4,6 @@ + + AM_INIT_AUTOMAKE + AM_CONFIG_HEADER(config.h) +-AM_PATH_CPPUNIT(1.9.6) + + AC_PROG_CXX + AC_PROG_LIBTOOL +--- scripts/common.m4 2012-03-13 09:10:49.000000000 -0300 ++++ scripts/common.m4 2012-05-09 11:05:56.620102678 -0300 +@@ -223,7 +223,7 @@ + AC_DEFUN([TORRENT_CHECK_EXECINFO], [ + AC_MSG_CHECKING(for execinfo.h) + +- AC_RUN_IFELSE([AC_LANG_SOURCE([ ++ AC_LINK_IFELSE([AC_LANG_SOURCE([ + #include + int main() { backtrace((void**)0, 0); backtrace_symbols((char**)0, 0); return 0;} + ])], diff --git a/srcpkgs/rtorrent/template b/srcpkgs/rtorrent/template index da50776cd7..9871113376 100644 --- a/srcpkgs/rtorrent/template +++ b/srcpkgs/rtorrent/template @@ -1,11 +1,12 @@ # Template file for 'rtorrent' pkgname=rtorrent version=0.9.2 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-debug" depends="libtorrent>=0.13.2" -makedepends="pkg-config libcurl-devel libsigc++-devel libtorrent-devel>=0.13.2 ncurses-devel" +hostmakedepends="automake pkg-config" +makedepends="libcurl-devel libsigc++-devel libtorrent-devel>=0.13.2 ncurses-devel" short_desc="Ncurses BitTorrent client based on libTorrent" maintainer="Juan RP " homepage="http://libtorrent.rakshasa.no" @@ -17,3 +18,8 @@ long_desc=" 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 + autoreconf -fi +}