From patchwork Wed Jun 5 18:11:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Gall X-Patchwork-Id: 17574 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 96FA325DEA for ; Wed, 5 Jun 2013 18:11:56 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k13sf1785766wgh.11 for ; Wed, 05 Jun 2013 11:11:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=x3fKHd5LcLB6nrXJ+zD9+aXi/R+UsJdE+NAdweRRuyg=; b=DMGjDQptQE0N7N0J0o84SAXc5vKlEyWLf37EldgLR0cOD+sfMMb5xAk3+MTiMS5PLV wIPPyBOntau2w8dSEVtF02+1IWms/biKc4TvMkPdMLAgtR2bpk7IHC4KT5/A/5icSt5E xVOFNzp9MjXKAP4WlWzmM9eBMsfCkfmprTyqXJ+InMCZ2rWDCXHM3ZO6zivM3SRDcJKQ m6eN3xRTAvEvRAod+EBW/lEv1+20X3b7RdRrN9wLBw9V2eai8+LgtgXmvSi9eznzaOg0 EOVE3l55DVWsPbNGhB/f9CdO8UfB9sDrMP7pQaLWS3eve7fE61jf8uiJO4jBAEg8gTZO /NkQ== X-Received: by 10.180.76.115 with SMTP id j19mr1083264wiw.2.1370455915655; Wed, 05 Jun 2013 11:11:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.64.196 with SMTP id q4ls967040qes.72.gmail; Wed, 05 Jun 2013 11:11:55 -0700 (PDT) X-Received: by 10.52.170.148 with SMTP id am20mr17737947vdc.75.1370455915015; Wed, 05 Jun 2013 11:11:55 -0700 (PDT) Received: from mail-vb0-x233.google.com (mail-vb0-x233.google.com [2607:f8b0:400c:c02::233]) by mx.google.com with ESMTPS id y2si40023017vck.40.2013.06.05.11.11.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:11:54 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::233; Received: by mail-vb0-f51.google.com with SMTP id x17so1298011vbf.24 for ; Wed, 05 Jun 2013 11:11:54 -0700 (PDT) X-Received: by 10.58.144.231 with SMTP id sp7mr21166409veb.34.1370455914823; Wed, 05 Jun 2013 11:11:54 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp31650vcb; Wed, 5 Jun 2013 11:11:54 -0700 (PDT) X-Received: by 10.182.87.42 with SMTP id u10mr15900728obz.73.1370455913983; Wed, 05 Jun 2013 11:11:53 -0700 (PDT) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [2607:f8b0:4001:c03::229]) by mx.google.com with ESMTPS id mj8si12032450obc.175.2013.06.05.11.11.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:11:53 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:4001:c03::229 is neither permitted nor denied by best guess record for domain of tom.gall@linaro.org) client-ip=2607:f8b0:4001:c03::229; Received: by mail-ie0-f169.google.com with SMTP id 10so4641502ied.28 for ; Wed, 05 Jun 2013 11:11:53 -0700 (PDT) X-Received: by 10.42.31.69 with SMTP id y5mr15391438icc.44.1370455913458; Wed, 05 Jun 2013 11:11:53 -0700 (PDT) Received: from mars.mantorvilleexpress.com ([70.35.96.184]) by mx.google.com with ESMTPSA id gz1sm7076010igb.5.2013.06.05.11.11.51 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Jun 2013 11:11:52 -0700 (PDT) From: Tom Gall To: patches@linaro.org Cc: Tom Gall Subject: [PATCH 7/7] add a new recipe for jsoncpp v0.5.0. Recipe doesn't for the time being use scons at all since scons seem unable to cross build correctly. Date: Wed, 5 Jun 2013 13:11:30 -0500 Message-Id: <1370455890-18305-7-git-send-email-tom.gall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1370455890-18305-1-git-send-email-tom.gall@linaro.org> References: <1370455890-18305-1-git-send-email-tom.gall@linaro.org> X-Gm-Message-State: ALoCoQnsPtRHbgZ/+AhaG5Y6x/lfFNtm4PUkiYbTYiNe3EavWBDxBw6zgE1ZXsPh3Jc/Mb/eeZ6H X-Original-Sender: tom.gall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::233 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Tom Gall --- .../recipes-devtools/jsoncpp/jsoncpp_0.5.0.bb | 42 ++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meta-linaro/recipes-devtools/jsoncpp/jsoncpp_0.5.0.bb diff --git a/meta-linaro/recipes-devtools/jsoncpp/jsoncpp_0.5.0.bb b/meta-linaro/recipes-devtools/jsoncpp/jsoncpp_0.5.0.bb new file mode 100644 index 0000000..38ed7ec --- /dev/null +++ b/meta-linaro/recipes-devtools/jsoncpp/jsoncpp_0.5.0.bb @@ -0,0 +1,42 @@ +DESCRIPTION = "jsoncpp is an implementation of a JSON (http://json.org) reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate." +HOMEPAGE = "http://sourceforge.net/projects/jsoncpp/" + +LICENSE = "" +LIC_FILES_CHKSUM = "file://LICENSE;md5=f7c191d0ae6a652f63b2d2bc1ea8bdab" + +SRC_URI = "${SOURCEFORGE_MIRROR}/jsoncpp/jsoncpp-src-${PV}.tar.gz" +SECTION = "libs" + +PR = "r1" +S = "${WORKDIR}/jsoncpp-src-${PV}" + +SRC_URI[md5sum] = "24482b67c1cb17aac1ed1814288a3a8f" +SRC_URI[sha256sum] = "22b14ecd0de8cdad2b6b6839f6d0804d3b84e91f42861ebd843832a26a927433" + +EXTRA_OESCONS = "platform=linux-gcc" + +inherit scons + +scons_do_compile() { + + soname=libjsoncpp.so.${PV} + ${CXX} src/lib_json/*.cpp -Iinclude -shared -fPIC \ + -Wl,-soname,${soname} -o ${soname} ${CXXFLAGS} ${LDFLAGS} +} + +scons_do_install() { + soname=libjsoncpp.so.${PV} + install -d ${D}/usr/include/jsoncpp + install -d ${D}/usr/lib + install -m 0755 ${S}/include/json/autolink.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/config.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/features.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/forwards.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/json.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/reader.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/value.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/include/json/writer.h ${D}/usr/include/jasoncpp + install -m 0755 ${S}/${soname} ${D}/${libdir} + cd ${D}/${libdir} + ln -s ${soname} libjsoncpp.so +}