From patchwork Wed Mar 19 15:48:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Davide Viti X-Patchwork-Id: 331770 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 47A872C007C for ; Thu, 20 Mar 2014 02:49:14 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 2B16532F5E; Wed, 19 Mar 2014 15:49:13 +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 yFqQnWxdkSsi; Wed, 19 Mar 2014 15:49:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id E2B1B32EE0; Wed, 19 Mar 2014 15:49:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 889F01BF97C for ; Wed, 19 Mar 2014 15:49:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8539F82142 for ; Wed, 19 Mar 2014 15:49:08 +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 U2keI0KWx5v0 for ; Wed, 19 Mar 2014 15:49:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 1D3888B742 for ; Wed, 19 Mar 2014 15:49:06 +0000 (UTC) Received: by mail-ee0-f41.google.com with SMTP id t10so6801085eei.14 for ; Wed, 19 Mar 2014 08:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=HBDq/81kIWoOUxvvAFGldyseV5ADhlmiCCjU30cXyvA=; b=kebUj4h8yh/LMymUAmPYGMalCQRcQVtNwl4WD5m5u4gSfuJ8zWT/U1utqrae95WzgK NHoHA3FBHD5ieyOXbt+Ue01ILU+Ek8RHI2wSDYgk1XVgmFsEtLRV1YkqWgIj1BOWmh0E iMY7Iuyc8J+/g5Uhx6cVCR6P9ySQ7LnvS2tu67cI0Qwimd5lSjKUNWQ28yuahAE8T2+i RILWEGNwEmwz9QWXmBbybthnK2y+m18HFlup7xb9fmVAlfQL4tcq+uE4NLkavTLiaYRq JtyrFqG1q2MtlL7l3UUBiyTKtUyMfq5KEqwhr9iTmaqPZ6qGcHml3q2p3YjbYV0xzaQ4 Sd9w== X-Received: by 10.14.219.137 with SMTP id m9mr21390079eep.77.1395244145618; Wed, 19 Mar 2014 08:49:05 -0700 (PDT) Received: from slurp64.infosolution.local (89-96-73-92.ip11.fastwebnet.it. [89.96.73.92]) by mx.google.com with ESMTPSA id l42sm55422137eew.19.2014.03.19.08.49.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 19 Mar 2014 08:49:04 -0700 (PDT) From: Davide Viti To: buildroot@buildroot.org Date: Wed, 19 Mar 2014 16:48:53 +0100 Message-Id: <1395244134-32329-1-git-send-email-d.viti@infosolution.it> X-Mailer: git-send-email 1.9.0 Cc: Davide Viti Subject: [Buildroot] [PATCH v4 1/2] eigen: follow default installation scheme 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 eigen's build-system (cmake), by default, installs the header files in /usr/include/eigen3 Signed-off-by: Davide Viti --- Changes v3 -> v4: - install files into $(STAGING_DIR)/usr/include/eigen3 - use EIGEN_DEST_DIR to reduce name duplication package/eigen/eigen.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk index 5abd464..9a5ce7d 100644 --- a/package/eigen/eigen.mk +++ b/package/eigen/eigen.mk @@ -12,12 +12,14 @@ 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 +EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3 # 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/ + $(RM) -r $(EIGEN_DEST_DIR) + mkdir -p $(EIGEN_DEST_DIR) + cp -a $(@D)/Eigen $(EIGEN_DEST_DIR) endef $(eval $(generic-package))