summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>2022-02-14 21:44:57 +0300
committerSam James <sam@gentoo.org>2022-03-08 13:32:17 +0000
commitbba8613d14afbf44862902f028285bcee5fe1450 (patch)
tree2c3ca4715506e3ca99e1e3cc5b868840950613d8 /media-libs/libfreeaptx
parentmedia-libs/libopenaptx: Change to multilib build (diff)
downloadgentoo-bba8613d14afbf44862902f028285bcee5fe1450.tar.gz
gentoo-bba8613d14afbf44862902f028285bcee5fe1450.tar.bz2
gentoo-bba8613d14afbf44862902f028285bcee5fe1450.zip
media-libs/libfreeaptx: Change to multilib build
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libfreeaptx')
-rw-r--r--media-libs/libfreeaptx/libfreeaptx-0.1.1-r1.ebuild (renamed from media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild)15
1 files changed, 11 insertions, 4 deletions
diff --git a/media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild b/media-libs/libfreeaptx/libfreeaptx-0.1.1-r1.ebuild
index d27cd8ed1912..349cf9fa588b 100644
--- a/media-libs/libfreeaptx/libfreeaptx-0.1.1.ebuild
+++ b/media-libs/libfreeaptx/libfreeaptx-0.1.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 (fork of libopenaptx)"
HOMEPAGE="https://github.com/iamthehorker/libfreeaptx"
@@ -24,7 +24,14 @@ PATCHES=(
"${FILESDIR}"/${P}-fix-version.patch
)
-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"
@@ -38,7 +45,7 @@ src_compile() {
all
}
-src_install() {
+multilib_src_install() {
emake \
PREFIX="${EPREFIX}"/usr \
DESTDIR="${D}" \