Files
haikuports/media-libs/libsamplerate/libsamplerate-0.1.9.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

75 lines
1.9 KiB
Bash

SUMMARY="Samplerate converter for audio"
DESCRIPTION="Secret Rabbit Code (aka libsamplerate) is a samplerate \
converter for audio. One example of where such a thing would be useful is \
converting audio from the CD sample rate of 44.1kHz to the 48kHz sample rate \
used by DAT players.
SRC is capable of arbitrary and time varying conversions, from downsampling \
by a factor of 256 to upsampling by the same factor. Arbitrary in this case \
means that the ratio of input and output sample rates can be an irrational \
number. The conversion ratio can also vary with time for speeding up and \
slowing down effects."
HOMEPAGE="http://www.mega-nerd.com/SRC/"
COPYRIGHT="2002-2011 Erik de Castro Lopo"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://www.mega-nerd.com/SRC/libsamplerate-$portVersion.tar.gz"
CHECKSUM_SHA256="0a7eb168e2f21353fb6d84da152e4512126f7dc48ccb0be80578c565413444c1"
PATCHES="libsamplerate-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libsamplerate$secondaryArchSuffix = $portVersion compat >= 0
cmd:sndfile_resample$secondaryArchSuffix
lib:libsamplerate$secondaryArchSuffix = 0.1.8 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libsamplerate${secondaryArchSuffix}_devel = $portVersion compat >= 0
devel:libsamplerate$secondaryArchSuffix = 0.1.8 compat >= 0
"
REQUIRES_devel="
libsamplerate$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${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
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libsamplerate.la
prepareInstalledDevelLibs libsamplerate
fixPkgconfig
# devel package
packageEntries devel \
$docDir \
$developDir
}