Commit graph

60 commits

Author SHA1 Message Date
Alexey Dokuchaev
29fc493e22 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
2022-02-18 10:13:16 +00:00
Matthias Andree
037eee2648 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.
2022-02-16 22:02:16 +01:00
Hans Petter Selasky
e66a5ac7ef 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)
2022-02-08 10:15:40 +01:00
Hans Petter Selasky
472a942f9c 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)
2022-01-30 15:54:47 +01:00
Hans Petter Selasky
fedba31a63 audio/alsa-plugins: Try to cleanup ALSA-OSS backend patch.
Approved by: pi (implicit)
2022-01-29 18:56:52 +01:00
Hans Petter Selasky
2738adad73 audio/alsa-plugins: Merge ALSA-OSS patches to simplify future patching.
Approved by: pi (implicit)
2022-01-29 18:56:52 +01:00
Rodrigo Osorio
decda8069b 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
2021-12-30 23:34:55 +01:00
Dag-Erling Smørgrav
a4ab68d2ff 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.
2021-10-13 15:14:24 +00:00
Jan Beich
348c90c09f audio/alsa-plugins: disable BUFSZ_P2 again, after 44c14328c0
Seems to be a rebase mistake. 27f51d17e1 rationale still applies.
2021-09-12 14:07:17 +00:00
Yuri Victorovich
5708ae4005 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)
2021-08-02 09:03:15 -07:00
Charlie Li
933747467c
audio/alsa-plugins: fix non-default OPTIONS
- Update configure option and plist for FFMPEG
- Add two missing files with SAMPLERATE

PR: 245321
Approved by: arrowd (mentor)
Differential Revision: https://reviews.freebsd.org/D30223
2021-05-12 10:40:12 -04:00
Greg V
44c14328c0 audio/alsa-lib, audio/alsa-plugins, audio/alsa-utils: Update to 1.2.2
PR:		245321
Reviewed by:	swills
Tested by:	Oleh Hushchenkov <o.hushchenkov@gmail.com>
2021-05-11 19:53:01 +03:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Jan Beich
27f51d17e1 audio/alsa-plugins: disable BUFSZ_P2 after r545611
$ aplay foo.wav
Playing WAVE 'foo.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Assertion failed: (err >= 0), function set_params, file aplay.c, line 1353.
Aborted by signal Abort trap...

$ veloren
[...]
Panic Payload: "build_output_stream failed with all supported formats: BackendSpecific { err: BackendSpecificError { description: \"ALSA function \\\'snd_pcm_hw_params_set_period_time_near\\\' failed with error \\\'EINVAL: Invalid argument\\\'\" } }"
PanicInfo: panicked at 'build_output_stream failed with all supported formats: BackendSpecific { err: BackendSpecificError { description: "ALSA function \'snd_pcm_hw_params_set_period_time_near\' failed with error \'EINVAL: Invalid argument\'" } }', cargo-crates/rodio-0.13.0/src/stream.rs:202:22
Game version: v0.8.0 [2020-11-28]
2020-11-29 04:54:21 +00:00
Jan Beich
b88defae3a audio/alsa-*: drop maintainership
No time to engage upstream or keep up with updates.
2020-02-23 18:47:40 +00:00
Jan Beich
a185384bd9 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.
2019-12-03 04:33:21 +00:00
Jan Beich
a3f26bc3b9 audio/alsa-plugins: regen via "make makepatch" 2019-12-03 04:33:06 +00:00
Jan Beich
325aed58cb multimedia/ffmpeg: update to 4.2
Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.2:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
2019-08-05 23:06:50 +00:00
Jan Beich
edced9b58c 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
2019-07-31 02:37:35 +00:00
Hans Petter Selasky
38b2315add 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
2019-07-04 15:46:15 +00:00
Jan Beich
0872f77fd4 multimedia/ffmpeg: update to 4.1
Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.1:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
2018-11-06 01:50:26 +00:00
Jan Beich
c400a2c8b6 multimedia/ffmpeg: update to 4.0
- FFSERVER support was removed upstream
- libressl now uses libtls backend instead of patching openssl one
- Clang i386 no longer uses 16-byte aligned stack

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n4.0:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR:		227726
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D15175
2018-05-02 15:07:27 +00:00
Jan Beich
84e727457f multimedia/ffmpeg: update to 3.4
Notable changes:
- i386/amd64 now depend on NASM per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/4f9297ac3b39
- NETCDF is now MYSOFA but the dependency doesn't exist in ports yet
- SCHROEDINGER is gone per https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/220b24c7c9
- DRM, LIBRSVG2, LIBXML2 are new options
- ABI isn't completely compatible: some structs have changed

Minor cleanup:
- Don't pass --disable-{in,out}dev when it's already blocked by disabled dependency
- Drop redundant "Enable" from option descriptions
- Switch CDIO_DESC to use Mk/bsd.options.desc.mk

Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.4:/Changelog
ABI:		https://abi-laboratory.pro/tracker/timeline/ffmpeg/
PR:		223057
Exp-run by:	antoine
2017-10-21 06:50:49 +00:00
Jan Beich
0c612c4aa3 multimedia/ffmpeg: update to 3.2.2
Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.2.2:/Changelog
PR:		207547
Submitted by:	riggs, ebirth@b0ss.net (libressl fix)
Exp-run by:	antoine (3 tries)
2016-12-11 15:22:47 +00:00
Mathieu Arnold
9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00
Jan Beich
e68ffdaff6 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.
2016-04-01 20:45:03 +00:00
Jan Beich
49190875e4 audio/alsa-*: update to 1.1.1
Changes:	http://www.alsa-project.org/main/index.php/Changes_v1.1.0_v1.1.1
ABI:		https://people.freebsd.org/~jbeich/compat_reports/alsa-lib/1.1.0_to_1.1.1/compat_report.html
2016-04-01 20:44:23 +00:00
Jan Beich
f7731c8be8 Drop default directory from _DEPENDS in my ports
https://lists.freebsd.org/pipermail/freebsd-ports/2015-October/100794.html
2016-03-16 12:58:16 +00:00
Jan Beich
a61fabb110 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
2016-03-02 22:48:44 +00:00
Jan Beich
261593e7c5 audio/alsa-plugins: prepare for ffmpeg 3.0 update
Obtained from:	upstream
2016-02-27 19:51:47 +00:00
Dmitry Marakasov
b9398223bd Convert LICENSE= "GPLxx # or later" to "GPLxx+"
Approved by:	portmgr blanket
2016-01-12 16:20:31 +00:00
Jan Beich
55e2d7a835 audio/alsa-*: update to 1.1.0
Changes:	http://www.alsa-project.org/main/index.php/Changes_v1.0.29_v1.1.0
ACC report:	https://people.freebsd.org/~jbeich/compat_reports/alsa-lib/1.0.29_to_1.1.0/compat_report.html
2015-11-10 22:21:08 +00:00
Jan Beich
00d4634211 Convert my ports to USES=localbase 2015-09-26 20:26:21 +00:00
Jan Beich
0d988c09e1 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
2015-08-20 13:34:47 +00:00
Jan Beich
c00f1ac2dc audio/alsa-plugins: convert to CHANGES@20150818 syntax 2015-08-20 13:03:14 +00:00
Mathieu Arnold
bb271f0bf7 Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3412?
2015-08-19 13:29:59 +00:00
John Marino
e456b4fad8 audio/alias-plugins: Resolve DF audio issues with USES=alias
Reported by:	ivadasz on DF IRC
Approved by:	non-invasive DF support
2015-06-22 18:58:01 +00:00
Mathieu Arnold
60d1a83c2a 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
2015-05-14 10:15:04 +00:00
Jan Beich
76519644a7 - Update to 1.0.29
- alsa-plugins-oss: Disable BUFSZ_P2 by default after r378529 [1]
- No PORTREVISION bumps because binary compatible

Changes:	http://www.alsa-project.org/main/index.php/Changes_v1.0.28_v1.0.29
ACC report:	http://upstream-tracker.org/compat_reports/alsa/1.0.28_to_1.0.29/abi_compat_report.html
PR:		196051 [1]
Suggested by:	mi [1]
2015-02-27 06:32:02 +00:00
Jan Beich
3e90806aee Per convention change my address to @FreeBSD.org
Differential Revision:	https://reviews.freebsd.org/D1565
Approved by:		bapt (mentor)
2015-01-20 22:03:55 +00:00
Tijl Coosemans
60945f0277 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.
The ports install a symlink with the old library version.  When enough
of their dependent ports have had regular updates the remaining ones can
get a PORTREVISION bump and the links can be removed.

Also remove the devel/pcre dependency from USE_GNOME=glib20.  It causes
over 2200 packages to depend on devel/pcre while less than 200 actually
link with it.  The glib20 package still depends on devel/pcre so this
should not make a difference for ports with USE_GNOME=glib20.  Also,
libdata/pkgconfig/glib-2.0.pc lists pcre as a private library so
USE_GNOME=glib20 should not propagate it.

PR:		195724
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2014-12-08 16:48:38 +00:00
John Marino
3d3d60b1eb audio/alsa-*: drop USES=alias
Jan says alias is no longer needed on alsa since verion 1.0.28.

PR:		194502
2014-10-20 21:31:06 +00:00
John Marino
badd7a1eba 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)
2014-10-20 08:12:20 +00:00
Baptiste Daroussin
a6abc3b420 Cleanup plist 2014-10-20 06:35:58 +00:00
John Marino
46b7762a82 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)
2014-08-09 15:20:35 +00:00
Dmitry Marakasov
b01c49470c - Switch to USES=libtool
Approved by:	portmgr blanket
2014-08-05 18:23:48 +00:00
Olli Hauer
886a9071a1 - USE_(BZIP2|XZ) -> USES= tar:(bzip2|xz) 2014-06-01 13:03:14 +00:00
Florian Smeets
50cfc58f27 - 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
2013-12-14 14:41:17 +00:00
William Grzybowski
98bfd02249 audio/alsa-plugins: fix build with newer ffmpeg
- Fix build with newer ffmpeg

Reported by:	Kevin Oberman <rkoberman gmail.com>
Approved by:	portmgr (bapt, implicit)
2013-10-23 00:30:15 +00:00
Florian Smeets
4e23b4863e - 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
2013-10-03 16:34:28 +00:00