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-lib/alsa-lib-1.0.8.ebuild (-2 / +47 lines)
Lines 4-10 Link Here
4
4
5
IUSE="jack doc"
5
IUSE="jack doc"
6
6
7
inherit eutils
7
inherit eutils multilib
8
8
9
MY_P="${P/_rc/rc}"
9
MY_P="${P/_rc/rc}"
10
S="${WORKDIR}/${MY_P}"
10
S="${WORKDIR}/${MY_P}"
Lines 29-43 Link Here
29
	unpack ${A}
29
	unpack ${A}
30
	cd ${S}
30
	cd ${S}
31
	epatch ${FILESDIR}/${P}-gcc4.patch
31
	epatch ${FILESDIR}/${P}-gcc4.patch
32
	if use amd64 && has_multilib_profile; then
33
		cp -ar ${S} ${S}-x86
34
		mv ${S} ${S}-amd64
35
	fi
32
}
36
}
33
37
34
src_compile() {
38
src_compile() {
39
	if use amd64 && has_multilib_profile; then
40
		local OPWD=${PWD}
41
		local OABI=${ABI}
42
		cd ${S}-x86
43
		ABI="x86"
44
		src_compile-multi --libdir=/usr/lib32
45
		cd ${S}-amd64
46
		ABI="amd64"
47
		src_compile-multi --libdir=/usr/lib64
48
		ABI=${OABI}
49
		cd ${OPWD}
50
		unset OPWD
51
		unset OABI
52
	else
53
		src_compile-multi
54
	fi
55
}
56
57
src_compile-multi() {
35
	local myconf=""
58
	local myconf=""
36
59
37
	# needed to avoid gcc looping internaly
60
	# needed to avoid gcc looping internaly
38
	use hppa && export CFLAGS="-O1 -pipe"
61
	use hppa && export CFLAGS="-O1 -pipe"
39
62
40
	econf --enable-static=yes --enable-shared=yes || die
63
	econf ${1} --enable-static=yes --enable-shared=yes || die
41
	emake || die
64
	emake || die
42
65
43
	if use doc; then
66
	if use doc; then
Lines 46-53 Link Here
46
}
69
}
47
70
48
src_install() {
71
src_install() {
72
	if use amd64 && has_multilib_profile; then
73
		local OPWD=${PWD}
74
		local OABI=${ABI}
75
		cd ${S}-x86
76
		ABI="x86"
77
		src_install-multi
78
		cd ${S}-amd64
79
		ABI="amd64"
80
		src_install-multi
81
		ABI=${OABI}
82
		cd ${OPWD}
83
		unset OPWD
84
		unset OABI
85
	else
86
		src_install-multi
87
	fi
88
	src_install-doc
89
}
90
91
src_install-multi() {
49
	make DESTDIR="${D}" install || die "make install failed"
92
	make DESTDIR="${D}" install || die "make install failed"
93
}
50
94
95
src_install-doc() {
51
	dodoc ChangeLog COPYING TODO
96
	dodoc ChangeLog COPYING TODO
52
	use doc && dohtml -r doc/doxygen/html/*
97
	use doc && dohtml -r doc/doxygen/html/*
53
}
98
}

Return to bug 83800