On Sat, Oct 09, 2021 at 12:36:54AM -0400, Brad Smith wrote: > On Sat, Sep 11, 2021 at 04:08:02PM -0400, Brad Smith wrote: > > On Fri, Sep 03, 2021 at 10:51:25PM -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 > > > > Here is an update to libsamplerate 0.2.2. > > > > Version 0.2.2 (2021-09-05) > > * Fix CMake overlinking for examples (#146) > > * Switch to GCC's visibility for hiding more implementation details > > * Check GNU ld instead of gcc for exported symbols control logic in > > configure.ac > > * Disable static builds using Autotools by default. If you want static > > libraries, pass --enable-static to ./configure > > * ABI version incompatibility between Autotools and CMake build on Apple > > platforms. > > * Fixes and improvements for CMake build system. > > * Fixes and improvements for Autotools build system. > > * Switch to .xz over .bz2 for release tarballs. > > * Minor bug fixes and updates. > > Updated the diff for -current..
Stuart pointed out there was an already made tarball which simplifies things a bit.. 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 9 Oct 2021 16:14:16 -0000 @@ -2,35 +2,26 @@ COMMENT= audio sample rate conversion library -DISTNAME= libsamplerate-0.1.9 -SHARED_LIBS= samplerate 2.1 +VER= 0.2.2 +DISTNAME= libsamplerate-${VER} CATEGORIES= audio +EXTRACT_SUFX= .tar.xz -HOMEPAGE= http://mega-nerd.com/SRC/ +SHARED_LIBS= samplerate 3.0 + +HOMEPAGE= http://libsndfile.github.io/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 +MASTER_SITES= https://github.com/libsndfile/libsamplerate/releases/download/${VER}/ -LIB_DEPENDS= audio/libsndfile +WANTLIB= m CONFIGURE_STYLE=gnu -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - LDFLAGS="-L${LOCALBASE}/lib" 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 9 Oct 2021 16:14:16 -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.2.tar.xz) = MljaKAUR0ktJ1rCGFbvoJNDKzJhCsOTK8RxSzysEOJM= +SIZE (libsamplerate-0.2.2.tar.xz) = 3319468 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 9 Oct 2021 16:14:16 -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 9 Oct 2021 16:14:16 -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.136 diff -u -p -u -p -r1.136 Makefile --- mpd/Makefile 13 Sep 2021 05:36:50 -0000 1.136 +++ mpd/Makefile 9 Oct 2021 16:14:16 -0000 @@ -4,6 +4,7 @@ BROKEN-hppa = no atomic ops COMMENT = Music Player Daemon VER = 0.22.11 DISTNAME = mpd-${VER} +REVISION = 0 EXTRACT_SUFX = .tar.xz CATEGORIES = audio HOMEPAGE = https://www.musicpd.org/ @@ -35,6 +36,7 @@ LIB_DEPENDS = audio/faad>=2.6.1p0 \ audio/libmikmod \ audio/libmpdclient \ audio/libsamplerate \ + audio/libsndfile \ audio/libvorbis \ audio/musepack \ audio/opus \