From patchwork Mon Dec 28 19:08:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 561387 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 1C7B5140C5E for ; Tue, 29 Dec 2015 06:09:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=GtLE7YY1; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8AC9B93452; Mon, 28 Dec 2015 19:09:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KP-vpvXNeltk; Mon, 28 Dec 2015 19:09:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2C19993423; Mon, 28 Dec 2015 19:09:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BC3211C11F4 for ; Mon, 28 Dec 2015 19:09:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B84AC895F3 for ; Mon, 28 Dec 2015 19:09:00 +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 l8GQ-BiQYDUn for ; Mon, 28 Dec 2015 19:08:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 0593388964 for ; Mon, 28 Dec 2015 19:08:59 +0000 (UTC) Received: by mail-wm0-f46.google.com with SMTP id f206so17929554wmf.0 for ; Mon, 28 Dec 2015 11:08:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=3aa/alrhnUF7VaXhfdnTLGFDVNPyyYBw90EGSOI1V2w=; b=GtLE7YY1BZChC5EU2DAR3QzmGnA3iQLVn9Xi5viW58zXfbbLS5nBLDV69klH5pX6Up zv05ncNcVmYoc5rQKDvBjsbejT5Y7/3UGn5ScMUrycKmiItsWtBGEKa5Ee7zMlDl9QaD 5Pt6tm8iX06Ji4hdKPyoXkE2KUwGUfAwKHducFIL1SNy4GSx9tqXdyIURuEZVZiP1u3H 2gwh4CQMLhfzIGZGzqE1q+IHWnbiXbdm+5g9Rf5lb56lD0Hnivb9y9kLnHZAQjbRVbVy DvXRhpfaAmLslUE8g7s0BPCnwxExe1zancEihZ7Dd++PrWuNN2ex+IK8myHKn03sEPFC WFew== X-Received: by 10.28.177.10 with SMTP id a10mr59139865wmf.4.1451329737387; Mon, 28 Dec 2015 11:08:57 -0800 (PST) Received: from gourin.bzh.lan (ns304657.ip-46-105-103.eu. [46.105.103.66]) by smtp.gmail.com with ESMTPSA id u12sm24064116wmu.10.2015.12.28.11.08.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Dec 2015 11:08:56 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Mon, 28 Dec 2015 20:08:54 +0100 Message-Id: <6208cd9e3ec1e0da22459393104981ab0e43d69b.1451329553.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 1/2] package/eigen: install .pc file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Other packages will look for eigen3.pc to detect the presence of eigen3. eigen3.pc is usually installed by eigen's cmake buildsystem, but we do a manual install to not depend on host-cmake just to install header files. But in doing so, we forgot to install the .pc file. Manually sed the source .pc.in to generate the final .pc file. Signed-off-by: "Yann E. MORIN" --- package/eigen/eigen.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk index dd88fde..3eb858a 100644 --- a/package/eigen/eigen.mk +++ b/package/eigen/eigen.mk @@ -20,6 +20,13 @@ define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS endef endif +# Generate the .pc file at build time +define EIGEN_BUILD_CMDS + sed -r -e 's,^Version: .*,Version: $(EIGEN_VERSION),' \ + -e 's,^Cflags: .*,Cflags: -I$(EIGEN_DEST_DIR),' \ + $(@D)/eigen3.pc.in >$(@D)/eigen3.pc +endef + # This package only consists of headers that need to be # copied over to the sysroot for compile time use define EIGEN_INSTALL_STAGING_CMDS @@ -27,6 +34,8 @@ define EIGEN_INSTALL_STAGING_CMDS mkdir -p $(EIGEN_DEST_DIR) cp -a $(@D)/Eigen $(EIGEN_DEST_DIR) $(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS) + $(INSTALL) -D -m 0644 $(@D)/eigen3.pc \ + $(STAGING_DIR)/usr/lib/pkgconfig/eigen3.pc endef $(eval $(generic-package))