0
0
Fork 0
haikuports/dev-libs/rasqal/rasqal-0.9.33.recipe

98 lines
2.6 KiB
Bash

SUMMARY="RDF Query Library"
DESCRIPTION="Rasqal is a free software / Open Source C library that handles \
Resource Description Framework (RDF) query language syntaxes, query \
construction and execution of queries returning results as bindings, boolean, \
RDF graphs/triples or syntaxes. The supported query languages are SPARQL \
Query 1.0, SPARQL Query 1.1, SPARQL Update 1.1 (no executing) and the \
Experimental SPARQL extensions (LAQRS). Rasqal can write binding query \
results in the SPARQL XML, SPARQL JSON, CSV, TSV, HTML, ASCII tables, \
RDF/XML and Turtle / N3 and read them in SPARQL XML, CSV, TSV, RDF/XML \
and Turtle / N3."
HOMEPAGE="https://librdf.org/"
COPYRIGHT="2003-2014 Dave Beckett
2003-2005 University of Bristol"
LICENSE="GNU GPL v2
GNU LGPL v2.1"
REVISION="4"
SOURCE_URI="http://download.librdf.org/source/rasqal-$portVersion.tar.gz"
CHECKSUM_SHA256="6924c9ac6570bd241a9669f83b467c728a322470bf34f4b2da4f69492ccfd97c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
rasqal$secondaryArchSuffix = $portVersion
cmd:roqet$secondaryArchSuffix
lib:librasqal$secondaryArchSuffix = 3.0.0 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libgcrypt$secondaryArchSuffix
lib:libgmp$secondaryArchSuffix # needed by mpfr
lib:libgpg_error$secondaryArchSuffix
lib:libmpfr$secondaryArchSuffix
lib:libpcre$secondaryArchSuffix
lib:libraptor2$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
rasqal${secondaryArchSuffix}_devel = $portVersion
cmd:rasqal_config$secondaryArchSuffix
devel:librasqal$secondaryArchSuffix = 3.0.0 compat >= 3
"
REQUIRES_devel="
rasqal$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libgcrypt$secondaryArchSuffix
devel:libgmp$secondaryArchSuffix
devel:libgpg_error$secondaryArchSuffix
devel:libmpfr$secondaryArchSuffix
devel:libpcre$secondaryArchSuffix
devel:libraptor2$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:awk
cmd:bison
cmd:flex
cmd:gcc$secondaryArchSuffix
# cmd:gtkdoc_check # breaks secondary arch build
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure --with-html-dir=${developDocDir}
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/librasqal.la
prepareInstalledDevelLibs librasqal
fixPkgconfig strict
# devel package
packageEntries devel \
$binDir/rasqal-config \
$developDir \
$manDir/man3 $manDir/man1/rasqal-config.1
}
TEST()
{
make check
}