fluidlite: add recipe for version 1.0.0.

* static lib only.
This commit is contained in:
Jerome Duval
2016-08-03 20:22:30 +02:00
parent 54f1fa8771
commit 0453dadd76
2 changed files with 140 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
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="1"
gitRevision="b9573fd464ce3f872b2f5511b595bc67d4498466"
SOURCE_URI="$HOMEPAGE/archive/$gitRevision.tar.gz"
CHECKSUM_SHA256="e7501cee0f4b2312cf42b7a8eae671849416cb25c9dc7ca86ab9dce801225c7a"
SOURCE_DIR="FluidLite-$gitRevision"
PATCHES="fluidlite-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
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
}