mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
Sratom: new recipe (#7499)
* serd: bump * cleanup * WIP * sratom: new recipe * small changes Co-authored-by: begasus <begasus@gmail.com>
This commit is contained in:
78
media-libs/sratom/sratom-0.6.14.recipe
Normal file
78
media-libs/sratom/sratom-0.6.14.recipe
Normal file
@@ -0,0 +1,78 @@
|
||||
SUMMARY="A library for serialising LV2 atoms to and from RDF"
|
||||
DESCRIPTION="Sratom is a library for serialising LV2 atoms to and from RDF,\
|
||||
particularly the Turtle syntax."
|
||||
HOMEPAGE="http://drobilla.net/software/sratom/"
|
||||
COPYRIGHT="2011-2022 David Robillard"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.drobilla.net/sratom-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="9982faf40db83aedd9b3850e499fecd6852b8b4ba6dede514013655cffaca1e6"
|
||||
|
||||
ARCHITECTURES="?all !x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
sratom$secondaryArchSuffix = $portVersion
|
||||
lib:libsratom_0$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
lv2$secondaryArchSuffix
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libserd_0$secondaryArchSuffix
|
||||
lib:libsord_0$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
sratom${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libsratom_0$secondaryArchSuffix = $portVersion compat >= 0
|
||||
"
|
||||
REQUIRES_devel="
|
||||
sratom$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
lv2$secondaryArchSuffix
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libserd_0$secondaryArchSuffix
|
||||
devel:libsord_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
|
||||
|
||||
ninja -C _build
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
ninja -C _build install
|
||||
|
||||
prepareInstalledDevelLib libsratom-0
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
ninja -C _build test
|
||||
}
|
||||
Reference in New Issue
Block a user