From patchwork Thu Sep 27 18:16:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentine Barshak X-Patchwork-Id: 187434 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 7B5132C00AC for ; Fri, 28 Sep 2012 04:15:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C80E1200B6; Thu, 27 Sep 2012 18:15:47 +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 ZaEgERohYlwG; Thu, 27 Sep 2012 18:15:47 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 2A4DB200FE; Thu, 27 Sep 2012 18:15:47 +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 1F2698F75E for ; Thu, 27 Sep 2012 18:15:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 1761A8F4E1 for ; Thu, 27 Sep 2012 18:15: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 Al9a6Hfbo36D for ; Thu, 27 Sep 2012 18:15:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bk0-f43.google.com (mail-bk0-f43.google.com [209.85.214.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id 175928D6F1 for ; Thu, 27 Sep 2012 18:15:44 +0000 (UTC) Received: by bkuw5 with SMTP id w5so3782677bku.16 for ; Thu, 27 Sep 2012 11:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:reply-to:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=mJ7lFGtlXYrNg5Rk0siLwuuesz4ptxqk5r91GJHGVVA=; b=pDkhqiJNyparrJPRXqS26/8wjkFEHwHQpDo7OEVbd5KlYsRfS/xSqSO6ygqhy7st6r 5ydK4GBY01V0wOM+ZQ8zVlSF9yOPkycJdO9FPRo6WBclUYH3b/gSZs+lwgj+GiMkCQjq lD5TOT+IOojJwrl9vmOYeCKfATaQMguPDd3lqumZimtv1LVJTT8a2NT5LaxbvJHlGJ7x 3fX1U3Tuz6hj9Ema2MeWCW2LKJ0ZFgZeGsZporuoNfBYo6vPui6D/K7CY2z8PK9XBwef 5RXJw3Pboc+wwc9+deTc6HUokJZB2zowtAdYoCCCPSShA906QuoW4vdxi41DqrEVpr4A 4Y5A== Received: by 10.112.27.232 with SMTP id w8mr1875569lbg.77.1348769743036; Thu, 27 Sep 2012 11:15:43 -0700 (PDT) Received: from gmail.com ([93.100.122.208]) by mx.google.com with ESMTPS id p7sm1927016lbg.17.2012.09.27.11.15.42 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Sep 2012 11:15:42 -0700 (PDT) Date: Thu, 27 Sep 2012 22:16:26 +0400 From: Valentine Barshak To: buildroot@busybox.net Message-ID: <20120927181626.GA21315@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120927181306.GA21215@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Thomas Petazzoni , Peter Korsgaard Subject: [Buildroot] [PATCH 1/3] libdvdread: Fix dvdread-config X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Valentine Barshak List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This fixes path prefix in the staging dvdread-config and removes dvdread-config from the target filesystem if BR2_HAVE_DEVFILES is not set. Signed-off-by: Valentine Barshak --- package/libdvdread/libdvdread.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/package/libdvdread/libdvdread.mk b/package/libdvdread/libdvdread.mk index 6e17731..6e64bdd 100644 --- a/package/libdvdread/libdvdread.mk +++ b/package/libdvdread/libdvdread.mk @@ -11,4 +11,18 @@ LIBDVDREAD_AUTORECONF = YES LIBDVDREAD_LIBTOOL_PATCH = YES LIBDVDREAD_INSTALL_STAGING = YES +define LIBDVDREAD_TARGET_CLEANUP + $(RM) -f $(TARGET_DIR)/usr/bin/dvdread-config +endef + +ifeq ($(BR2_HAVE_DEVFILES),) +LIBDVDREAD_POST_INSTALL_TARGET_HOOKS += LIBDVDREAD_TARGET_CLEANUP +endif + +define LIBDVDREAD_STAGING_FIXUP_DVDREAD_CONFIG + $(SED) "s,prefix=/usr,prefix=$(STAGING_DIR)/usr," $(STAGING_DIR)/usr/bin/dvdread-config +endef + +LIBDVDREAD_POST_INSTALL_STAGING_HOOKS += LIBDVDREAD_STAGING_FIXUP_DVDREAD_CONFIG + $(eval $(autotools-package))