From patchwork Thu Aug 29 20:07:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Barnett X-Patchwork-Id: 270931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 041832C00A4 for ; Fri, 30 Aug 2013 06:07:24 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 05B1A8B9D5; Thu, 29 Aug 2013 20:07:23 +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 vy156ZdzP8Hm; Thu, 29 Aug 2013 20:07:21 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8C8428B911; Thu, 29 Aug 2013 20:07:20 +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 D386A1BFA82 for ; Thu, 29 Aug 2013 20:07:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CC7868D4C3 for ; Thu, 29 Aug 2013 20:07:18 +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 q42nWx28h0EJ for ; Thu, 29 Aug 2013 20:07:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com [205.175.225.240]) by whitealder.osuosl.org (Postfix) with ESMTPS id DFBF28D496 for ; Thu, 29 Aug 2013 20:07:17 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp01.rockwellcollins.com) ([131.198.63.132]) by mail-virt.rockwellcollins.com with ESMTP; 29 Aug 2013 15:07:15 -0500 Received: from ares ([131.198.63.11]) by collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013082915071506-1119401 ; Thu, 29 Aug 2013 15:07:15 -0500 From: Ryan Barnett To: buildroot@busybox.net Date: Thu, 29 Aug 2013 15:07:13 -0500 Message-Id: <1377806833-31991-3-git-send-email-rjbarnet@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1377806833-31991-1-git-send-email-rjbarnet@rockwellcollins.com> References: <1377806833-31991-1-git-send-email-rjbarnet@rockwellcollins.com> X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 08/29/2013 03:07:15 PM, Serialize by Router on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 08/29/2013 03:07:15 PM, Serialize complete at 08/29/2013 03:07:15 PM X-TNEFEvaluated: 1 Subject: [Buildroot] [PATCH 2/2] libcurl: remove man and static lib from target 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 Remove the documentation that libcurl installs on the target along with removing the static libraries on the target. The documentation and static library will only exist in the sysroot. Signed-off-by: Ryan Barnett --- package/libcurl/libcurl.mk | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk index 79c16eb..caf355d 100644 --- a/package/libcurl/libcurl.mk +++ b/package/libcurl/libcurl.mk @@ -54,6 +54,26 @@ endef LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_CLEANUP endif +# Remove unneeded files/directories from target +LIBCURL_UNNEEDED_FILES = \ + usr/lib/libcurl.a \ + usr/lib/libcurl.la \ + usr/include/curl \ + usr/lib/pkgconfig/libcurl.pc +define LIBCURL_REMOVE_UNNEEDED_FILES + rm -rf $(addprefix $(TARGET_DIR)/, $(LIBCURL_UNNEEDED_FILES)) +endef +LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_REMOVE_UNNEEDED_FILES + +# Remove Documentation +ifneq ($(BR2_HAVE_DOCUMENTATION),y) +define LIBCURL_TARGET_REMOVE_DOCUMENTATION + rm -f $(TARGET_DIR)/usr/share/man/man3/*curl* + rm -f $(TARGET_DIR)/usr/share/man/man1/*curl* +endef +LIBCURL_POST_INSTALL_TARGET_HOOKS += LIBCURL_TARGET_REMOVE_DOCUMENTATION +endif + $(eval $(autotools-package)) curl: libcurl