From patchwork Thu Mar 28 12:15:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Dawson X-Patchwork-Id: 231994 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 93E502C00B9 for ; Thu, 28 Mar 2013 23:15:38 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6DD38A0337; Thu, 28 Mar 2013 12:15:36 +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 imRJ4mIfp6xW; Thu, 28 Mar 2013 12:15:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 6F2B0A003C; Thu, 28 Mar 2013 12:15:31 +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 98F868F753 for ; Thu, 28 Mar 2013 12:15:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 07F268C9D2 for ; Thu, 28 Mar 2013 12:15:30 +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 zPH1Yv3DE7hV for ; Thu, 28 Mar 2013 12:15:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by whitealder.osuosl.org (Postfix) with ESMTPS id A9A318C90B for ; Thu, 28 Mar 2013 12:15:26 +0000 (UTC) Received: by mail-wi0-f172.google.com with SMTP id hr17so3230871wib.5 for ; Thu, 28 Mar 2013 05:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer; bh=I+v2vz5z5NEbgSTQJXPDMU90QPo1UqmuuLsKLBFrD8o=; b=os7aA7TN0sTF35BBaxPg3b36rjx7EWfhzKE6gTIO/h2aKoWEGXRMwVOxdfJZ7QeRe4 ZjX+6OoEfFxIPgV3SXiEVJ04jDpoj/P0yfqTX9jzgIPxbHQEHHf9Jjt8xfsw0CSaIMds hYK2XElbhLsha/iMZVdfA+roIUg2dD/Fr3zC2JL6ogx5pnLJcFU11SWqXcFUiVgseP4A LfNv9mNKcDWqmH6sDirtOrHs988yR5JPn8VSzRvDZSwZncOC9uMdQ/YRbuU7OevKPBkr pXupveWbk4BvVkByCnd370vZoCp8q03nc3mG3o7RgWXdERpRRtMn1mtQ0UDrOUPWfsUO +yuw== X-Received: by 10.180.189.205 with SMTP id gk13mr15816681wic.25.1364472924713; Thu, 28 Mar 2013 05:15:24 -0700 (PDT) Received: from localhost.localdomain (host86-145-180-52.range86-145.btcentralplus.com. [86.145.180.52]) by mx.google.com with ESMTPS id fv2sm15499849wib.6.2013.03.28.05.15.23 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 28 Mar 2013 05:15:23 -0700 (PDT) From: spdawson@gmail.com To: buildroot@busybox.net Date: Thu, 28 Mar 2013 12:15:19 +0000 Message-Id: <1364472920-11835-1-git-send-email-spdawson@gmail.com> X-Mailer: git-send-email 1.7.10.4 Subject: [Buildroot] [PATCH] rapidjson: new package 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 From: Simon Dawson Signed-off-by: Simon Dawson --- package/Config.in | 1 + package/rapidjson/Config.in | 6 ++++++ package/rapidjson/rapidjson.mk | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 package/rapidjson/Config.in create mode 100644 package/rapidjson/rapidjson.mk diff --git a/package/Config.in b/package/Config.in index 463d1b9..3bd7844 100644 --- a/package/Config.in +++ b/package/Config.in @@ -615,6 +615,7 @@ source "package/libxml2/Config.in" source "package/libxslt/Config.in" source "package/libyaml/Config.in" source "package/mxml/Config.in" +source "package/rapidjson/Config.in" source "package/xerces/Config.in" source "package/yajl/Config.in" endmenu diff --git a/package/rapidjson/Config.in b/package/rapidjson/Config.in new file mode 100644 index 0000000..d442797 --- /dev/null +++ b/package/rapidjson/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_RAPIDJSON + bool "rapidjson" + help + A fast JSON parser/generator for C++ with both SAX/DOM style API. + + https://code.google.com/p/rapidjson/ diff --git a/package/rapidjson/rapidjson.mk b/package/rapidjson/rapidjson.mk new file mode 100644 index 0000000..cc260e9 --- /dev/null +++ b/package/rapidjson/rapidjson.mk @@ -0,0 +1,34 @@ +############################################################# +# +# rapidjson +# +############################################################# + +RAPIDJSON_VERSION = 0.11 +RAPIDJSON_SOURCE = rapidjson-$(RAPIDJSON_VERSION).zip +RAPIDJSON_SITE = http://rapidjson.googlecode.com/files +RAPIDJSON_LICENSE = MIT +RAPIDJSON_LICENSE_FILES = license.txt +RAPIDJSON_INSTALL_TARGET = NO +RAPIDJSON_INSTALL_STAGING = YES + +define RAPIDJSON_EXTRACT_CMDS + unzip -d $(@D) $(DL_DIR)/$(RAPIDJSON_SOURCE) + mv $(@D)/rapidjson/* $(@D) + $(RM) -r $(@D)/rapidjson +endef + +define RAPIDJSON_INSTALL_STAGING_CMDS + $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson + $(INSTALL) -m 0755 -d $(STAGING_DIR)/usr/include/rapidjson/internal + $(INSTALL) -m 0644 $(@D)/include/rapidjson/*.h \ + $(STAGING_DIR)/usr/include/rapidjson + $(INSTALL) -m 0644 $(@D)/include/rapidjson/internal/*.h \ + $(STAGING_DIR)/usr/include/rapidjson/internal +endef + +define RAPIDJSON_UNINSTALL_STAGING_CMDS + $(RM) -r $(STAGING_DIR)/usr/include/rapidjson +endef + +$(eval $(generic-package))