===> The following configuration options are available for alsa-plugins-1.2.12_2:
FFMPEG=off: FFmpeg support (WMA, AIFF, AC3, APE...)
JACK=off: JACK audio server support
PULSEAUDIO=off: PulseAudio sound server support
SAMPLERATE=off: Sample rate conversion support
SPEEX=off: Speex audio format support
===> Use 'make config' to modify these settings
*/*: De-orbit alias.mk
Mk/Uses/alias.mk was an attempt for compat with DPorts, but has rotted.
This feature was never documented in the PHB, so there is no work to
be done by the docs@ team.
Nothing against DragonFly, but if DPorts still needs FreeBSD 9
support, they really should work that out with upstream projects.
Ultimately, we don't need to keep carrying this outdated feature that
doesn't affect us.
audio/alsa-plugins: Fix build with JACK option: use of undeclared identifier
'program_invocation_short_name'
pcm_jack.c:606:23: error: use of undeclared identifier
'program_invocation_short_name'
606 | const char *pname = program_invocation_short_name;
| ^
1 error generated.
Upstream broke build on FreeBSD in commit:
https://github.com/alsa-project/alsa-plugins/commit/13a645e55a740dfa43bb3518da3f580c90be7eac
Pool request:
https://github.com/alsa-project/alsa-plugins/pull/48
PR: 280144
Reported by: Peter Much <pmc@citylink.dinoex.sub.org>
Tested by: Peter Much <pmc@citylink.dinoex.sub.org>
Fixes: 1a782b315786 (update 1.2.7.1 → 1.2.12)
MFH: 2024Q4
audio/alsa-plugins: update 1.2.7.1 → 1.2.12
Also:
* refresh patches;
* change maintainer from ports@ to rodrigo@ - maintainer other alsa
ports: audio/alsa-lib audio/alsa-utils (if he is against changing the
maintainer, then I will return the old value ports@).
PR: 280144
Approved by: rodrigo (maintainer, timeout > 2 weeks)
audio/alsa-plugins: disable PULSEAUDIO by default after 44c14328c08e
- Reduce heavy dependencies for consumers e.g., wine, pipewire, qt?-webengine
- "pulse" plugin was partially broken until 51317515580f
- All plugins with extra dependencies (like "pulse") to be subpackaged later
PR: 245321
audio/alsa-plugins: unbreak PULSEAUDIO=on config after 44c14328c08e
For some reason, /usr/local/share/alsa/alsa.conf.d is no longer searched.
$ sed -i '' '/pulse/s/# //' /usr/local/etc/asound.conf
$ daemon -f pulseaudio
$ aplay foo.wav
ALSA lib pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM pcm.pulse
aplay: main:839: audio open error: No such file or directory
PR: 245321
audio/alsa-plugins: make JACK independent from SAMPLERATE
Dates back to 4070922aacfb but the submitted patches unconditionally
passed --disable-samplerate, so SAMPLERATE option was added by fluffy@.
According to v1.0.23 vendor sources there was no such dependency.
Drop as JACK=on SAMPLERATE=off builds fine, and neither 50-jack.conf
nor alsa-lib/files/asound.conf.sample use samplerate.
audio/alsa-plugins: remove debug options to prevent footshooting
- BLKCNT_P2 and VERBOSE exposed compile knobs from
https://people.freebsd.org/~ariff/libasound/20090928_00-alsa-plugins-1.0.21.diff
- BUFSZ_P2 worked around crashes and high CPU usage in Firefox until
native OSS support phased out ALSA
- hselasky@ fixed many ALSA issues over the years
- users can still adjust compile knobs via make.conf(5) or Makefile.local
PR: 274047
audio/alsa-plugins: unbreak FFMPEG=on after 685e477b807c
checking for LIBAV... no
checking for avcodec_open in -lavcodec... no
[...]
configure:13617: checking for LIBAV
configure:13624: $PKG_CONFIG --exists --print-errors "libavcodec libavutil
libavresample"
Package libavresample was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavresample.pc'
to the PKG_CONFIG_PATH environment variable
Package 'libavresample', required by 'virtual:world', not found
configure:13627: $? = 1
[...]
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
(Only the first 15 lines of the commit message are shown above )
audio/alsa-plugins: revert ffmpeg workaround
Not a leaf consumer. Depending on ffmpeg4 can cause bustage or crashes
in ffmpeg consumers.
PR: 271641272337
This reverts commit ca82785515c8ecfa4bab73b7539a688c343f327e.
audio/alsa-plugins: fix build with FFMPEG option enabled
After the update to ffmpeg 6 the configure script failed to recognise the
components needed, causing packaging errors later on. Changing the dependency to
the new ffmpeg4 port fixes this.
PR: 271641
Reported by: m.ne@gmx.net
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
audio: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <dmagda+libsamplerate@ee.ryerson.ca>
* <trasz@FreeBSD.org>
* Adam Weinberger
* Adam Weinberger <adamw@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Aleksander Fafula <alex@bsdguru.org>
* Alex Allan <alex@kamaz.org.uk>
* Alexander Botero-Lowry <alex@foxybanana.com>
* Alexander Kojevnikov <alexander@kojevnikov.com>
* Alexander Nedotsukov <bland@FreeBSD.org>
* Alexander Vereeken <Alexander88207@protonmail.com>
(Only the first 15 lines of the commit message are shown above )
audio/alsa-plugins: remove OSS-specific BUFSZ_P2 option from global list
Otherwise it would be listed twice on the option selection dialog screen.
PR: 262028
audio/alsa-plugins: Fix SPEEX option, and symlinks.
Fixes these errors:
Error: /usr/local/lib/alsa-lib/libasound_module_pcm_speex.so is linked
to /usr/local/lib/libspeexdsp.so.1 from audio/speexdsp but it is not
declared as a dependency
Error: Orphaned: etc/alsa/conf.d/60-speex.conf
Error: Orphaned: share/alsa/alsa.conf.d/60-speex.conf
Also makes symlinks from etc/alsa/conf.d to share/alsa/alsa.conf.d/
relative to fix stage-qa warnings.
audio/alsa-plugins: Fix more oss_pointer() calculation bugs.
Correctly set the water level based on min_avail to avoid infinite
polling loops.
Applications tested: chrome, musescore, aplay and arecord .
PR: 261767
Approved by: pi (implicit)
audio/alsa-plugins: Fix two bugs in ALSA OSS backend.
When computing the oss_pointer() return value, use the application
pointer value as reference, so that ALSA audio applications at any
time don't read/write more audio data than is possible. Following the
cyclic DMA pointer is not a good idea, because it doesn't account for
under- or overruns and this quickly leads to a situation where some
applications may want to write more data, ending in infinite loops.
The SNDCTL_DSP_GET space ioctls operate on buffer fragments. Any
size less than bi.fragsize is reported as zero bytes. Don't set the
water level less than bi.fragsize, because it leads to infinite
polling the way ALSA PCM is working.
Approved by: pi (implicit)
audio/alsa-plugins: Add USE_LDCONFIG
Add USE_LDCONFIG to made shared libs installed
by this port usable as a dependecy by other ports
such as audio/spotifyd
audio/alsa-plugins: Switch master site to GitHub.
The original distfiles are getting hard to come by for some reason, so
switch to pulling source tarballs directly from GitHub. Replace
patches that apply to generated files with patches that apply to their
sources.
audio/jack: Update to Jack2: 0.125.0 -> 1.9.16
Big thank you to Florian Walpen <dev@submerge.ch> and
Goran Mekić <meka@tilda.center> for working on Jack2.
PR: 251125
Submitted by: Florian Walpen <dev@submerge.ch> (original version)
audio/alsa-plugins: move r505839 to the correct file
files/alsa-plugins.patch contains an assortment of FreeBSD-specific
improvements that may not work on alternative OSS implementations.
So, restore the ability to exclude the patch for debugging.
audio/alsa-plugins: drop unnecessary newline after r505839
- Wasn't approved i.e., explicitly requested to not add it
- portlint style frequently changes and isn't mandatory to follow
- Newline here is dubious compared to putting USE/USES at the top
of the section for better visibility
Fix issues with ALSA OSS backend for firefox and chrome.
1) When read() or write() fails due to EAGAIN because no buffer is available or
buffer is full, return 0 instead of failure. Else clients may simply close
the device and re-open it instantly chopping the audio.
2) Implement OSS delay function to fix an issue with negative delays.
3) Use at least 16ms of HW buffer by default to avoid jitter.
Approved by: pi, jbeich
bsd.sites.mk: with last mirror dead retire MASTER_SITE_ALSA
$ fetch -v http://alsa.cybermirror.org/lib/alsa-lib-1.1.0.tar.bz2
[...]
404 Not Found
Not Found
The requested URL /lib/alsa-lib-1.1.0.tar.bz2 was not found on this server.
audio/alsa-plugins: partially revert r380063
Restore BUFSZ_P2=on by default as a temporarily fix for excessive CPU usage
in Firefox. r378529 wasn't enough to make BUFSZ_P2=off transition smooth.
PR: 203732
Reported by: Henry Hu, Arto Pekkanen, many more indirectly
MFH: 2015Q1
audio/alsa-plugins: back out r394862, already applied by r394778
It is a remnant from |git rebase| not ignoring line order by default
when detecting already merged changes.
Reported by: kwm
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3412?
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla in
the 32 ports that still use it. Bump PORTREVISION on their dependent
ports except the ones that depend on these:
audio/libogg
audio/libvorbis
devel/pcre
ftp/curl
graphics/jpeg
graphics/libart_lgpl
graphics/tiff
textproc/expat2
textproc/libxslt
In these cases the same trick as in the recent gettext update is used.
(Only the first 15 lines of the commit message are shown above )
Add USES=alias to several ports
Alias is a new USES tool that allows DragonFly to masquerade as FreeBSD
by setting CFLAGS+= -D__FreeBSD__. For some ports, this fixes the build
without the need for additional patches.
Approved by: portmgr (bapt, blanket)
audio/alsa-(lib|plugins|utils): Upgrade version 1.0.27.2 => 1.0.28
Also switch maintainership to submitter with blessing of former
maintainer. Other changes include:
* fix for bug 191190
* Use new options syntax
* Proper detection of PYTHON and FFMPEG
* fix leftovers
* strip libraries to satisfy stage-qa
* conf: alias surround stuff to pcm.default
* lib: split patches and refactor
* utils: rename XMLTO to MANPAGES
PR: 191524
Submitted by: Jan Beich
Approved by: former maintainer (Aragon Gouveia)
- ALSA now supports playing HTML5 audio with 32-bit sample format [1]
after being converted from float as passed by firefox/libcubeb [2]
- Restore behavior from r296140 while adding alignment options in case
of issues. This should make things slightly less broken and add more
sample formats. [1]
- Some apps (e.g. linux-firefox with ports/169896) don't check with ALSA
which sample formats are supported and just feed whatever they like,
assuming the underlying device supports it.
While here also fix mixer device for OSS plugin. It should be /dev/dsp
according to 4Front OSS wiki. The only works with ARIFF_OSS enabled
but the volume is reset on close(). audio/oss doesn't work either way:
the new (OSSv4) way to control mixer is via SNDCTL_MIX_* ioctls. [2]
PR: ports/183861 [1]
PR: ports/184006 [2]
Submitted by: Jan Beich <jbeich@tormail.org>
Approved by: maintainer timeout
- update to 1.0.27.2 [1]
-- add PYTHON option to alsa-lib
-- drop unresponsive mirrors and those that rarely catch up
-- drop --disable-aload from alsa-lib, builds fine without
-- drop USE_LDCONFIG from alsa-plugins, useless for dlopen'd plugins
-- convert to new LIB_DEPENDS syntax and Makefile header
-- convert PLIST_SUB to OPTIONS_SUB
-- don't link alsa-utils against librt for clock_gettime(2)
-- pass paths to configure relative to --prefix value
-- install udev config(s) under PREFIX (for reference)
-- cleanup /var/lib as it's not in default MTREE_FILE
-- remove OSVERSION check for EOL releases
- allow staging
PR: ports/182245 [1]
Submitted by: Jan Beich <jbeich@tormail.org> [1]
Approved by: maintainer timeout
Since r221388 and its MFCs SNDCTL_DSP_GETIPTR should work correctly
on FreeBSD and should not require any quirks/workarounds.
In fact they seem to be harmful now and result in sound outages.
PR: ports/165247
Submitted by: avg
Submitted by: Aragon Gouveia <aragon@phat.za.net> (maintainer)
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead
PR: 157936
Submitted by: myself
Exp-runs by: pav
Approved by: pav