From patchwork Mon May 14 20:55:29 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 159174 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id F3732B6FAA for ; Tue, 15 May 2012 06:55:56 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2953210180D; Mon, 14 May 2012 20:55:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id axkqhwehax7n; Mon, 14 May 2012 20:55:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3C3AF10180E; Mon, 14 May 2012 20:55:52 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 734CB8F753 for ; Mon, 14 May 2012 20:55:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6876F8C721 for ; Mon, 14 May 2012 20:55:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zCQ3lfqBSxUo for ; Mon, 14 May 2012 20:55:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [74.118.36.95]) by whitealder.osuosl.org (Postfix) with ESMTPS id CD3638AA33 for ; Mon, 14 May 2012 20:55:50 +0000 (UTC) Received: from asgard (host101.190-231-11.telecom.net.ar [190.231.11.101]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.5/8.14.5) with ESMTP id q4EKtjOe028187 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 May 2012 17:55:47 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1337028949; bh=B7NptsHI5TRIrsaTXSWpGveNRqeRLeDFPPx0z5cDyoY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=YiryeoQbSdZD8zvVcJivk+RGXVrW6CbK2w9etmMOz8yzFussgPnBz5xSmxoq3wtK5 j4LLUI9GFlWndRJPtz2jo6IZ76AQaM/k0/Vef6nfKvCHW5jNeNPoI1oSy2avORLi4E Z8TG7FUlxgKF9Stm+9Ro+h34mS22PtfBbtSekz0w= Received: by asgard (sSMTP sendmail emulation); Mon, 14 May 2012 17:55:44 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 14 May 2012 17:55:29 -0300 Message-Id: <1337028929-27975-2-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1337028929-27975-1-git-send-email-gustavo@zacarias.com.ar> References: <1337028929-27975-1-git-send-email-gustavo@zacarias.com.ar> X-Virus-Scanned: clamav-milter 0.97.3 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCHv3 2/2] rtorrent: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Gustavo Zacarias --- package/Config.in | 1 + package/rtorrent/Config.in | 16 ++++++++++++++ package/rtorrent/rtorrent-cross_compile.patch | 27 +++++++++++++++++++++++++ package/rtorrent/rtorrent.mk | 12 +++++++++++ 4 files changed, 56 insertions(+), 0 deletions(-) create mode 100644 package/rtorrent/Config.in create mode 100644 package/rtorrent/rtorrent-cross_compile.patch create mode 100644 package/rtorrent/rtorrent.mk diff --git a/package/Config.in b/package/Config.in index 5480457..c7748b2 100644 --- a/package/Config.in +++ b/package/Config.in @@ -562,6 +562,7 @@ source "package/radvd/Config.in" source "package/rp-pppoe/Config.in" source "package/rsh-redone/Config.in" source "package/rsync/Config.in" +source "package/rtorrent/Config.in" source "package/samba/Config.in" source "package/ser2net/Config.in" source "package/socat/Config.in" diff --git a/package/rtorrent/Config.in b/package/rtorrent/Config.in new file mode 100644 index 0000000..142ff8b --- /dev/null +++ b/package/rtorrent/Config.in @@ -0,0 +1,16 @@ +config BR2_PACKAGE_RTORRENT + bool "rtorrent" + depends on BR2_INSTALL_LIBSTDCPP + depends on BR2_USE_WCHAR + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_LIBSIGC + select BR2_PACKAGE_LIBTORRENT + select BR2_PACKAGE_NCURSES + select BR2_PACKAGE_OPENSSL + help + BitTorrent Client using libtorrent + + http://libtorrent.rakshasa.no/ + +comment "rtorrent requires a toolchain with C++ and WCHAR support" + depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR) diff --git a/package/rtorrent/rtorrent-cross_compile.patch b/package/rtorrent/rtorrent-cross_compile.patch new file mode 100644 index 0000000..2be8d06 --- /dev/null +++ b/package/rtorrent/rtorrent-cross_compile.patch @@ -0,0 +1,27 @@ +Fix cross compilation, based on OpenWRT patch. + +Signed-off-by: Gustavo Zacarias + +diff -Nura rtorrent-0.9.2/configure.ac rtorrent-0.9.2-cross/configure.ac +--- rtorrent-0.9.2/configure.ac 2012-04-20 03:55:30.000000000 -0300 ++++ rtorrent-0.9.2-cross/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 +diff -Nura rtorrent-0.9.2/scripts/common.m4 rtorrent-0.9.2-cross/scripts/common.m4 +--- rtorrent-0.9.2/scripts/common.m4 2012-03-13 09:10:49.000000000 -0300 ++++ rtorrent-0.9.2-cross/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/package/rtorrent/rtorrent.mk b/package/rtorrent/rtorrent.mk new file mode 100644 index 0000000..f60bd40 --- /dev/null +++ b/package/rtorrent/rtorrent.mk @@ -0,0 +1,12 @@ +############################################################# +# +# rtorrent +# +############################################################# + +RTORRENT_VERSION = 0.9.2 +RTORRENT_SITE = http://libtorrent.rakshasa.no/downloads +RTORRENT_DEPENDENCIES = host-pkg-config libcurl libsigc libtorrent ncurses +RTORRENT_AUTORECONF = YES + +$(eval $(call AUTOTARGETS))