mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
89 lines
2.3 KiB
Bash
89 lines
2.3 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="1"
|
|
SOURCE_URI="http://aubio.org/pub/aubio-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="bdc73be1f007218d3ea6d2a503b38a217815a0e2ccc4ed441f6e850ed5d47cfb"
|
|
SOURCE_DIR="aubio-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.3.7"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libaubio$secondaryArchSuffix = $portVersion
|
|
lib:libaubio$secondaryArchSuffix = $libVersionCompat
|
|
cmd:aubiomfcc$secondaryArchSuffix
|
|
cmd:aubionotes$secondaryArchSuffix
|
|
cmd:aubioonset$secondaryArchSuffix
|
|
cmd:aubiopitch$secondaryArchSuffix
|
|
cmd:aubioquiet$secondaryArchSuffix
|
|
cmd:aubiotrack$secondaryArchSuffix
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
ffmpeg$secondaryArchSuffix
|
|
lib:libsndfile$secondaryArchSuffix
|
|
lib:libsamplerate$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libaubio${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libaubio$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libaubio$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
ffmpeg${secondaryArchSuffix}_devel
|
|
devel:libsndfile$secondaryArchSuffix
|
|
devel:libsamplerate$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:python
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage libaubio$secondaryArchSuffix \
|
|
"$libDir"/libaubio.so.$libVersion \
|
|
"$binDir"/aubiomfcc \
|
|
"$binDir"/aubionotes \
|
|
"$binDir"/aubioonset \
|
|
"$binDir"/aubiopitch \
|
|
"$binDir"/aubioquiet \
|
|
"$binDir"/aubiotrack
|
|
|
|
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
|
|
}
|