From patchwork Thu Mar 17 11:29:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nitin Mendiratta X-Patchwork-Id: 599000 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 3qQmN85t3Kz9sRB for ; Thu, 17 Mar 2016 22:29:28 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 32D218BFC1; Thu, 17 Mar 2016 11:29:27 +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 mYxunopu3vsJ; Thu, 17 Mar 2016 11:29:25 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 919708BE37; Thu, 17 Mar 2016 11:29:25 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 9F8EC1C1034 for ; Thu, 17 Mar 2016 11:29:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 99A718BE37 for ; Thu, 17 Mar 2016 11:29:23 +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 qj6wozkNnQdd for ; Thu, 17 Mar 2016 11:29:22 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ch3vs01.rockwellcollins.com (ch3vs01.rockwellcollins.com [205.175.226.27]) by whitealder.osuosl.org (Postfix) with ESMTPS id 910058BD05 for ; Thu, 17 Mar 2016 11:29:22 +0000 (UTC) Received: from ofwch3n02.rockwellcollins.com (HELO crulimr02.rockwellcollins.com) ([205.175.226.14]) by ch3vs01.rockwellcollins.com with ESMTP; 17 Mar 2016 06:29:21 -0500 X-Received: from rclinux-VirtualBox.rockwellcollins.com (inp00923.rockwellcollins.com [131.199.137.72]) by crulimr02.rockwellcollins.com (Postfix) with ESMTP id 2D04D6048F; Thu, 17 Mar 2016 06:29:20 -0500 (CDT) From: Nitin Mendiratta To: buildroot@busybox.net Date: Thu, 17 Mar 2016 16:59:21 +0530 Message-Id: <1458214161-17159-1-git-send-email-nitin.mendiratta@rockwellcollins.com> X-Mailer: git-send-email 2.5.0 Subject: [Buildroot] [PATCH 1/1] raptor: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" From: Matt Weber Raptor is a free software / Open Source C library that provides a set of parsers and serializers that generate Resource Description Framework (RDF) triples by parsing syntaxes or serialize the triples into a syntax. http://librdf.org/raptor/ Patch added in the package: 0001-configure.ac-remove-conditional-lib-inclusion.patch Signed-off-by: Matt Weber --- Changes v1: - Added 0001-configure.ac-remove-conditional-lib-inclusion.patch. - Added optional dependencies libcurl,yajl and icu. Signed-off-by: Nitin Mendiratta --- package/Config.in | 1 + ...igure.ac-remove-conditional-lib-inclusion.patch | 20 +++++++++++++++ package/raptor/Config.in | 11 ++++++++ package/raptor/raptor.hash | 2 ++ package/raptor/raptor.mk | 30 ++++++++++++++++++++++ 5 files changed, 64 insertions(+) create mode 100644 package/raptor/0001-configure.ac-remove-conditional-lib-inclusion.patch create mode 100644 package/raptor/Config.in create mode 100644 package/raptor/raptor.hash create mode 100644 package/raptor/raptor.mk diff --git a/package/Config.in b/package/Config.in index c4d98c4..430cef8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1036,6 +1036,7 @@ menu "JSON/XML" source "package/mxml/Config.in" source "package/rapidjson/Config.in" source "package/rapidxml/Config.in" + source "package/raptor/Config.in" source "package/tinyxml/Config.in" source "package/tinyxml2/Config.in" source "package/xerces/Config.in" diff --git a/package/raptor/0001-configure.ac-remove-conditional-lib-inclusion.patch b/package/raptor/0001-configure.ac-remove-conditional-lib-inclusion.patch new file mode 100644 index 0000000..0fd0495 --- /dev/null +++ b/package/raptor/0001-configure.ac-remove-conditional-lib-inclusion.patch @@ -0,0 +1,20 @@ +Removed condition for header path inclusion from the configure file. +Upstream: None + +Signed-off-by: Nitin Mendiratta + +diff --git a/configure.ac b/configure.ac +index 10ff870..27b9957 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1145,9 +1145,7 @@ have_lininn=no + have_inn_parsedate=no + + oCPPFLAGS="$CPPFLAGS" +-if test -d /usr/include/inn; then +- CPPFLAGS="$CPPFLAGS -I/usr/include/inn" +-fi ++ + AC_CHECK_HEADER(libinn.h) + CPPFLAGS="$oCPPFLAGS" + diff --git a/package/raptor/Config.in b/package/raptor/Config.in new file mode 100644 index 0000000..65979a2 --- /dev/null +++ b/package/raptor/Config.in @@ -0,0 +1,11 @@ +config BR2_PACKAGE_RAPTOR + bool "raptor" + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_LIBXSLT + help + A C library that provides a set of parsers and + serializers that generate Resource Description + Framework (RDF) triples by parsing syntaxes or + serialize the triples into a syntax. + + http://librdf.org/raptor/ diff --git a/package/raptor/raptor.hash b/package/raptor/raptor.hash new file mode 100644 index 0000000..ee7a71b --- /dev/null +++ b/package/raptor/raptor.hash @@ -0,0 +1,2 @@ +# Locally calculated +sha256 ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed raptor2-2.0.15.tar.gz diff --git a/package/raptor/raptor.mk b/package/raptor/raptor.mk new file mode 100644 index 0000000..965ef0c --- /dev/null +++ b/package/raptor/raptor.mk @@ -0,0 +1,30 @@ +################################################################################ +# +# raptor +# +################################################################################ + +RAPTOR_VERSION = 2.0.15 +RAPTOR_SOURCE = raptor2-$(RAPTOR_VERSION).tar.gz +RAPTOR_SITE = http://download.librdf.org/source +RAPTOR_DEPENDENCIES = libxml2 libxslt +RAPTOR_LICENSE = GPLv2+ or LGPLv2.1+ or Apache-2.0+ +RAPTOR_LICENSE_FILES = LICENSE.txt + +RAPTOR_CONF_OPTS = --with-xml2-config=$(STAGING_DIR)/usr/bin/xml2-config \ + --with-xslt-config=$(STAGING_DIR)/usr/bin/xslt-config + +ifeq ($(BR2_PACKAGE_LIBCURL),y) +RAPTOR_DEPENDENCIES += libcurl +endif + +ifeq ($(BR2_PACKAGE_YAJL),y) +RAPTOR_DEPENDENCIES += yajl +RAPTOR_CONF_ENV += LIBS="-lm" +endif + +ifeq ($(BR2_PACKAGE_YAJL),y) +RAPTOR_DEPENDENCIES += icu +endif + +$(eval $(autotools-package))