diff options
author | 2022-09-09 09:59:17 +0200 | |
---|---|---|
committer | 2022-09-09 09:59:17 +0200 | |
commit | a643032bc13beea96456815a82d9fedb08a41354 (patch) | |
tree | 5d2cc3f9c0e0c4affe36db31b171b8e42e9e7c30 /media-sound/dcadec/dcadec-0.2.0-r1.ebuild | |
parent | media-libs/theoraplay: drop multilib (diff) | |
download | gentoo-a643032bc13beea96456815a82d9fedb08a41354.tar.gz gentoo-a643032bc13beea96456815a82d9fedb08a41354.tar.bz2 gentoo-a643032bc13beea96456815a82d9fedb08a41354.zip |
media-sound/dcadec: drop multilib
No multilib reverse dependencies.
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/dcadec/dcadec-0.2.0-r1.ebuild')
-rw-r--r-- | media-sound/dcadec/dcadec-0.2.0-r1.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/media-sound/dcadec/dcadec-0.2.0-r1.ebuild b/media-sound/dcadec/dcadec-0.2.0-r1.ebuild new file mode 100644 index 000000000000..25cacefab500 --- /dev/null +++ b/media-sound/dcadec/dcadec-0.2.0-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="DTS Coherent Acoustics decoder with support for HD extensions" +HOMEPAGE="https://github.com/foo86/dcadec" +SRC_URI="https://github.com/foo86/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~mips x86" + +PATCHES=( "${FILESDIR}"/${P}-respect-CFLAGS.patch ) + +src_configure() { + tc-export AR CC + + # Build shared libs + echo 'CONFIG_SHARED=1' >> .config || die +} + +src_compile() { + PREFIX="${EPREFIX}"/usr LIBDIR="${EPREFIX}"/usr/$(get_libdir) \ + emake -f "${S}"/Makefile all +} + +src_install() { + PREFIX="${EPREFIX}"/usr LIBDIR="${EPREFIX}"/usr/$(get_libdir) \ + emake -f "${S}"/Makefile DESTDIR="${D}" install + + # Rename the executable since it conflicts with libdca. + mv "${ED}"/usr/bin/dcadec{,-new} || die + + dodoc CHANGELOG.md README.md +} |