SUMMARY="An audio time-stretching and pitch-shifting library" DESCRIPTION="Rubber Band is a library and utility program that permits \ changing the tempo and pitch of an audio recording independently of one \ another." HOMEPAGE="http://www.breakfastquay.com/rubberband/" COPYRIGHT="2007-2012 Particular Programs Ltd" LICENSE="GNU GPL v2" REVISION="3" SOURCE_URI="http://code.breakfastquay.com/attachments/download/34/rubberband-$portVersion.tar.bz2" CHECKSUM_SHA256="ff0c63b0b5ce41f937a8a3bc560f27918c5fe0b90c6bc1cb70829b86ada82b75" PATCHES="rubberband-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" if [ "$targetArchitecture" != x86_gcc2 ]; then commandBinDir=$binDir else commandBinDir=$prefix/bin fi PROVIDES=" rubberband$secondaryArchSuffix = $portVersion cmd:rubberband lib:librubberband$secondaryArchSuffix = 2.1.0 compat >= 2 " REQUIRES=" haiku$secondaryArchSuffix lib:libfftw3$secondaryArchSuffix lib:libsamplerate$secondaryArchSuffix lib:libsndfile$secondaryArchSuffix lib:libvamp_sdk$secondaryArchSuffix " PROVIDES_devel=" rubberband${secondaryArchSuffix}_devel = $portVersion devel:librubberband$secondaryArchSuffix = 2.1.0 compat >= 2 " REQUIRES_devel=" rubberband$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libfftw3$secondaryArchSuffix devel:libsamplerate$secondaryArchSuffix devel:libsndfile$secondaryArchSuffix devel:libvamp_sdk$secondaryArchSuffix ladspa_sdk${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:automake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " PATCH() { sed -i \ -e "/^INSTALL_INCDIR/ s|\(@prefix@/\)include/|\1$relativeIncludeDir/|;" \ -e "/^INSTALL_LRDFDIR/ s|\(@prefix@/\)share/|\1$relativeDataDir/|;" \ -e "/^INSTALL_/ s|\(@prefix@/\)lib|\1$relativeLibDir|;" \ Makefile.in } BUILD() { autoreconf -fi runConfigure --omit-dirs binDir ./configure --bindir=$commandBinDir make $jobArgs } INSTALL() { make install prepareInstalledDevelLibs librubberband fixPkgconfig # devel package packageEntries devel \ $developDir } TEST() { bin/rubberband --version }