0
0
Fork 0
haikuports/media-sound/fluidlite/fluidlite-1.0.0.recipe

74 lines
2.0 KiB
Bash

SUMMARY="A very light software real-time synthesizer"
DESCRIPTION="FluidLite is a very light version of FluidSynth \
designed to be hardware, platform and external dependency independant.
It only uses standard C libraries.
It also adds support for SF3 files (SF2 files compressed with ogg vorbis) \
and an additional setting to remove the constraint of channel 9 (drums): \
fluid_settings_setstr(settings, "synth.drums-channel.active", "no"); \
you can still select bank 128 on any channel to use drum kits.
FluidLite keeps very minimal functionnalities (settings and synth), \
therefore MIDI file reading, realtime MIDI events and audio output must be \
implemented externally."
HOMEPAGE="https://github.com/divideconcept/FluidLite"
COPYRIGHT="2007-2012 Josh Green, Pedro Lopez-Cabanillas, David Henningsson"
LICENSE="GNU LGPL v2.1"
REVISION="3"
srcGitRev="ba3a29d5976c0797b204ef5729430c295aab19d8"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="80ea81bb3ce7e20c0aeaf95fc4660b9f0f40d004acdb7eee1b6a9a2c7aeb1075"
SOURCE_DIR="FluidLite-$srcGitRev"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
fluidlite${secondaryArchSuffix} = $portVersion
"
REQUIRES="
haiku${secondaryArchSuffix}
"
PROVIDES_devel="
fluidlite${secondaryArchSuffix}_devel = $portVersion
devel:libfluidlite$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES_devel="
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libogg$secondaryArchSuffix
devel:libvorbis$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix .
make $jobArgs
}
INSTALL()
{
make install
mv $prefix/lib $prefix/lib2
mkdir -p $(dirname $includeDir) $(dirname $libDir)
mv $prefix/include $includeDir
mv $prefix/lib2 $libDir
prepareInstalledDevelLib libfluidlite
# devel package
packageEntries devel \
$developDir
}