diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-16 01:51:50 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-16 01:51:50 +0100 |
commit | 6144cd2e90f8e3623912112050c8d2025de44f0a (patch) | |
tree | bf6abe7c75cda0f602c2d522c905278a620a5cbf /media-sound/mpg321/mpg321-0.3.2-r1.ebuild | |
parent | ca144cbf71b2faf598564847378fa40a0090d67c (diff) |
gentoo auto-resync : 16:10:2022 - 01:51:50
Diffstat (limited to 'media-sound/mpg321/mpg321-0.3.2-r1.ebuild')
-rw-r--r-- | media-sound/mpg321/mpg321-0.3.2-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/media-sound/mpg321/mpg321-0.3.2-r1.ebuild b/media-sound/mpg321/mpg321-0.3.2-r1.ebuild new file mode 100644 index 000000000000..689440e6caa4 --- /dev/null +++ b/media-sound/mpg321/mpg321-0.3.2-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit autotools + +DESCRIPTION="A realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3" +HOMEPAGE="http://mpg321.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}.orig.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="alsa" + +RDEPEND="app-eselect/eselect-mpg123 + >=media-libs/libao-1:= + media-libs/libid3tag:= + media-libs/libmad + sys-libs/zlib + alsa? ( media-libs/alsa-lib )" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}-orig + +PATCHES=( + "${FILESDIR}/${PN}-0.2.12-check-for-lround.patch" + "${FILESDIR}/${P}-format-security.patch" + "${FILESDIR}/${P}-CVE-2019-14247.patch" + "${FILESDIR}/${P}-gcc10.patch" + "${FILESDIR}/${P}-clang16.patch" +) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + econf \ + --disable-mpg123-symlink \ + --enable-ipv6 \ + $(use_enable alsa) +} + +src_install() { + emake DESTDIR="${D}" install + dodoc AUTHORS BUGS HACKING README* THANKS TODO # NEWS and ChangeLog are dead + mv "${ED}"/usr/bin/mpg321{,-mpg123} +} + +pkg_postinst() { + eselect mpg123 update ifunset +} + +pkg_postrm() { + eselect mpg123 update ifunset +} |