From patchwork Thu Sep 5 13:53:27 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Weber X-Patchwork-Id: 272892 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AA3602C00E1 for ; Thu, 5 Sep 2013 23:53:40 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B111526496; Thu, 5 Sep 2013 13:53:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O0ACnjvWAQV7; Thu, 5 Sep 2013 13:53:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2C4C3308F3; Thu, 5 Sep 2013 13:53:27 +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 757541BF9DB for ; Thu, 5 Sep 2013 13:53:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6D1F48C8E2 for ; Thu, 5 Sep 2013 13:53:35 +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 lra27c1YPaFw for ; Thu, 5 Sep 2013 13:53:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com [205.175.225.241]) by whitealder.osuosl.org (Postfix) with ESMTPS id 28FF58C8DE for ; Thu, 5 Sep 2013 13:53:31 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp02.rockwellcollins.com) ([131.198.63.133]) by mail-virt.rockwellcollins.com with ESMTP; 05 Sep 2013 08:53:29 -0500 Received: from ares ([131.198.63.11]) by collinscrsmtp02.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013090508532823-709479 ; Thu, 5 Sep 2013 08:53:28 -0500 From: Matt Weber To: buildroot@busybox.net Date: Thu, 5 Sep 2013 08:53:27 -0500 Message-Id: <1378389207-31680-1-git-send-email-mlweber1@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP02/CedarRapids/RockwellCollins(Release 8.5.2FP2 HF162|May 16, 2011) at 09/05/2013 08:53:28 AM, Serialize by Router on CollinsCRSMTP02/CedarRapids/RockwellCollins(Release 8.5.2FP2 HF162|May 16, 2011) at 09/05/2013 08:53:28 AM, Serialize complete at 09/05/2013 08:53:28 AM X-TNEFEvaluated: 1 Cc: Matt Weber Subject: [Buildroot] [PATCH v2] eigen: 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: Matt Weber --- Changes v1 -> v2: * Fixed order of where new pkg was added in package/Config.in (suggested by Arnout) * Cleaned up pkg description in package/eigen/Config.in (suggested by Arnout) * Fixed SITE/SOURCE issue. Ended up switching to a mercurial repo tag instead of source pkg. This was because of the download site renaming the archive to have a different name then what was provided for a download URL. (version vs hashtag used in archive naming) (suggested by Arnout) * Cleaned up license list and added all the license files (suggested by Arnout) * Removed uninstall and added cleanup cmds before the cp in the install staging (suggested by Arnout) package/Config.in | 1 + package/eigen/Config.in | 14 ++++++++++++++ package/eigen/eigen.mk | 22 ++++++++++++++++++++++ 3 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 package/eigen/Config.in create mode 100644 package/eigen/eigen.mk diff --git a/package/Config.in b/package/Config.in index a94cb62..52513a9 100644 --- a/package/Config.in +++ b/package/Config.in @@ -616,6 +616,7 @@ source "package/apr-util/Config.in" source "package/libcofi/Config.in" source "package/classpath/Config.in" source "package/cppcms/Config.in" +source "package/eigen/Config.in" source "package/elfutils/Config.in" source "package/fftw/Config.in" source "package/libargtable2/Config.in" diff --git a/package/eigen/Config.in b/package/eigen/Config.in new file mode 100644 index 0000000..bfb1ab7 --- /dev/null +++ b/package/eigen/Config.in @@ -0,0 +1,14 @@ +config BR2_PACKAGE_EIGEN + bool "eigen" + help + Eigen is a C++ template library for linear algebra: vectors, + matrices, and related algorithms. It is versatile, fast, elegant + and works on many platforms (OS/Compilers). + + This package only installs header files to the include path. + If you just want to use Eigen, you can use the header files + right away. There is no binary to link to. Eigen is a pure + template library defined in the headers. + + http://eigen.tuxfamily.org/ + diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk new file mode 100644 index 0000000..1a88d90 --- /dev/null +++ b/package/eigen/eigen.mk @@ -0,0 +1,22 @@ +############################################################# +# +# Eigen - a C++ template library for linear algebra +# +############################################################# +# version 3.2 +EIGEN_VERSION = ffa86ffb5570 +EIGEN_SITE = https://bitbucket.org/eigen/eigen/ +EIGEN_SITE_METHOD = hg +EIGEN_LICENSE = MPL2, BSD-3c, LGPLv2.1 +EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README +EIGEN_INSTALL_STAGING = YES +EIGEN_INSTALL_TARGET = NO + +# This package only consists of headers that need to be +# copied over to the sysroot for compile time use +define EIGEN_INSTALL_STAGING_CMDS + $(RM) -r $(STAGING_DIR)/usr/include/Eigen + cp -a $(@D)/Eigen $(STAGING_DIR)/usr/include/ +endef + +$(eval $(generic-package))