diff --git a/srcpkgs/libsamplerate-devel b/srcpkgs/libsamplerate-devel new file mode 120000 index 00000000000..ac560465424 --- /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 00000000000..66fe7f1eda6 --- /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 00000000000..75ce3c672a8 --- /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 00000000000..3b604cd5e04 --- /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