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 Index: libsamplerate/Makefile =================================================================== RCS file: /cvs/ports/audio/libsamplerate/Makefile,v retrieving revision 1.23 diff -u -p -u -p -r1.23 Makefile --- libsamplerate/Makefile 12 Jul 2019 20:43:35 -0000 1.23 +++ libsamplerate/Makefile 2 Sep 2021 23:44:02 -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 <h...@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: libsamplerate/distinfo =================================================================== RCS file: /cvs/ports/audio/libsamplerate/distinfo,v retrieving revision 1.9 diff -u -p -u -p -r1.9 distinfo --- libsamplerate/distinfo 7 Nov 2016 21:39:58 -0000 1.9 +++ libsamplerate/distinfo 2 Sep 2021 23:44:02 -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: libsamplerate/patches/patch-tests_util_c =================================================================== RCS file: libsamplerate/patches/patch-tests_util_c diff -N libsamplerate/patches/patch-tests_util_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ libsamplerate/patches/patch-tests_util_c 2 Sep 2021 23:44:02 -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; + #endif + +-#if defined (__linux__) || defined (__APPLE__) || defined (__FreeBSD__) ++#if defined (__linux__) || defined (__APPLE__) || defined (__FreeBSD__) || defined (__OpenBSD__) + if (search == NULL) + { printf ("Error : search is NULL in function %s.\n", __func__) ; + return name ; Index: libsamplerate/pkg/PLIST =================================================================== RCS file: /cvs/ports/audio/libsamplerate/pkg/PLIST,v retrieving revision 1.5 diff -u -p -u -p -r1.5 PLIST --- libsamplerate/pkg/PLIST 22 May 2015 11:31:10 -0000 1.5 +++ libsamplerate/pkg/PLIST 2 Sep 2021 23:44:02 -0000 @@ -1,40 +1,23 @@ @comment $OpenBSD: PLIST,v 1.5 2015/05/22 11:31:10 ajacoutot Exp $ -@bin bin/sndfile-resample include/samplerate.h -lib/libsamplerate.a +@static-lib lib/libsamplerate.a lib/libsamplerate.la @lib lib/libsamplerate.so.${LIBsamplerate_VERSION} lib/pkgconfig/samplerate.pc share/doc/libsamplerate/ share/doc/libsamplerate/SRC.css share/doc/libsamplerate/SRC.png -share/doc/libsamplerate/api.html -share/doc/libsamplerate/api_callback.html -share/doc/libsamplerate/api_full.html -share/doc/libsamplerate/api_misc.html -share/doc/libsamplerate/api_simple.html -share/doc/libsamplerate/download.html -share/doc/libsamplerate/faq.html -share/doc/libsamplerate/history.html -share/doc/libsamplerate/index.html -share/doc/libsamplerate/license.html -share/doc/libsamplerate/lists.html -share/doc/libsamplerate/quality.html -share/doc/libsamplerate/win32.html -share/doc/libsamplerate0-dev/ -share/doc/libsamplerate0-dev/html/ -share/doc/libsamplerate0-dev/html/SRC.css -share/doc/libsamplerate0-dev/html/SRC.png -share/doc/libsamplerate0-dev/html/api.html -share/doc/libsamplerate0-dev/html/api_callback.html -share/doc/libsamplerate0-dev/html/api_full.html -share/doc/libsamplerate0-dev/html/api_misc.html -share/doc/libsamplerate0-dev/html/api_simple.html -share/doc/libsamplerate0-dev/html/download.html -share/doc/libsamplerate0-dev/html/faq.html -share/doc/libsamplerate0-dev/html/history.html -share/doc/libsamplerate0-dev/html/index.html -share/doc/libsamplerate0-dev/html/license.html -share/doc/libsamplerate0-dev/html/lists.html -share/doc/libsamplerate0-dev/html/quality.html -share/doc/libsamplerate0-dev/html/win32.html +share/doc/libsamplerate/api.md +share/doc/libsamplerate/api_callback.md +share/doc/libsamplerate/api_full.md +share/doc/libsamplerate/api_misc.md +share/doc/libsamplerate/api_simple.md +share/doc/libsamplerate/bugs.md +share/doc/libsamplerate/download.md +share/doc/libsamplerate/faq.md +share/doc/libsamplerate/history.md +share/doc/libsamplerate/index.md +share/doc/libsamplerate/license.md +share/doc/libsamplerate/lists.md +share/doc/libsamplerate/quality.md +share/doc/libsamplerate/win32.md Index: mpd/Makefile =================================================================== RCS file: /cvs/ports/audio/mpd/Makefile,v retrieving revision 1.135 diff -u -p -u -p -r1.135 Makefile --- mpd/Makefile 6 May 2021 11:11:17 -0000 1.135 +++ mpd/Makefile 2 Sep 2021 23:44:02 -0000 @@ -7,7 +7,7 @@ DISTNAME = mpd-${VER} EXTRACT_SUFX = .tar.xz CATEGORIES = audio HOMEPAGE = https://www.musicpd.org/ -REVISION = 0 +REVISION = 1 # GPLv2+ PERMIT_PACKAGE = Yes @@ -36,6 +36,7 @@ LIB_DEPENDS = audio/faad>=2.6.1p0 \ audio/libmikmod \ audio/libmpdclient \ audio/libsamplerate \ + audio/libsndfile \ audio/libvorbis \ audio/musepack \ audio/opus \