From 8f263f629a26886fb46d43a41f89b69c42976b12 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 22 Dec 2009 21:33:22 +0100 Subject: [PATCH] Added libsamplerate-0.1.7 build template. --HG-- extra : convert_revision : b8c1fc40e2f8f40f54786140b0c3081bbca3e3ff --- srcpkgs/libsamplerate-devel | 1 + srcpkgs/libsamplerate/depends | 2 ++ .../libsamplerate-devel.template | 19 ++++++++++++++++ srcpkgs/libsamplerate/template | 22 +++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 120000 srcpkgs/libsamplerate-devel create mode 100644 srcpkgs/libsamplerate/depends create mode 100644 srcpkgs/libsamplerate/libsamplerate-devel.template create mode 100644 srcpkgs/libsamplerate/template diff --git a/srcpkgs/libsamplerate-devel b/srcpkgs/libsamplerate-devel new file mode 120000 index 0000000000..ac56046542 --- /dev/null +++ b/srcpkgs/libsamplerate-devel @@ -0,0 +1 @@ +libsamplerate \ No newline at end of file diff --git a/srcpkgs/libsamplerate/depends b/srcpkgs/libsamplerate/depends new file mode 100644 index 0000000000..66fe7f1eda --- /dev/null +++ b/srcpkgs/libsamplerate/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.1.7" +api_depends="${abi_depends}" diff --git a/srcpkgs/libsamplerate/libsamplerate-devel.template b/srcpkgs/libsamplerate/libsamplerate-devel.template new file mode 100644 index 0000000000..75ce3c672a --- /dev/null +++ b/srcpkgs/libsamplerate/libsamplerate-devel.template @@ -0,0 +1,19 @@ +# Template file for 'libsamplerate-devel'. +# +short_desc="${short_desc} (development files)" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libsoundfile-devel +Add_dependency run libsamplerate + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/libsamplerate/template b/srcpkgs/libsamplerate/template new file mode 100644 index 0000000000..3b604cd5e0 --- /dev/null +++ b/srcpkgs/libsamplerate/template @@ -0,0 +1,22 @@ +# Template file for 'libsamplerate' +pkgname=libsamplerate +version=0.1.7 +distfiles="http://www.mega-nerd.com/SRC/$pkgname-$version.tar.gz" +build_style=gnu_configure +short_desc="Sample Rate Converter for audio" +maintainer="Juan RP " +checksum=e0a646224a0323ac63f56ef009b2d7fee11452a7b8af139b19ae71d2890dbc9c +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." + +subpackages="$pkgname-devel" +Add_dependency run glibc +Add_dependency run libsndfile +Add_dependency build libsndfile-devel