mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
portsmf: new recipe (#7569)
This commit is contained in:
59
media-libs/portsmf/portsmf-239.recipe
Normal file
59
media-libs/portsmf/portsmf-239.recipe
Normal file
@@ -0,0 +1,59 @@
|
||||
SUMMARY="Portable Standard MIDI File library"
|
||||
DESCRIPTION="Portsmf is \"Port Standard MIDI File\", a cross-platform, \
|
||||
C++ library for reading and writing Standard MIDI Files."
|
||||
HOMEPAGE="https://codeberg.org/tenacityteam/portsmf"
|
||||
COPYRIGHT="2022 Tenacity Team"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://codeberg.org/tenacityteam/portsmf/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="fe7aee61453e398aa360608fe34bc26a6af612bce987cdacbc0fc40b18e01d58"
|
||||
SOURCE_DIR="portsmf"
|
||||
|
||||
libVersion="1.0.236"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
portsmf$secondaryArchSuffix = $portVersion
|
||||
lib:libportsmf$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
portsmf${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libportsmf$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
portsmf == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:ninja
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -S . -B build -G Ninja \
|
||||
$cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
cmake --build build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cmake --install build
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
Reference in New Issue
Block a user