Files
haikuports/media-libs/raptor/raptor-2.0.15.recipe
2024-09-01 20:21:54 +02:00

93 lines
2.4 KiB
Bash

SUMMARY="RDF Syntax Library"
DESCRIPTION="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. The supported parsing syntaxes are RDF/XML, N-Quads, N-Triples, \
TRiG, Turtle, RDFa 1.0 and 1.1, RSS tag soup including all versions of \
RSS, Atom 1.0 and 0.3, GRDDL and microformats for HTML, XHTML and XML. \
The serializing syntaxes are RDF/XML (regular, and abbreviated), Atom \
1.0, GraphViz, JSON, N-Quads, N-Triples, RSS 1.0 and XMP."
HOMEPAGE="https://librdf.org/raptor/"
COPYRIGHT="2000-2012 Dave Beckett
2000-2005 University of Bristol"
LICENSE="GNU GPL v2
GNU LGPL v2.1"
REVISION="10"
SOURCE_URI="http://download.librdf.org/source/raptor2-$portVersion.tar.gz"
CHECKSUM_SHA256="ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed"
SOURCE_DIR="raptor2-$portVersion"
PATCHES="raptor-2.0.15-libxml2-2.11.patch?h=lib32-raptor"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
raptor$secondaryArchSuffix = $portVersion
cmd:rapper$secondaryArchSuffix
lib:libraptor2$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libcrypto$secondaryArchSuffix # deps for libcurl
lib:libcurl$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libssl$secondaryArchSuffix # deps for libcurl
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix # deps for libxml2
"
PROVIDES_devel="
raptor${secondaryArchSuffix}_devel = $portVersion
devel:libraptor2$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
raptor$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcurl$secondaryArchSuffix
devel:libglib_2.0$secondaryArchSuffix
# force openssl3 even if not needed for building
devel:libssl$secondaryArchSuffix >= 3
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:gtkdocize
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure --with-html-dir=${developDocDir} \
--disable-static
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libraptor2.la
prepareInstalledDevelLibs libraptor2
fixPkgconfig strict
# devel package
packageEntries devel \
$developDir
}
TEST()
{
make check
}