Saturday, September 04, 2021

Re: UPDATE: libsamplerate 0.2.1

On Fri, Sep 03, 2021 at 10:51:24PM -0400, Brad Smith wrote:
> Here is an update to libsamplerate 0.2.1.
>
> Version 0.2.1 (2021-01-23)
> * Fix incorrect passing of -version-info to libtool, causing a
> regression on versioned file name of the shared library (#140).
> * Fix time resolution on GNU/Hurd for throughput_test
> * Update AUTHORS and release manager details
>
> Version 0.2.0 (2021-01-21)
> * API:
> * Add `src_clone()` function to clone a SRC_STATE* handle
> * Cleanup Autotools build system.
> * Require C99 compiler
> * Move `sndfile-resample` to sndfile-tools package
> * Add missing `src_get_channels`() export to windows def file
> * Fix macOS compile errors and modernize audio api on that platform
> * Add Octave scripts to generate filter coefficients
> * Fix two potential undefined behaviours
> * Fix a buffer out-of-bounds read error in src/src_sinc.c
> * Improve multichan_throughput_test
> * Replace buggy implementationg of Duffs device by regular loop
> * CMake:
> * Fix CMake generated shared library ABI compliance with Autotools build
> * Documentation:
> * Move site to new URL: http://libsndfile.github.io/libsamplerate/
> * Convert documentation pages from HTML to Markdown
> * Use GitHub's Jekyll static site generator to generate static HTML pages
> for site

An updated diff with the missing dependency in frotz.


Index: audio/libsamplerate/Makefile
===================================================================
RCS file: /cvs/ports/audio/libsamplerate/Makefile,v
retrieving revision 1.23
diff -u -p -u -p -r1.23 Makefile
--- audio/libsamplerate/Makefile 12 Jul 2019 20:43:35 -0000 1.23
+++ audio/libsamplerate/Makefile 4 Sep 2021 18:34:51 -0000
@@ -2,35 +2,26 @@

COMMENT= audio sample rate conversion library

-DISTNAME= libsamplerate-0.1.9
-SHARED_LIBS= samplerate 2.1
+GH_ACCOUNT= libsndfile
+GH_PROJECT= libsamplerate
+GH_TAGNAME= 0.2.1
CATEGORIES= audio

-HOMEPAGE= http://mega-nerd.com/SRC/
+SHARED_LIBS= samplerate 3.0
+
+HOMEPAGE= https://github.com/libsndfile/libsamplerate/
MAINTAINER= Jan Stary <hans@stare.cz>

# 2-BSD license
PERMIT_PACKAGE= Yes

-MASTER_SITES= ${HOMEPAGE}
-
-WANTLIB= FLAC c m ogg sndfile>=1 vorbis vorbisenc
+WANTLIB= m

-LIB_DEPENDS= audio/libsndfile
-
-CONFIGURE_STYLE=gnu
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+AUTOCONF_VERSION= 2.69
+AUTOMAKE_VERSION= 1.16
+CONFIGURE_STYLE=autoreconf
CONFIGURE_ARGS= --disable-cpu-clip \
- --disable-fftw
-
-post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libsamplerate
- ${INSTALL_DATA} ${WRKSRC}/doc/*.css \
- ${PREFIX}/share/doc/libsamplerate
- ${INSTALL_DATA} ${WRKSRC}/doc/*.png \
- ${PREFIX}/share/doc/libsamplerate
- ${INSTALL_DATA} ${WRKSRC}/doc/*.html \
- ${PREFIX}/share/doc/libsamplerate
+ --disable-fftw \
+ --disable-sndfile

.include <bsd.port.mk>
Index: audio/libsamplerate/distinfo
===================================================================
RCS file: /cvs/ports/audio/libsamplerate/distinfo,v
retrieving revision 1.9
diff -u -p -u -p -r1.9 distinfo
--- audio/libsamplerate/distinfo 7 Nov 2016 21:39:58 -0000 1.9
+++ audio/libsamplerate/distinfo 4 Sep 2021 18:34:51 -0000
@@ -1,2 +1,2 @@
-SHA256 (libsamplerate-0.1.9.tar.gz) = Cn6xaOLyE1P7bYTaFS5FEhJvfcSMywvoBXjFZUE0RME=
-SIZE (libsamplerate-0.1.9.tar.gz) = 4336641
+SHA256 (libsamplerate-0.2.1.tar.gz) = wo3J/Vh/JQEU01qrGA5BVRk143yE52QcMdIlzaXrX6s=
+SIZE (libsamplerate-0.2.1.tar.gz) = 3954552
Index: audio/libsamplerate/patches/patch-tests_util_c
===================================================================
RCS file: audio/libsamplerate/patches/patch-tests_util_c
diff -N audio/libsamplerate/patches/patch-tests_util_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ audio/libsamplerate/patches/patch-tests_util_c 4 Sep 2021 18:34:51 -0000
@@ -0,0 +1,23 @@
+$OpenBSD$
+
+Index: tests/util.c
+--- tests/util.c.orig
++++ tests/util.c
+@@ -175,7 +175,7 @@ get_cpu_name (void)
+ file = popen ("/usr/sbin/system_profiler -detailLevel full SPHardwareDataType", "r") ;
+ search = "Processor Name" ;
+ is_pipe = 1 ;
+-#elif defined (__FreeBSD__)
++#elif defined (__FreeBSD__) || defined (__OpenBSD__)
+ file = popen ("sysctl -a", "r") ;
+ search = "hw.model" ;
+ is_pipe = 1 ;
+@@ -188,7 +188,7 @@ get_cpu_name (void)
+ return name;
+

No comments:

Post a Comment