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-r1.ebuild (-1 / +52 lines)
Lines 18-26 Link Here
18
KEYWORDS="~alpha amd64 ~ppc sparc x86"
18
KEYWORDS="~alpha amd64 ~ppc sparc x86"
19
19
20
DEPEND="virtual/libc
20
DEPEND="virtual/libc
21
	>=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
}
22
53
23
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() {
24
	make DESTDIR="${D}" install || die
75
	make DESTDIR="${D}" install || die
25
	dosed "s:/usr/$(get_libdir)/libaoss.so:libaoss.so:g" /usr/bin/aoss
76
	dosed "s:/usr/$(get_libdir)/libaoss.so:libaoss.so:g" /usr/bin/aoss
26
}
77
}

Return to bug 83800