Re: [update] audio/rubberband to 3.2.1

2023-05-27 Thread Klemens Nanni
On Sun, May 21, 2023 at 09:24:09PM +0200, Raphael Graf wrote:
> There are many changes since 1.8.2, here is the full Changelog:
> https://github.com/breakfastquay/rubberband/blob/default/CHANGELOG
> 
> The tests are now enabled and pass (on amd64).
> 
> There is a command-line utility which can be used for testing, for example:
> $ rubberband --time 0.5 input.wav output.wav
> 
> rubberband is currently used by audio/hydrogen. It would be nice to enable it 
> in
> mpv and ffmpeg in the future.
> 
> 
> Index: Makefile
> ===
> RCS file: /cvs/ports/audio/rubberband/Makefile,v
> retrieving revision 1.3
> diff -u -p -u -p -r1.3 Makefile
> --- Makefile  11 Mar 2022 18:20:30 -  1.3
> +++ Makefile  21 May 2023 19:18:03 -
> @@ -1,9 +1,9 @@
>  COMMENT =audio time-stretching and pitch-shifting library
>  
> -DISTNAME =   rubberband-1.8.2
> +DISTNAME =   rubberband-3.2.1
>  EXTRACT_SUFX =   .tar.bz2
>  
> -SHARED_LIBS =rubberband 0.0
> +SHARED_LIBS =rubberband 0.1

Committed with a major bump instead as /usr/src/lib/check_sym reports
removed dynamic exports and changed struct sizes.

Rest looks great, tests pass, works, thanks.

>  
>  CATEGORIES = audio
>  HOMEPAGE =   https://breakfastquay.com/rubberband
> @@ -14,23 +14,26 @@ PERMIT_PACKAGE =  Yes
>  WANTLIB =${COMPILER_LIBCXX}
>  WANTLIB +=   c fftw3 m pthread samplerate sndfile vamp-sdk
>  
> -COMPILER =   base-clang ports-gcc base-gcc
> +# C++11
> +COMPILER =   base-clang ports-gcc
>  
>  MASTER_SITES =   https://breakfastquay.com/files/releases/
>  
> +MODULES =   devel/meson
> +
>  LIB_DEPENDS =audio/libsamplerate \
>   audio/libsndfile \
>   audio/vamp-plugin-sdk \
>   math/fftw3
>  
> -BUILD_DEPENDS =  audio/ladspa
> -
> -USE_GMAKE =  Yes
> -CONFIGURE_STYLE =gnu
> -CONFIGURE_ENV =  CPPFLAGS="-I${LOCALBASE}/include"
> -MAKE_FLAGS = DYNAMIC_FULL_VERSION=${LIBrubberband_VERSION} \
> - DYNAMIC_ABI_VERSION=${LIBrubberband_VERSION}
> -
> -NO_TEST =Yes
> +BUILD_DEPENDS =  audio/ladspa \
> + audio/lv2 \
> + devel/boost
> +
> +CONFIGURE_ENV =  CPPFLAGS="-I${LOCALBASE}/include" \
> + LDFLAGS="-L${LOCALBASE}/lib -lboost_unit_test_framework"
> +CONFIGURE_ARGS = -Djni=disabled \
> + -Dfft=fftw \
> + -Dresampler=libsamplerate
>  
>  .include 
> Index: distinfo
> ===
> RCS file: /cvs/ports/audio/rubberband/distinfo,v
> retrieving revision 1.1.1.1
> diff -u -p -u -p -r1.1.1.1 distinfo
> --- distinfo  6 Jun 2019 12:04:20 -   1.1.1.1
> +++ distinfo  21 May 2023 19:18:03 -
> @@ -1,2 +1,2 @@
> -SHA256 (rubberband-1.8.2.tar.bz2) = 
> hr7Qa3EVtkRB0yrlNjT8wFOaULm2SO+HRD+TZ4L2w8o=
> -SIZE (rubberband-1.8.2.tar.bz2) = 182232
> +SHA256 (rubberband-3.2.1.tar.bz2) = 
> gu2s0MUL/lamqF2x/NTKM0aUD/4ChD/FD4uS+ZqX0XI=
> +SIZE (rubberband-3.2.1.tar.bz2) = 221756
> Index: patches/patch-Makefile_in
> ===
> RCS file: patches/patch-Makefile_in
> diff -N patches/patch-Makefile_in
> --- patches/patch-Makefile_in 11 Mar 2022 18:20:30 -  1.2
> +++ /dev/null 1 Jan 1970 00:00:00 -
> @@ -1,13 +0,0 @@
> -Index: Makefile.in
>  Makefile.in.orig
> -+++ Makefile.in
> -@@ -181,9 +181,6 @@ install: all
> - rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
> - rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
> - cp $(DYNAMIC_TARGET) 
> $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION)
> --ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) 
> $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_ABI_VERSION)
> --ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) 
> $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
> --cp -f $(JNI_TARGET) 
> $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
> - cp $(VAMP_TARGET) $(DESTDIR)$(INSTALL_VAMPDIR)
> - cp vamp/vamp-rubberband.cat $(DESTDIR)$(INSTALL_VAMPDIR)
> - cp $(LADSPA_TARGET) $(DESTDIR)$(INSTALL_LADSPADIR)
> Index: patches/patch-src_StretcherImpl_cpp
> ===
> RCS file: patches/patch-src_StretcherImpl_cpp
> diff -N patches/patch-src_StretcherImpl_cpp
> --- patches/patch-src_StretcherImpl_cpp   11 Mar 2022 18:20:30 -  
> 1.2
> +++ /dev/null 1 Jan 1970 00:00:00 -
> @@ -1,11 +0,0 @@
>  src/StretcherImpl.cpp.orig   Sat Mar 26 19:39:02 2016
> -+++ src/StretcherImpl.cppSat Mar 26 19:39:23 2016
> -@@ 

Re: [update] audio/rubberband to 3.2.1

2023-05-27 Thread Laurence Tratt
On Sun, May 21, 2023 at 09:24:09PM +0200, Raphael Graf wrote:

> There are many changes since 1.8.2, here is the full Changelog:
> https://github.com/breakfastquay/rubberband/blob/default/CHANGELOG
>
> The tests are now enabled and pass (on amd64).
>
> There is a command-line utility which can be used for testing, for example:
> $ rubberband --time 0.5 input.wav output.wav

I've now been using this port for a week, and it's a significant improvement
over 1.8.2. It would be great if someone could commit this!


Laurie



Re: [update] audio/rubberband to 3.2.1

2023-05-22 Thread Laurence Tratt
On Sun, May 21, 2023 at 09:24:09PM +0200, Raphael Graf wrote:

Hello Raphael,

> There are many changes since 1.8.2, here is the full Changelog:
> https://github.com/breakfastquay/rubberband/blob/default/CHANGELOG
> 
> The tests are now enabled and pass (on amd64).
> 
> There is a command-line utility which can be used for testing, for example:
> $ rubberband --time 0.5 input.wav output.wav
> 
> rubberband is currently used by audio/hydrogen. It would be nice to enable it 
> in
> mpv and ffmpeg in the future.

I use rubberband via its command-line utility fairly regularly. Your
update builds and installs properly, and passes all the tests. The new
version of rubberband (with the new `-3`) option produces noticeably
better quality output (though it is definitely slower too, but that's a
good trade-off for me!).


Laurie



[update] audio/rubberband to 3.2.1

2023-05-21 Thread Raphael Graf
There are many changes since 1.8.2, here is the full Changelog:
https://github.com/breakfastquay/rubberband/blob/default/CHANGELOG

The tests are now enabled and pass (on amd64).

There is a command-line utility which can be used for testing, for example:
$ rubberband --time 0.5 input.wav output.wav

rubberband is currently used by audio/hydrogen. It would be nice to enable it in
mpv and ffmpeg in the future.


Index: Makefile
===
RCS file: /cvs/ports/audio/rubberband/Makefile,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 Makefile
--- Makefile11 Mar 2022 18:20:30 -  1.3
+++ Makefile21 May 2023 19:18:03 -
@@ -1,9 +1,9 @@
 COMMENT =  audio time-stretching and pitch-shifting library
 
-DISTNAME = rubberband-1.8.2
+DISTNAME = rubberband-3.2.1
 EXTRACT_SUFX = .tar.bz2
 
-SHARED_LIBS =  rubberband 0.0
+SHARED_LIBS =  rubberband 0.1
 
 CATEGORIES =   audio
 HOMEPAGE = https://breakfastquay.com/rubberband
@@ -14,23 +14,26 @@ PERMIT_PACKAGE =Yes
 WANTLIB =  ${COMPILER_LIBCXX}
 WANTLIB += c fftw3 m pthread samplerate sndfile vamp-sdk
 
-COMPILER = base-clang ports-gcc base-gcc
+# C++11
+COMPILER = base-clang ports-gcc
 
 MASTER_SITES = https://breakfastquay.com/files/releases/
 
+MODULES =   devel/meson
+
 LIB_DEPENDS =  audio/libsamplerate \
audio/libsndfile \
audio/vamp-plugin-sdk \
math/fftw3
 
-BUILD_DEPENDS =audio/ladspa
-
-USE_GMAKE =Yes
-CONFIGURE_STYLE =  gnu
-CONFIGURE_ENV =CPPFLAGS="-I${LOCALBASE}/include"
-MAKE_FLAGS =   DYNAMIC_FULL_VERSION=${LIBrubberband_VERSION} \
-   DYNAMIC_ABI_VERSION=${LIBrubberband_VERSION}
-
-NO_TEST =  Yes
+BUILD_DEPENDS =audio/ladspa \
+   audio/lv2 \
+   devel/boost
+
+CONFIGURE_ENV =CPPFLAGS="-I${LOCALBASE}/include" \
+   LDFLAGS="-L${LOCALBASE}/lib -lboost_unit_test_framework"
+CONFIGURE_ARGS =   -Djni=disabled \
+   -Dfft=fftw \
+   -Dresampler=libsamplerate
 
 .include 
Index: distinfo
===
RCS file: /cvs/ports/audio/rubberband/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 distinfo
--- distinfo6 Jun 2019 12:04:20 -   1.1.1.1
+++ distinfo21 May 2023 19:18:03 -
@@ -1,2 +1,2 @@
-SHA256 (rubberband-1.8.2.tar.bz2) = 
hr7Qa3EVtkRB0yrlNjT8wFOaULm2SO+HRD+TZ4L2w8o=
-SIZE (rubberband-1.8.2.tar.bz2) = 182232
+SHA256 (rubberband-3.2.1.tar.bz2) = 
gu2s0MUL/lamqF2x/NTKM0aUD/4ChD/FD4uS+ZqX0XI=
+SIZE (rubberband-3.2.1.tar.bz2) = 221756
Index: patches/patch-Makefile_in
===
RCS file: patches/patch-Makefile_in
diff -N patches/patch-Makefile_in
--- patches/patch-Makefile_in   11 Mar 2022 18:20:30 -  1.2
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,13 +0,0 @@
-Index: Makefile.in
 Makefile.in.orig
-+++ Makefile.in
-@@ -181,9 +181,6 @@ install:   all
-   rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
-   rm -f $(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
-   cp $(DYNAMIC_TARGET) 
$(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION)
--  ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) 
$(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_ABI_VERSION)
--  ln -s $(LIBNAME)$(DYNAMIC_EXTENSION).$(DYNAMIC_FULL_VERSION) 
$(DESTDIR)$(INSTALL_LIBDIR)/$(LIBNAME)$(DYNAMIC_EXTENSION)
--  cp -f $(JNI_TARGET) 
$(DESTDIR)$(INSTALL_LIBDIR)/$(JNINAME)$(DYNAMIC_EXTENSION)
-   cp $(VAMP_TARGET) $(DESTDIR)$(INSTALL_VAMPDIR)
-   cp vamp/vamp-rubberband.cat $(DESTDIR)$(INSTALL_VAMPDIR)
-   cp $(LADSPA_TARGET) $(DESTDIR)$(INSTALL_LADSPADIR)
Index: patches/patch-src_StretcherImpl_cpp
===
RCS file: patches/patch-src_StretcherImpl_cpp
diff -N patches/patch-src_StretcherImpl_cpp
--- patches/patch-src_StretcherImpl_cpp 11 Mar 2022 18:20:30 -  1.2
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,11 +0,0 @@
 src/StretcherImpl.cpp.orig Sat Mar 26 19:39:02 2016
-+++ src/StretcherImpl.cpp  Sat Mar 26 19:39:23 2016
-@@ -38,7 +38,7 @@
- #include "base/Profiler.h"
- 
- #ifndef _WIN32
--#include 
-+#include  /* alloca() */
- #endif
- 
- #include 
Index: patches/patch-src_StretcherProcess_cpp
===
RCS file: patches/patch-src_StretcherProcess_cpp
diff -N patches/patch-src_StretcherProcess_cpp
--- patches/patch-src_StretcherProcess_cpp  11 Mar 2022 18:20:30 -