0
0
Fork 0
haikuports/dev-libs/redland/redland-1.0.17.recipe

104 lines
2.8 KiB
Bash

SUMMARY="A RDF API Library"
DESCRIPTION="Redland librdf is a library that provides a high-level \
interface for the Resource Description Framework (RDF) allowing the RDF \
graph to be parsed from XML, stored, queried and manipulated. Redland librdf \
implements each of the RDF concepts in its own class via an object based API, \
reflected into the language APIs, currently C#, Java, Perl, PHP, Python, \
Ruby and Tcl. Several classes providing functionality such as for parsers, \
storage are built as modules that can be loaded at compile or run-time as \
required."
HOMEPAGE="https://librdf.org/"
COPYRIGHT="2000-2013 Dave Beckett
2000-2005 University of Bristol"
LICENSE="GNU LGPL v2.1"
REVISION="7"
SOURCE_URI="http://download.librdf.org/source/redland-$portVersion.tar.gz"
CHECKSUM_SHA256="de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
redland$secondaryArchSuffix = $portVersion
cmd:rdfproc$secondaryArchSuffix
cmd:redland_db_upgrade$secondaryArchSuffix
lib:librdf$secondaryArchSuffix = 0.0.0 compat >= 0
lib:librdf_storage_sqlite$secondaryArchSuffix
lib:librdf_storage_virtuoso$secondaryArchSuffix
"
REQUIRES="
haiku${secondaryArchSuffix}
lib:libiconv$secondaryArchSuffix
lib:libiodbcinst$secondaryArchSuffix
lib:libltdl$secondaryArchSuffix
lib:libodbc$secondaryArchSuffix
lib:libraptor2$secondaryArchSuffix
lib:librasqal$secondaryArchSuffix
lib:libsqlite3$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
"
PROVIDES_devel="
redland${secondaryArchSuffix}_devel = $portVersion
cmd:redland_config$secondaryArchSuffix
devel:librdf$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES_devel="
redland$secondaryArchSuffix == $portVersion base
devel:librasqal$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglib_2.0$secondaryArchSuffix # for gtkdoc-scangobj (with pkg-config glib-2.0.pc)
devel:libiconv$secondaryArchSuffix
devel:libltdl$secondaryArchSuffix
devel:libodbc$secondaryArchSuffix
devel:libraptor2$secondaryArchSuffix
devel:librasqal$secondaryArchSuffix
devel:libsqlite3$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:automake
cmd:awk
cmd:bison$secondaryArchSuffix
cmd:gcc$secondaryArchSuffix
# cmd:gtkdoc_check # breaks secondary arch build
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
mkdir -p $libDir/redland
make install
# remove libtool library files
rm $libDir/*.la
rm $libDir/redland/*.la
# prepare develop/lib
prepareInstalledDevelLibs librdf
fixPkgconfig
# devel package
packageEntries devel \
$developDir \
$binDir/redland-config
}
TEST()
{
make check
}