From patchwork Mon May 14 20:55:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 159173 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 208D4B6FAA for ; Tue, 15 May 2012 06:55:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4703F101657; Mon, 14 May 2012 20:55:50 +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 54OkgURZowoF; Mon, 14 May 2012 20:55:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 44AB01014A8; Mon, 14 May 2012 20:55:48 +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 CBC148F753 for ; Mon, 14 May 2012 20:55:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id BEE8D8C721 for ; Mon, 14 May 2012 20:55:46 +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 g3e7gj9AJHuC for ; Mon, 14 May 2012 20:55:45 +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 8FD708AA33 for ; Mon, 14 May 2012 20:55:45 +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 q4EKtVZ5028165 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 14 May 2012 17:55:33 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1337028944; bh=mggLrlZgi07scso0qTw6hiLyWncrlwM8Yj7tKNOCfzI=; h=From:To:Cc:Subject:Date:Message-Id; b=Gs27oK+A3TK5qa0calrDFey5xyc5l/gIBNUt1W8Z0EHAm2mPVXoJHqWeDa7qKcQyJ rTN2Oo7LxDBwII7ZpEePmB5cIhKlvs/4RZFW+G0+EbCwG86/KeVNEtzP/LFkZSndjN YIO1z7pKCFECYDXZ+CR7lgUHr+J2rSJJMaT6Eyb0= Received: by asgard (sSMTP sendmail emulation); Mon, 14 May 2012 17:55:30 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Mon, 14 May 2012 17:55:28 -0300 Message-Id: <1337028929-27975-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.3.4 X-Virus-Scanned: clamav-milter 0.97.3 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCHv3 1/2] libtorrent: 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/libtorrent/Config.in | 11 ++++++++ package/libtorrent/libtorrent-cross_compile.patch | 27 +++++++++++++++++++++ package/libtorrent/libtorrent.mk | 16 ++++++++++++ 4 files changed, 55 insertions(+), 0 deletions(-) create mode 100644 package/libtorrent/Config.in create mode 100644 package/libtorrent/libtorrent-cross_compile.patch create mode 100644 package/libtorrent/libtorrent.mk diff --git a/package/Config.in b/package/Config.in index 98d550b..5480457 100644 --- a/package/Config.in +++ b/package/Config.in @@ -410,6 +410,7 @@ source "package/libpcap/Config.in" source "package/libosip2/Config.in" source "package/librsync/Config.in" source "package/libsoup/Config.in" +source "package/libtorrent/Config.in" source "package/libupnp/Config.in" source "package/libvncserver/Config.in" source "package/zeromq/Config.in" diff --git a/package/libtorrent/Config.in b/package/libtorrent/Config.in new file mode 100644 index 0000000..f0315a4 --- /dev/null +++ b/package/libtorrent/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_LIBTORRENT + bool "libtorrent" + depends on BR2_INSTALL_LIBSTDCPP + select BR2_PACKAGE_LIBSIGC + help + BitTorrent library written in C++ for *nix + + http://libtorrent.rakshasa.no/ + +comment "libtorrent requires a toolchain with C++ support enabled" + depends on !BR2_INSTALL_LIBSTDCPP diff --git a/package/libtorrent/libtorrent-cross_compile.patch b/package/libtorrent/libtorrent-cross_compile.patch new file mode 100644 index 0000000..39fe700 --- /dev/null +++ b/package/libtorrent/libtorrent-cross_compile.patch @@ -0,0 +1,27 @@ +Fix cross compilation, based on OpenWRT patch. + +Signed-off-by: Gustavo Zacarias + +diff -Nura libtorrent-0.13.2/configure.ac libtorrent-0.13.2-cross/configure.ac +--- libtorrent-0.13.2/configure.ac 2012-04-20 03:55:10.000000000 -0300 ++++ libtorrent-0.13.2-cross/configure.ac 2012-05-09 10:57:49.671175421 -0300 +@@ -17,7 +17,6 @@ + + AM_INIT_AUTOMAKE + AM_CONFIG_HEADER(config.h) +-AM_PATH_CPPUNIT(1.9.6) + AC_DISABLE_STATIC + + AM_DISABLE_STATIC +diff -Nura libtorrent-0.13.2/scripts/checks.m4 libtorrent-0.13.2-cross/scripts/checks.m4 +--- libtorrent-0.13.2/scripts/checks.m4 2012-04-12 06:44:23.000000000 -0300 ++++ libtorrent-0.13.2-cross/scripts/checks.m4 2012-05-09 10:42:32.642728917 -0300 +@@ -96,7 +96,7 @@ + AC_DEFUN([TORRENT_CHECK_KQUEUE_SOCKET_ONLY], [ + AC_MSG_CHECKING(whether kqueue supports pipes and ptys) + +- AC_RUN_IFELSE([AC_LANG_SOURCE([ ++ AC_LINK_IFELSE([AC_LANG_SOURCE([ + #include + #include + #include diff --git a/package/libtorrent/libtorrent.mk b/package/libtorrent/libtorrent.mk new file mode 100644 index 0000000..100e684 --- /dev/null +++ b/package/libtorrent/libtorrent.mk @@ -0,0 +1,16 @@ +############################################################# +# +# libtorrent +# +############################################################# + +LIBTORRENT_VERSION = 0.13.2 +LIBTORRENT_SITE = http://libtorrent.rakshasa.no/downloads +LIBTORRENT_DEPENDENCIES = host-pkg-config libsigc \ + $(if $(BR2_PACKAGE_OPENSSL),openssl) +LIBTORRENT_CONF_OPT = --enable-aligned \ + $(if $(BR2_PACKAGE_OPENSSL),--enable-openssl,--disable-openssl) +LIBTORRENT_INSTALL_STAGING = YES +LIBTORRENT_AUTORECONF = YES + +$(eval $(call AUTOTARGETS))