Files
haikuports/media-libs/libaubio/libaubio-0.4.1.recipe
2014-05-19 23:28:19 +00:00

90 lines
2.3 KiB
Plaintext

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 <piem@aubio.org>
"
LICENSE="GNU GPL v3"
SRC_URI="http://aubio.org/pub/aubio-$portVersion.tar.bz2"
CHECKSUM_SHA256="25d7df0a9cd6366fda764a803424caddf5fb819fc75b42a7a03e1e6f8eb3c695"
REVISION="1"
ARCHITECTURES="?x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"
SOURCE_DIR="aubio-$portVersion"
PATCHES="libaubio-$portVersion.patchset"
PROVIDES="
libaubio$secondaryArchSuffix = $portVersion compat >= 0
lib:libaubio$secondaryArchSuffix = 4.1.1 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 >= $haikuVersion
# lib:libsamplerate$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
# 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
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libaubio${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libaubio$secondaryArchSuffix = 4.1.1 compat >= 4
"
REQUIRES_devel="
libaubio$secondaryArchSuffix == $portVersion base
"