mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
rubberband: update to 3.2.1, adopt.
This commit is contained in:
parent
a87fd089b8
commit
40bcf5d6a5
3 changed files with 69 additions and 5 deletions
|
@ -0,0 +1,26 @@
|
|||
From df596f472e3271ad64ab6c2968920e5e95c17080 Mon Sep 17 00:00:00 2001
|
||||
From: Chris Cannam <cannam@all-day-breakfast.com>
|
||||
Date: Mon, 26 Jun 2023 11:38:20 +0100
|
||||
Subject: [PATCH] Minor threshold tweak
|
||||
|
||||
---
|
||||
Remove on next release.
|
||||
|
||||
Source: https://github.com/breakfastquay/rubberband/commit/df596f472e3271ad64ab6c2968920e5e95c17080
|
||||
|
||||
src/test/TestStretcher.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/test/TestStretcher.cpp b/src/test/TestStretcher.cpp
|
||||
index 8213dbe4..cbf3ae3c 100644
|
||||
--- a/src/test/TestStretcher.cpp
|
||||
+++ b/src/test/TestStretcher.cpp
|
||||
@@ -999,7 +999,7 @@ static void impulses_realtime(RubberBandStretcher::Options options,
|
||||
// These limits aren't alarming, but it may be worth tightening
|
||||
// them and and taking a look at the waveforms
|
||||
|
||||
- BOOST_TEST(peak0 < int(ceil(200 * timeRatio)));
|
||||
+ BOOST_TEST(peak0 < int(ceil(210 * timeRatio)));
|
||||
BOOST_TEST(peak0 > int(ceil(50 * timeRatio)));
|
||||
|
||||
BOOST_TEST(peak1 < int(ceil(5070 * timeRatio)));
|
|
@ -0,0 +1,19 @@
|
|||
diff --git a/meson.build b/meson.build
|
||||
index 535b3db..eb00f50 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -432,11 +432,11 @@ ladspa_symbol_args = []
|
||||
lv2_symbol_args = []
|
||||
vamp_symbol_args = []
|
||||
|
||||
-if get_option('buildtype').startswith('release')
|
||||
+if get_option('debug')
|
||||
+ config_summary += { 'Build type': 'Debug' }
|
||||
+else
|
||||
config_summary += { 'Build type': 'Release' }
|
||||
feature_defines += ['-DNO_THREAD_CHECKS', '-DNO_TIMING', '-DNDEBUG']
|
||||
-else
|
||||
- config_summary += { 'Build type': 'Debug' }
|
||||
endif
|
||||
|
||||
if system == 'darwin'
|
|
@ -1,22 +1,40 @@
|
|||
# Template file for 'rubberband'
|
||||
pkgname=rubberband
|
||||
version=3.1.2
|
||||
version=3.2.1
|
||||
revision=1
|
||||
build_style=meson
|
||||
configure_args="-Dfft=fftw"
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="ladspa-sdk libsamplerate-devel vamp-plugin-sdk-devel fftw-devel lv2"
|
||||
makedepends="ladspa-sdk vamp-plugin-sdk-devel fftw-devel lv2"
|
||||
depends="libvamp-plugin-sdk"
|
||||
checkdepends="boost-devel"
|
||||
short_desc="Time-stretching and pitch-shifting audio library"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
maintainer="Mohammed Anas <triallax@tutanota.com>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="https://breakfastquay.com/rubberband/"
|
||||
changelog="https://breakfastquay.com/news.html"
|
||||
distfiles="https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2"
|
||||
checksum=dda7e257b14c59a1f59c5ccc4d6f19412039f77834275955aa0ff511779b98d2
|
||||
checksum=82edacd0c50bfe56a6a85db1fcd4ca3346940ffe02843fc50f8b92f99a97d172
|
||||
|
||||
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||
makedepends+=" libatomic-devel"
|
||||
LDFLAGS+=" -latomic"
|
||||
LDFLAGS="-latomic"
|
||||
fi
|
||||
|
||||
# On 32-bit targets, the built-in resampler is much slower than libsamplerate.
|
||||
# On 64-bit targets the performance difference is not as pronounced, and the
|
||||
# built-in resampler can, in some situations, sound slightly better, so keep
|
||||
# using it on them.
|
||||
# See https://github.com/breakfastquay/rubberband/issues/87#issuecomment-1607722278.
|
||||
if [ "$XBPS_TARGET_WORDSIZE" = 32 ]; then
|
||||
makedepends+=" libsamplerate-devel"
|
||||
configure_args+=" -Dresampler=libsamplerate"
|
||||
fi
|
||||
|
||||
if [ "$XBPS_CHECK_PKGS" ]; then
|
||||
configure_args+=" -Dtests=enabled"
|
||||
else
|
||||
configure_args+=" -Dtests=disabled"
|
||||
fi
|
||||
|
||||
librubberband_package() {
|
||||
|
@ -27,6 +45,7 @@ librubberband_package() {
|
|||
vmove usr/lib/ladspa
|
||||
}
|
||||
}
|
||||
|
||||
rubberband-devel_package() {
|
||||
depends="librubberband>=${version}_${revision}"
|
||||
short_desc+=" - Development files"
|
||||
|
|
Loading…
Add table
Reference in a new issue