mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
media-plugins/alsa-sndio: Make it multilib
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# Copyright 2020 Gentoo Authors
|
||||
# Copyright 2020-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit multilib-minimal
|
||||
|
||||
DESCRIPTION="ALSA PCM to play audio on sndio servers"
|
||||
HOMEPAGE="https://github.com/Duncaen/alsa-sndio"
|
||||
SRC_URI="https://github.com/Duncaen/alsa-sndio/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
@@ -11,22 +13,26 @@ SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DEPEND="
|
||||
media-libs/alsa-lib
|
||||
media-sound/sndio:=
|
||||
media-libs/alsa-lib[${MULTILIB_USEDEP}]
|
||||
media-sound/sndio:=[${MULTILIB_USEDEP}]
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multilib_src_install() {
|
||||
export PREFIX="/usr"
|
||||
|
||||
default
|
||||
|
||||
Reference in New Issue
Block a user