Sord: new recipe (#7497)

* Sord: new recipe

* Fix cmd:sordi

Co-authored-by: begasus <begasus@gmail.com>
This commit is contained in:
extrowerk
2022-12-03 09:36:58 +01:00
committed by GitHub
parent edd9704786
commit 80181f1206

View File

@@ -0,0 +1,78 @@
SUMMARY="A lightweight C library"
DESCRIPTION="Sord is a lightweight C library for storing RDF data in memory."
HOMEPAGE="http://drobilla.net/software/sord/"
COPYRIGHT="2011-2022 David Robillard"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="http://download.drobilla.net/sord-$portVersion.tar.xz"
CHECKSUM_SHA256="220fd97d5fcb216e7b85db66f685bfdaad7dc58a50d1f96dfb2558dbc6c4731b"
ARCHITECTURES="?all !x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sord$secondaryArchSuffix = $portVersion
cmd:sordi
lib:libsord_0$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libserd_0$secondaryArchSuffix
"
PROVIDES_devel="
sord${secondaryArchSuffix}_devel = $portVersion
devel:libsord_0$secondaryArchSuffix = $portVersion compat >= 0
"
REQUIRES_devel="
sord$secondaryArchSuffix == $portVersion base
devel:libserd_0$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libserd_0$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:meson
cmd:ninja
cmd:pkg_config$secondaryArchSuffix
"
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 libsord-0
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
cd _build
ninja test
}