diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-06-30 17:36:28 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-06-30 17:36:28 +0100 |
commit | 7014a5a3ea0feffab9701fdd6b64cc7667a985af (patch) | |
tree | f2cbbaa8bb9209cd15208721103228336149b799 /media-plugins/alsa-plugins | |
parent | 7a86906b67693cc65671d3e1476835d3a7e13092 (diff) |
gentoo resync : 30.06.2019
Diffstat (limited to 'media-plugins/alsa-plugins')
-rw-r--r-- | media-plugins/alsa-plugins/Manifest | 1 | ||||
-rw-r--r-- | media-plugins/alsa-plugins/alsa-plugins-1.1.9-r1.ebuild | 103 |
2 files changed, 104 insertions, 0 deletions
diff --git a/media-plugins/alsa-plugins/Manifest b/media-plugins/alsa-plugins/Manifest index 93c90f894ee9..e265cee9a544 100644 --- a/media-plugins/alsa-plugins/Manifest +++ b/media-plugins/alsa-plugins/Manifest @@ -10,5 +10,6 @@ DIST alsa-plugins-1.1.9.tar.bz2 406127 BLAKE2B 10bf3e96289a88edabfa3018d33ab4666 EBUILD alsa-plugins-1.1.1-r1.ebuild 2698 BLAKE2B 3fac1377af069760efcc93fe6daa55a3d821742e7ffd5c0976dc0f3a066151ff087d20a65803aa59f253f27f8077d20345da879f92fd3dc28398440e31b3d148 SHA512 9df4f03ae71fe97423bdb37cd28755873a915f210ce92f5f394e15bcecd6662f321acff20b9f212fdb06b63337a7f58d2fb25a6c18eac2be3c5820bc21394860 EBUILD alsa-plugins-1.1.6.ebuild 2870 BLAKE2B 4dbfa2bf67ebcaf0102e3e000965acb1a7ddebd9a4cc2071c6e40046d5d2f40c0a9939b55559563880c384620ab4b49d8c5fa54bf795d7edc4ad373d94919034 SHA512 4ee600a04dc60852a8a05948434c53e72c500773bf0ef9b569125787e32f934723588bffea4dea1500aad4a2e974c77cd6e5d63110244154aa23b2d8b53556f8 EBUILD alsa-plugins-1.1.8.ebuild 2817 BLAKE2B 43d2a624a12ea3ee44c58214b9258ab05cd8b03187f26080eddda13ee84020d475ed88f9e3444563ea5e2ab77bf2929875f2e5c0a990bcd83185dd564de356c9 SHA512 f7a1dad7522630889128d88e8c3b0fdebb23040f976ea7caf9b7aa2420eb656fa34c13233110e43621accb8137e107ef2067fdc2d0212ee821aa2debfd865177 +EBUILD alsa-plugins-1.1.9-r1.ebuild 3047 BLAKE2B 4135cf5a6aa0fb97e3599e3df3aeffe1773ecfd5c7ca0508af6f98bc383cc0da22405610c4ea5af836e4380d298ae97a0403c619ae546ad8529e8d00b8fd6956 SHA512 5faa9b98b87a54c530c943faea4f2ef0f994141c5e6c784b8af0ef4806e88ad18bcf0ebb8ac4b02fe2a5e62f47b1ded3ab5f74539287fe36cb5aefdd3437620e EBUILD alsa-plugins-1.1.9.ebuild 2921 BLAKE2B 082e1bb7fdfdac8ea826cabd171eeaf25445dc9b9520527b479357440ea4b9b29690e835fb6b097e23f3fc415cfbd5dd2e53ffb98233e49b853be8f3d8e1dcf6 SHA512 8c6413bc5e31b14a9fc2b44974b8a3587db8626ce2ef5287b2add5fc1bcc1c4dff18a48ed6eaff67ee9668cddb5e22164c74d85217fa39e18c94c74754adadb6 MISC metadata.xml 512 BLAKE2B 2fa80544d70890c99164643bc1706b8c2e5f3d50c991e781e68441072366b1b89d0082507bf1c27d11d95bcd1c7d508f09ce0b193bd7d4ca77f27a2bdf9e24c8 SHA512 fce90766306d36d97ae40cbebf7b788f6f11766afc6d9680f563271ea184373ae20480b99b6e60edc74d9bfb222acd1d11c50163a31520f073a00bba9050e361 diff --git a/media-plugins/alsa-plugins/alsa-plugins-1.1.9-r1.ebuild b/media-plugins/alsa-plugins/alsa-plugins-1.1.9-r1.ebuild new file mode 100644 index 000000000000..783f916c1392 --- /dev/null +++ b/media-plugins/alsa-plugins/alsa-plugins-1.1.9-r1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools flag-o-matic multilib multilib-minimal + +DESCRIPTION="ALSA extra plugins" +HOMEPAGE="http://www.alsa-project.org/" +SRC_URI="mirror://alsaproject/plugins/${P}.tar.bz2" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux" +IUSE="arcam_av debug ffmpeg jack libav libsamplerate +mix oss pulseaudio speex +usb_stream" + +RDEPEND=" + >=media-libs/alsa-lib-${PV}:=[${MULTILIB_USEDEP}] + ffmpeg? ( + libav? ( media-video/libav:= ) + !libav? ( media-video/ffmpeg:0= ) + ) + jack? ( virtual/jack[${MULTILIB_USEDEP}] ) + libsamplerate? ( >=media-libs/libsamplerate-0.1.8-r1:=[${MULTILIB_USEDEP}] ) + pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) + speex? ( + >=media-libs/speex-1.2.0:=[${MULTILIB_USEDEP}] + media-libs/speexdsp[${MULTILIB_USEDEP}] + ) +" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +src_prepare() { + default + + # For some reasons the polyp/pulse plugin does fail with alsaplayer with a + # failed assert. As the code works just fine with asserts disabled, for now + # disable them waiting for a better solution. + sed -i \ + -e '/AM_CFLAGS/s:-Wall:-DNDEBUG -Wall:' \ + pulse/Makefile.am || die + + eautoreconf +} + +multilib_src_configure() { + use debug || append-cppflags -DNDEBUG + + local myeconfargs=( + # default does not contain $prefix: bug #673464 + --with-alsalconfdir="${EPREFIX}"/etc/alsa/conf.d + + --with-speex="$(usex speex lib no)" + $(use_enable arcam_av arcamav) + $(use_enable ffmpeg libav) + $(use_enable jack) + $(use_enable libsamplerate samplerate) + $(use_enable mix) + $(use_enable oss) + $(use_enable pulseaudio) + $(use_enable speex speexdsp) + $(use_enable usb_stream usbstream) + ) + ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" +} + +multilib_src_install_all() { + einstalldocs + + cd doc || die + dodoc upmix.txt vdownmix.txt README-pcm-oss + use jack && dodoc README-jack + use libsamplerate && dodoc samplerate.txt + use ffmpeg && dodoc lavrate.txt a52.txt + + if use pulseaudio; then + dodoc README-pulse + # install ALSA configuration files + # making PA to be used by alsa clients + insinto /usr/share/alsa + doins "${FILESDIR}"/pulse-default.conf + insinto /usr/share/alsa/alsa.conf.d + doins "${FILESDIR}"/51-pulseaudio-probe.conf + # bug #410261, comment 5+ + # seems to work fine without any path + sed -i \ + -e "s:/usr/lib/alsa-lib/::" \ + "${ED%/}"/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf || die #410261 + dosym "${ED%/}"/usr/share/alsa/alsa.conf.d/51-pulseaudio-probe.conf \ + /etc/alsa/conf.d/51-pulseaudio-probe.conf #670960 + fi + + find "${ED}" \( -name '*.a' -o -name '*.la' \) -delete || die +} + +pkg_postinst() { + if use pulseaudio; then + einfo "The PulseAudio device is now set as the default device if the" + einfo "PulseAudio server is found to be running. Any custom" + einfo "configuration in /etc/asound.conf or ~/.asoundrc for this" + einfo "purpose should now be unnecessary." + fi +} |