mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
84 lines
2.2 KiB
Bash
84 lines
2.2 KiB
Bash
SUMMARY="A library to label music and sounds"
|
|
DESCRIPTION="aubio is a library to label music and sounds. It listens to \
|
|
audio signals and attempts to detect events. For instance, when a drum is \
|
|
hit, at which frequency is a note, or at what tempo is a rhythmic melody.
|
|
|
|
Its features include segmenting a sound file before each of its attacks, \
|
|
performing pitch detection, tapping the beat and producing midi streams from \
|
|
live audio."
|
|
HOMEPAGE="http://aubio.org"
|
|
COPYRIGHT="2003-2013 Paul Brossier"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="http://aubio.org/pub/aubio-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="1cc58e0fed2b9468305b198ad06b889f228b797a082c2ede716dc30fcb4f8f1f"
|
|
SOURCE_DIR="aubio-$portVersion"
|
|
PATCHES="libaubio-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="?x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
libaubio$secondaryArchSuffix = $portVersion compat >= 0
|
|
lib:libaubio$secondaryArchSuffix = 4.2.2 compat >= 4
|
|
"
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:aubiomfcc = $portVersion compat >= 0
|
|
cmd:aubionotes = $portVersion compat >= 0
|
|
cmd:aubioonset = $portVersion compat >= 0
|
|
cmd:aubiopitch = $portVersion compat >= 0
|
|
cmd:aubioquiet = $portVersion compat >= 0
|
|
cmd:aubiotrack = $portVersion compat >= 0
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
# lib:libsamplerate$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libaubio${secondaryArchSuffix}_devel = $portVersion compat >= 0
|
|
devel:libaubio$secondaryArchSuffix = 4.2.2 compat >= 4
|
|
"
|
|
REQUIRES_devel="
|
|
libaubio$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
# devel:libsamplerate$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
echo $includeDir
|
|
runConfigure --omit-buildspec ./waf configure \
|
|
--with-target-platform=$effectiveTargetMachineTriple
|
|
./waf build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
./waf install
|
|
|
|
prepareInstalledDevelLibs libaubio
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
#remove bin commands when building for secondary arch
|
|
if [ -n "$secondaryArchSuffix" ];then
|
|
rm -rf $prefix/bin
|
|
fi
|
|
}
|