mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 08:40:06 +02:00
75 lines
1.4 KiB
Bash
75 lines
1.4 KiB
Bash
SUMMARY="A lightweight C library"
|
|
DESCRIPTION="Serd is a lightweight C library for RDF syntax which \
|
|
supports reading and writing Turtle and NTriples."
|
|
HOMEPAGE="http://drobilla.net/software/serd/"
|
|
COPYRIGHT="2011-2022 David Robillard"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.drobilla.net/serd-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="f50f486da519cdd8d03b20c9e42414e459133f5a244411d8e63caef8d9ac9146"
|
|
|
|
ARCHITECTURES="?all !x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
serd$secondaryArchSuffix = $portVersion
|
|
cmd:serdi
|
|
lib:libserd_0$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
serd${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libserd_0$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
serd$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:meson
|
|
cmd:ninja
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
meson \
|
|
--buildtype=release \
|
|
--prefix=$prefix \
|
|
--libdir=$libDir \
|
|
--libexecdir=$binDir \
|
|
--datadir=$dataDir \
|
|
--localedir=$dataDir/locale \
|
|
--includedir=$includeDir \
|
|
--sysconfdir=$settingsDir \
|
|
--mandir=$manDir \
|
|
_build
|
|
|
|
cd _build
|
|
ninja
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
cd _build
|
|
ninja install
|
|
|
|
prepareInstalledDevelLib libserd-0
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd _build
|
|
ninja test
|
|
}
|