diff options
author | Igor V. Kovalenko <igor.v.kovalenko@gmail.com> | 2022-02-13 22:00:43 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-08 13:32:15 +0000 |
commit | f03d58087e4fcf3c6b36820ce399477316dbec01 (patch) | |
tree | fe1ac75aec0b7d767aa535d0d607ad64c5e6e06d | |
parent | media-libs/libldac: Change to multilib build (diff) | |
download | gentoo-f03d58087e4fcf3c6b36820ce399477316dbec01.tar.gz gentoo-f03d58087e4fcf3c6b36820ce399477316dbec01.tar.bz2 gentoo-f03d58087e4fcf3c6b36820ce399477316dbec01.zip |
media-libs/libopenaptx: Change to multilib build
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | media-libs/libopenaptx/libopenaptx-0.2.0-r1.ebuild (renamed from media-libs/libopenaptx/libopenaptx-0.2.0.ebuild) | 15 | ||||
-rw-r--r-- | media-libs/libopenaptx/libopenaptx-0.2.1-r1.ebuild (renamed from media-libs/libopenaptx/libopenaptx-0.2.1.ebuild) | 15 |
2 files changed, 22 insertions, 8 deletions
diff --git a/media-libs/libopenaptx/libopenaptx-0.2.0.ebuild b/media-libs/libopenaptx/libopenaptx-0.2.0-r1.ebuild index 4a08c59202ca..84aea87a2a3f 100644 --- a/media-libs/libopenaptx/libopenaptx-0.2.0.ebuild +++ b/media-libs/libopenaptx/libopenaptx-0.2.0-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit flag-o-matic toolchain-funcs +inherit flag-o-matic multilib-minimal toolchain-funcs DESCRIPTION="Reverse-engineered aptX and aptX HD library" HOMEPAGE="https://github.com/pali/libopenaptx" @@ -21,7 +21,14 @@ SLOT="0" IUSE="cpu_flags_x86_avx2" -src_compile() { +src_prepare() { + default + + # custom Makefiles + multilib_copy_sources +} + +multilib_src_compile() { tc-export CC AR use cpu_flags_x86_avx2 && append-cflags "-mavx2" @@ -35,7 +42,7 @@ src_compile() { all } -src_install() { +multilib_src_install() { emake \ PREFIX="${EPREFIX}"/usr \ DESTDIR="${D}" \ diff --git a/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild b/media-libs/libopenaptx/libopenaptx-0.2.1-r1.ebuild index 41f077aff4f5..e33fdfe55cac 100644 --- a/media-libs/libopenaptx/libopenaptx-0.2.1.ebuild +++ b/media-libs/libopenaptx/libopenaptx-0.2.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit flag-o-matic toolchain-funcs +inherit flag-o-matic multilib-minimal toolchain-funcs DESCRIPTION="Reverse-engineered aptX and aptX HD library" HOMEPAGE="https://github.com/pali/libopenaptx" @@ -21,7 +21,14 @@ SLOT="0" IUSE="cpu_flags_x86_avx2" -src_compile() { +src_prepare() { + default + + # custom Makefiles + multilib_copy_sources +} + +multilib_src_compile() { tc-export CC AR use cpu_flags_x86_avx2 && append-cflags "-mavx2" @@ -35,7 +42,7 @@ src_compile() { all } -src_install() { +multilib_src_install() { emake \ PREFIX="${EPREFIX}"/usr \ DESTDIR="${D}" \ |