mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
69 lines
1.7 KiB
Bash
69 lines
1.7 KiB
Bash
SUMMARY="A set of C++ classes that provide a common API for realtime MIDI input/output"
|
|
DESCRIPTION="RtMidi is a set of C++ classes (RtMidiIn, RtMidiOut and API-specific classes) that \
|
|
provides a common API (Application Programming Interface) for realtime MIDI input/output \
|
|
across operating systems. RtMidi significantly simplifies the process of interacting with computer \
|
|
MIDI hardware and software."
|
|
HOMEPAGE="https://www.music.mcgill.ca/~gary/rtmidi"
|
|
COPYRIGHT="2003-2019 Gary P. Scavone"
|
|
LICENSE="RtMidi"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/theSTK/rtmidi/archive/refs/tags/$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="c7923e4eee82b06c007435892cb2c3212d9007fa482c6b718943bda71c02c5a7"
|
|
SOURCE_DIR="rtmidi-$portVersion"
|
|
PATCHES="rtmidi-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="6.0.0"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
rtmidi$secondaryArchSuffix = $portVersion
|
|
lib:librtmidi$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
rtmidi${secondaryArchSuffix}_devel = $portVersion
|
|
devel:librtmidi$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
haiku$secondaryArchSuffix
|
|
rtmidi$secondaryArchSuffix == $portVersion
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DRTMIDI_BUILD_TESTING=0
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib librtmidi
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$libDir/cmake
|
|
}
|