2009-12-22 20:33:22 +00:00
|
|
|
# Template file for 'libsamplerate'
|
|
|
|
pkgname=libsamplerate
|
2013-03-24 10:55:12 +00:00
|
|
|
version=0.1.8
|
2013-03-24 10:57:57 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-02-05 08:29:14 +00:00
|
|
|
configure_args="CFLAGS=-fPIC"
|
2013-03-24 10:55:12 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libsndfile-devel fftw-devel"
|
2009-12-22 20:33:22 +00:00
|
|
|
short_desc="Sample Rate Converter for audio"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-03-24 10:55:12 +00:00
|
|
|
homepage="http://www.mega-nerd.com/SRC/index.html"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="http://www.mega-nerd.com/SRC/$pkgname-$version.tar.gz"
|
|
|
|
checksum=93b54bdf46d5e6d2354b7034395fe329c222a966790de34520702bb9642f1c06
|
2009-12-22 20:33:22 +00:00
|
|
|
long_desc="
|
|
|
|
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."
|
2013-04-13 08:15:49 +00:00
|
|
|
|
|
|
|
libsamplerate-devel_package() {
|
|
|
|
depends="libsndfile-devel ${sourcepkg}>=${version}"
|
|
|
|
short_desc="${short_desc} -- development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.a"
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
libsamplerate_package() {
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|