Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <zonque@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] package/libusb: move pkgconfig file to staging dir after install
Date: Tue, 16 Aug 2011 14:16:19 +0200	[thread overview]
Message-ID: <1313496979-1565-2-git-send-email-zonque@gmail.com> (raw)
In-Reply-To: <1313496979-1565-1-git-send-email-zonque@gmail.com>

There is unfortunately no way to tell udev's configure process about
the install location of its pkgconfig files. However, should should
clearly end up in the staging area and not in the target.

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 package/libusb/libusb.mk |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/package/libusb/libusb.mk b/package/libusb/libusb.mk
index 050e2ba..1dc28d9 100644
--- a/package/libusb/libusb.mk
+++ b/package/libusb/libusb.mk
@@ -10,4 +10,10 @@ LIBUSB_DEPENDENCIES = host-pkg-config
 LIBUSB_INSTALL_STAGING = YES
 LIBUSB_INSTALL_TARGET = YES
 
+define LIBUSB_POST_INSTALL
+        mv $(TARGET_DIR)/usr/lib/pkgconfig/libusb*.pc $(STAGING_DIR)/usr/lib/pkgconfig/
+endef
+
+LIBUSB_POST_INSTALL_TARGET_HOOKS += LIBUSB_POST_INSTALL
+
 $(eval $(call AUTOTARGETS,package,libusb))
-- 
1.7.6

      reply	other threads:[~2011-08-16 12:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-16 12:16 [Buildroot] [PATCH 1/2] package/udev: move pkgconfig files to staging dir after install Daniel Mack
2011-08-16 12:16 ` Daniel Mack [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1313496979-1565-2-git-send-email-zonque@gmail.com \
    --to=zonque@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox