media-plugins/alsa-sndio: Make it multilib

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
Haelwenn (lanodan) Monnier
2021-06-26 12:45:33 +02:00
parent d7720f353a
commit 84483a2d18

View File

@@ -1,8 +1,10 @@
# Copyright 2020 Gentoo Authors # Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI=7 EAPI=7
inherit multilib-minimal
DESCRIPTION="ALSA PCM to play audio on sndio servers" DESCRIPTION="ALSA PCM to play audio on sndio servers"
HOMEPAGE="https://github.com/Duncaen/alsa-sndio" HOMEPAGE="https://github.com/Duncaen/alsa-sndio"
SRC_URI="https://github.com/Duncaen/alsa-sndio/archive/${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/Duncaen/alsa-sndio/archive/${PV}.tar.gz -> ${P}.tar.gz"
@@ -11,22 +13,26 @@ SLOT="0"
KEYWORDS="~amd64" KEYWORDS="~amd64"
DEPEND=" DEPEND="
media-libs/alsa-lib media-libs/alsa-lib[${MULTILIB_USEDEP}]
media-sound/sndio:= media-sound/sndio:=[${MULTILIB_USEDEP}]
" "
RDEPEND="${DEPEND}" RDEPEND="${DEPEND}"
src_prepare() { src_prepare() {
default fix_libdir() {
sed -i "s;/lib/alsa-lib/;/$(get_libdir)/alsa-lib/;" "${BUILD_DIR}/Makefile" || die "Failed changing libdir"
}
sed -i "s;/lib/alsa-lib/;/$(get_libdir)/alsa-lib/;" Makefile || die "Failed changing libdir" default
multilib_copy_sources
multilib_foreach_abi fix_libdir
} }
src_compile() { multilib_src_compile() {
emake CC="${CC:-gcc}" emake CC="${CC:-gcc}"
} }
src_install() { multilib_src_install() {
export PREFIX="/usr" export PREFIX="/usr"
default default