From patchwork Tue May 13 16:10:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Derycke X-Patchwork-Id: 348440 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id BD3BC140080 for ; Wed, 14 May 2014 02:10:44 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4218B8B651; Tue, 13 May 2014 16:10:43 +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 43CgLVJRGO1T; Tue, 13 May 2014 16:10:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 60C9B8C06E; Tue, 13 May 2014 16:10:42 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 19BF01BFA70 for ; Tue, 13 May 2014 16:10:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 14D4D8A5EC for ; Tue, 13 May 2014 16:10:41 +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 sI24ghUM+hmj for ; Tue, 13 May 2014 16:10:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by hemlock.osuosl.org (Postfix) with ESMTPS id BFA498A5EB for ; Tue, 13 May 2014 16:10:39 +0000 (UTC) Received: by mail-we0-f170.google.com with SMTP id u57so624433wes.15 for ; Tue, 13 May 2014 09:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=fGKo4Piqhi7bW69sD6+ujAFE2/mbnOCiu2IhHbSNUbE=; b=BlHc3tmjc/Vv9TB0afRnDZf7fLmNsqP87onRG7iJEzsK+XR70vVkkgWpVVX9UddP7v nfhPXxbC5oWS7vcQPVeXsJJOM6W0vTrnToMDq1HUUR7HjT85GYwC/K87e5ifND2ztmST qs5ocIC3STTKc2krIa6rHSOyt4Hcbh/VVLKceFho0lPMh8XerbLRIw9ZcrJwfE3ZZGgW hwXnXdrDyLDaB2oZQrBaaMWnmYxI6G702l2GxmLf7TxaL5+sRb+A2MDWWw02Lwxgy47d 1IcWzuCbVXhiB85uGfcsIrLz30FFIGSnYJmIFylo5Q8Ctx6ADev30ch4g+sn0LV/VgOO RfIQ== X-Received: by 10.194.100.67 with SMTP id ew3mr419682wjb.57.1399997438105; Tue, 13 May 2014 09:10:38 -0700 (PDT) Received: from kuuclt18625l.barco.com ([91.183.172.93]) by mx.google.com with ESMTPSA id o9sm22777335wjo.1.2014.05.13.09.10.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 May 2014 09:10:37 -0700 (PDT) X-Google-Original-From: Johan Derycke From: Johan Derycke To: buildroot@buildroot.org Date: Tue, 13 May 2014 18:10:18 +0200 Message-Id: <1399997418-27131-1-git-send-email-johan.derycke@barco.com> X-Mailer: git-send-email 1.9.1 Cc: Johan Derycke Subject: [Buildroot] [PATCH 1/1] icu: add an option to add a custom data library file 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 Signed-off-by: Johan Derycke --- package/icu/Config.in | 21 +++++++++++++++++++++ package/icu/icu.mk | 9 +++++++++ 2 files changed, 30 insertions(+) diff --git a/package/icu/Config.in b/package/icu/Config.in index 9a27894..1f27b4b 100644 --- a/package/icu/Config.in +++ b/package/icu/Config.in @@ -13,8 +13,29 @@ config BR2_PACKAGE_ICU http://site.icu-project.org/ +if BR2_PACKAGE_ICU + +config BR2_PACKAGE_ICU_CUSTOM_DATA + bool "Custom data library" + help + Use a custom data library generated with: + http://apps.icu-project.org/datacustom/ICUData51.html + +if BR2_PACKAGE_ICU_CUSTOM_DATA + +config BR2_PACKAGE_ICU_CUSTOM_DATA_PATH + string "Data library file to use?" + default "/path/to/data/library" + help + This option allows to set the path of such a data library file + +endif + +endif + comment "icu needs a toolchain w/ C++, wchar, threads" depends on !BR2_arc depends on !BR2_BINFMT_FLAT depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS + diff --git a/package/icu/icu.mk b/package/icu/icu.mk index f93eab1..664ce1c 100644 --- a/package/icu/icu.mk +++ b/package/icu/icu.mk @@ -26,5 +26,14 @@ ICU_MAKE = $(MAKE1) ICU_SUBDIR = source HOST_ICU_SUBDIR = source +define ICU_COPY_CUSTOM_DATA + cp $(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH) $(@D)/source/data/in/ +endef + +ifeq ($(BR2_PACKAGE_ICU_CUSTOM_DATA),y) +ICU_POST_EXTRACT_HOOKS += ICU_COPY_CUSTOM_DATA +endif + + $(eval $(autotools-package)) $(eval $(host-autotools-package))