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 (+52 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 18-23 Link Here
18
DEPEND="virtual/libc
20
DEPEND="virtual/libc
19
	>=media-libs/alsa-lib-1.0"
21
	>=media-libs/alsa-lib-1.0"
20
22
23
src_unpack() {
24
	unpack ${A}
25
	if use amd64 && has_multilib_profile; then
26
		cp -ar ${S} ${S}-x86
27
		mv ${S} ${S}-amd64
28
	fi
29
}
30
31
src_compile() {
32
	if use amd64 && has_multilib_profile; then
33
		local OABI=${ABI}
34
		local OPWD=$PWD
35
		ABI="x86"
36
		cd ${S}-x86
37
		econf --libdir=/usr/lib32 --with-alsa-prefix=/usr/lib32
38
		emake
39
		ABI="amd64"
40
		cd ${S}-amd64
41
		econf --libdir=/usr/lib64
42
		emake
43
		ABI=${OABI}
44
		cd ${OPWD}
45
		unset OABI
46
		unset OPWD
47
	else
48
		econf
49
		emake
50
	fi
51
}
52
21
src_install() {
53
src_install() {
54
	if use amd64 && has_multilib_profile; then
55
		local OABI=${ABI}
56
		local OPWD=$PWD
57
		ABI="x86"
58
		cd ${S}-x86
59
		src_install-multi
60
		mv ${D}/usr/bin/aoss{,32}
61
		ABI="amd64"
62
		cd ${S}-amd64
63
		src_install-multi
64
		ABI=${OABI}
65
		cd ${OPWD}
66
		unset OABI
67
		unset OPWD
68
	else
69
		src_install-multi
70
	fi
71
}
72
73
src_install-multi() {
22
	make DESTDIR="${D}" install || die
74
	make DESTDIR="${D}" install || die
23
}
75
}

Return to bug 83800