1SUMMARY="A library to process MIDI patch files" 2DESCRIPTION="libInstPatch stands for lib-Instrument-Patch and is a library for \ 3processing digital sample based MIDI instrument \"patch\" files. The types of \ 4files libInstPatch supports are used for creating instrument sounds for \ 5wavetable synthesis. libInstPatch provides an object framework (based on \ 6GObject) to load patch files into, which can then be edited, converted, \ 7compressed and saved." 8HOMEPAGE="https://github.com/swami/libinstpatch" 9COPYRIGHT="1999-2019 Element Green and others" 10LICENSE="GNU LGPL v2.1" 11REVISION="4" 12SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz" 13SOURCE_FILENAME="libinstpatch-v$portVersion.tar.gz" 14CHECKSUM_SHA256="8fcc4e60745539d17f10de1ed0e3d02329509e814c0c672d686d6e972113142b" 15 16ARCHITECTURES="all" 17SECONDARY_ARCHITECTURES="x86" 18 19libVersion="2.0.2" 20libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 21 22PROVIDES=" 23 libinstpatch$secondaryArchSuffix = $portVersion 24 lib:libinstpatch_1.0$secondaryArchSuffix = $libVersionCompat 25 " 26REQUIRES=" 27 haiku$secondaryArchSuffix 28 lib:libglib_2.0$secondaryArchSuffix 29 lib:libgobject_2.0$secondaryArchSuffix 30 lib:libgthread_2.0$secondaryArchSuffix 31 lib:libintl$secondaryArchSuffix 32 lib:libsndfile$secondaryArchSuffix 33 " 34 35PROVIDES_devel=" 36 libinstpatch${secondaryArchSuffix}_devel = $portVersion 37 devel:libinstpatch_1.0$secondaryArchSuffix = $libVersionCompat 38 " 39REQUIRES_devel=" 40 libinstpatch$secondaryArchSuffix == $portVersion base 41 devel:libglib_2.0$secondaryArchSuffix 42 devel:libsndfile$secondaryArchSuffix 43 " 44 45BUILD_REQUIRES=" 46 haiku${secondaryArchSuffix}_devel 47 devel:libglib_2.0$secondaryArchSuffix 48 devel:libsndfile$secondaryArchSuffix 49 " 50BUILD_PREREQUIRES=" 51 cmd:cmake 52 cmd:gcc$secondaryArchSuffix 53 cmd:ld$secondaryArchSuffix 54 cmd:make 55 cmd:pkg_config$secondaryArchSuffix 56 " 57 58BUILD() 59{ 60 cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ 61 -DCMAKE_INSTALL_PREFIX:PATH=$prefix \ 62 -DLIB_INSTALL_DIR=$libDir \ 63 -DINCLUDE_INSTALL_DIR=$includeDir 64 make -C build $jobArgs 65} 66 67INSTALL() 68{ 69 make -C build install 70 71 prepareInstalledDevelLib libinstpatch-1.0 72 fixPkgconfig 73 74 # devel package 75 packageEntries devel \ 76 $developDir 77} 78