mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
79 lines
1.5 KiB
Bash
79 lines
1.5 KiB
Bash
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
|
|
}
|