BSD Ports

audio/libsamplerate 0.2.2 MidnightBSD

Secret Rabbit Code: a Sample Rate Converter for audio

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Last update
Commit
2a78def1fe
License
bsd2
Categories
audio

Description

Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for audio.

SRC is capable of arbitrary and time varying conversions ; from downsampling by a factor of 12 to upsampling by the same factor. Arbitrary in this case means that the ratio of input and output sample rates can be an irrational number. The conversion ratio can also vary with time for speeding up and slowing down effects.

In the other systems

SystemPortVersion
MidnightBSDaudio/libsamplerate0.2.2
FreeBSDaudio/libsamplerate0.2.2_1
OpenBSDaudio/libsamplerate0.2.2p0
NetBSDaudio/libsamplerate0.2.2nb6
DragonFlyaudio/libsamplerate0.2.2_1

Install

Binary package:

mport install libsamplerate

From mports:

cd /usr/mports/audio/libsamplerate && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libsamplerate>0:audio/libsamplerate
LIB_DEPENDS=	libsamplerate.so:audio/libsamplerate

Dependencies

Configuration

Options name: audio_libsamplerate

OptionDefaultDescription
DOCSoff
EXAMPLESoff
TESToff
USES
cmake cpe pkgconfig tar:xz
Service scripts
none

Files

pkg-plist 25
  • bin/timewarp-file
  • include/samplerate.h
  • lib/cmake/SampleRate/SampleRateConfig.cmake
  • lib/cmake/SampleRate/SampleRateConfigVersion.cmake
  • lib/cmake/SampleRate/SampleRateTargets-.cmake
  • lib/cmake/SampleRate/SampleRateTargets.cmake
  • lib/libsamplerate.so
  • lib/libsamplerate.so.0
  • lib/libsamplerate.so.0.2.2
  • libdata/pkgconfig/samplerate.pc
  • share/doc/libsamplerate/SRC.png
  • 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
distinfo 1
FileSizeSHA256
libsamplerate-0.2.2.tar.xz3.319468e+063258da280511d24b49d6b08615bbe824d0cacc9842b0e4caf11c52cf2b043893
Master sites 1
  • https://github.com/libsndfile/libsamplerate/releases/download/0.2.2/

Commit history 1

DateCommitCreditsLog message
2a78def1fe Lucas Holt audio/libsamplerate: update to 0.2.2
0.1.9 predates src_clone(), so audio/py-samplerate does not build: samplerate.cpp:129:14: error: use of undeclared identifier 'src_clone' Upstream moved to github.com/libsndfile/libsamplerate, switched to cmake and relicensed from GPLv2 to BSD 2-clause in 0.2.0; the LICENSE change is confirmed against COPYING in the 0.2.2 tarball. The two local patches were 0.1.9-era and no longer apply, so take FreeBSD's FindSndFile patch instead. The shared library version stays libsamplerate.so.0, so the 17 dependent ports need no revision bump. do-install-EXAMPLES-on uses ${FAKE_DESTDIR}${PREFIX}: option helper targets run in the main make, where PREFIX is not stage-prefixed and STAGEDIR is empty. AI-Assisted-by: Claude Opus 5 (1M context) <[email protected]> …