From 4495784ccb00db89e436c1f267bfa4e023c4263a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 23 Oct 2011 14:54:41 +0200 Subject: [PATCH] New package: rubberband-1.6.0. --- srcpkgs/librubberband | 1 + srcpkgs/rubberband-devel | 1 + srcpkgs/rubberband/depends | 2 ++ srcpkgs/rubberband/librubberband.template | 20 +++++++++++++ srcpkgs/rubberband/patches/gcc46.patch | 10 +++++++ srcpkgs/rubberband/patches/vectorops.patch | 13 ++++++++ srcpkgs/rubberband/rubberband-devel.template | 15 ++++++++++ srcpkgs/rubberband/template | 31 ++++++++++++++++++++ xbps-src/common/mapping_shlib_binpkg.txt | 2 ++ 9 files changed, 95 insertions(+) create mode 120000 srcpkgs/librubberband create mode 120000 srcpkgs/rubberband-devel create mode 100644 srcpkgs/rubberband/depends create mode 100644 srcpkgs/rubberband/librubberband.template create mode 100644 srcpkgs/rubberband/patches/gcc46.patch create mode 100644 srcpkgs/rubberband/patches/vectorops.patch create mode 100644 srcpkgs/rubberband/rubberband-devel.template create mode 100644 srcpkgs/rubberband/template diff --git a/srcpkgs/librubberband b/srcpkgs/librubberband new file mode 120000 index 00000000000..d869b12c05a --- /dev/null +++ b/srcpkgs/librubberband @@ -0,0 +1 @@ +rubberband \ No newline at end of file diff --git a/srcpkgs/rubberband-devel b/srcpkgs/rubberband-devel new file mode 120000 index 00000000000..d869b12c05a --- /dev/null +++ b/srcpkgs/rubberband-devel @@ -0,0 +1 @@ +rubberband \ No newline at end of file diff --git a/srcpkgs/rubberband/depends b/srcpkgs/rubberband/depends new file mode 100644 index 00000000000..89acd330c29 --- /dev/null +++ b/srcpkgs/rubberband/depends @@ -0,0 +1,2 @@ +abi_depends=">=1.6.0" +api_depends="${abi_depends}" diff --git a/srcpkgs/rubberband/librubberband.template b/srcpkgs/rubberband/librubberband.template new file mode 100644 index 00000000000..f4df6a5cdea --- /dev/null +++ b/srcpkgs/rubberband/librubberband.template @@ -0,0 +1,20 @@ +# Template file for 'librubberband'. +# +short_desc="${short_desc} - Runtime libraries" +long_desc="${long_desc} + + This package contains the rubberband runtime lib(s)." + +Add_dependency run libgcc +Add_dependency run glibc +Add_dependency run libstdc++ +Add_dependency run libsamplerate +Add_dependency run libfftw +Add_dependency run libvamp-plugin-sdk + +do_install() +{ + vmove "usr/lib/*.so*" usr/lib + vmove usr/lib/vamp usr/lib + vmove usr/lib/ladspa usr/lib +} diff --git a/srcpkgs/rubberband/patches/gcc46.patch b/srcpkgs/rubberband/patches/gcc46.patch new file mode 100644 index 00000000000..6d913d974d7 --- /dev/null +++ b/srcpkgs/rubberband/patches/gcc46.patch @@ -0,0 +1,10 @@ +--- rubberband/RubberBandStretcher.h ++++ rubberband/RubberBandStretcher.h +@@ -21,6 +21,7 @@ + + #include + #include ++#include + + /** + * @mainpage RubberBand diff --git a/srcpkgs/rubberband/patches/vectorops.patch b/srcpkgs/rubberband/patches/vectorops.patch new file mode 100644 index 00000000000..2f6da08cfe7 --- /dev/null +++ b/srcpkgs/rubberband/patches/vectorops.patch @@ -0,0 +1,13 @@ +--- src/system/VectorOps.h Mon Mar 21 21:51:33 2011 +0000 ++++ src/system/VectorOps.h Sun Oct 02 21:12:42 2011 +0100 +@@ -84,8 +84,8 @@ + } + + template +-inline void v_move(T *const R__ dst, +- const T *const R__ src, ++inline void v_move(T *const dst, ++ const T *const src, + const int count) + { + memmove(dst, src, count * sizeof(T)); diff --git a/srcpkgs/rubberband/rubberband-devel.template b/srcpkgs/rubberband/rubberband-devel.template new file mode 100644 index 00000000000..2a783dac321 --- /dev/null +++ b/srcpkgs/rubberband/rubberband-devel.template @@ -0,0 +1,15 @@ +# Template file for 'rubberband-devel'. +# +short_desc="${short_desc} - Development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run lib${sourcepkg} + +do_install() +{ + vmove usr/include usr + vmove "usr/lib/*.a" usr/lib + vmove usr/lib/pkgconfig usr/lib +} diff --git a/srcpkgs/rubberband/template b/srcpkgs/rubberband/template new file mode 100644 index 00000000000..284ec88b20d --- /dev/null +++ b/srcpkgs/rubberband/template @@ -0,0 +1,31 @@ +# Template file for 'rubberband' +pkgname=rubberband +version=1.6.0 +homepage="http://www.breakfastquay.com/rubberband/" +distfiles="http://code.breakfastquay.com/attachments/download/16/${pkgname}-${version}.tar.bz2" +build_style=gnu_configure +short_desc="Time-stretching and pitch-shifting audio library" +maintainer="davehome " +license="GPL-2" +checksum=5bd339e3a64c7ba428f99d8890cee1de5c7165d963d085edb2e7ad357a39c896 +long_desc=" + Rubber Band Library is a high quality software library for audio + time-stretching and pitch-shifting. It permits you to change the tempo + and pitch of an audio stream or recording dynamically and independently + of one another." + +subpackages="lib${pkgname} ${pkgname}-devel" + +Add_dependency run glibc +Add_dependency run libsndfile +Add_dependency run libsamplerate +Add_dependency run libfftw +Add_dependency run libstdc++ +Add_dependency run libgcc +Add_dependency run libvamp-plugin-sdk + +Add_dependency build pkg-config +Add_dependency build ladspa-sdk +Add_dependency build libsamplerate-devel +Add_dependency build vamp-plugin-sdk-devel +Add_dependency build fftw-devel diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 4f311392313..a0f76c7ec4e 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -909,3 +909,5 @@ libfftw3f_threads.so.3 libfftw fftw-devel libfftw3f.so.3 libfftw fftw-devel libfluidsynth.so.1 libfluidsynth fluidsynth-devel liblo.so.7 liblo liblo-devel +libvamp-sdk.so.2 libvamp-plugin-sdk vamp-plugin-sdk-devel +librubberband.so.2 librubberband rubberband-devel