Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 83800 | Differences between
and this patch

Collapse All | Expand All

(-)media-libs/alsa-oss/alsa-oss-1.0.8.ebuild (-1 / +54 lines)
Lines 4-9 Link Here
4
4
5
IUSE=""
5
IUSE=""
6
6
7
inherit multilib
8
7
MY_P=${P/_rc/rc}
9
MY_P=${P/_rc/rc}
8
S=${WORKDIR}/${MY_P}
10
S=${WORKDIR}/${MY_P}
9
11
Lines 16-23 Link Here
16
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
18
KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
17
19
18
DEPEND="virtual/libc
20
DEPEND="virtual/libc
19
	>=media-libs/alsa-lib-1.0"
21
	>=media-libs/alsa-lib-1.0
22
	!<app-emulation/emul-linux-x86-soundlibs-1000"
23
24
src_unpack() {
25
	unpack ${A}
26
	if use amd64 && has_multilib_profile; then
27
		cp -ar ${S} ${S}-x86
28
		mv ${S} ${S}-amd64
29
	fi
30
}
31
32
src_compile() {
33
	if use amd64 && has_multilib_profile; then
34
		local OABI=${ABI}
35
		local OPWD=$PWD
36
		ABI="x86"
37
		cd ${S}-x86
38
		econf --libdir=/usr/lib32 --with-alsa-prefix=/usr/lib32
39
		emake
40
		ABI="amd64"
41
		cd ${S}-amd64
42
		econf --libdir=/usr/lib64
43
		emake
44
		ABI=${OABI}
45
		cd ${OPWD}
46
		unset OABI
47
		unset OPWD
48
	else
49
		econf
50
		emake
51
	fi
52
}
20
53
21
src_install() {
54
src_install() {
55
	if use amd64 && has_multilib_profile; then
56
		local OABI=${ABI}
57
		local OPWD=$PWD
58
		ABI="x86"
59
		cd ${S}-x86
60
		src_install-multi
61
		mv ${D}/usr/bin/aoss{,32}
62
		ABI="amd64"
63
		cd ${S}-amd64
64
		src_install-multi
65
		ABI=${OABI}
66
		cd ${OPWD}
67
		unset OABI
68
		unset OPWD
69
	else
70
		src_install-multi
71
	fi
72
}
73
74
src_install-multi() {
22
	make DESTDIR="${D}" install || die
75
	make DESTDIR="${D}" install || die
23
}
76
}

Return to bug 83800