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-sound/jack-audio-connection-kit/jack-audio-connection-kit-0.99.0-r1.ebuild (-2 / +52 lines)
Lines 4-10 Link Here
4
4
5
IUSE="altivec alsa caps doc debug jack-tmpfs oss portaudio"
5
IUSE="altivec alsa caps doc debug jack-tmpfs oss portaudio"
6
6
7
inherit flag-o-matic eutils
7
inherit flag-o-matic eutils multilib
8
8
9
DESCRIPTION="A low-latency audio server"
9
DESCRIPTION="A low-latency audio server"
10
HOMEPAGE="http://jackit.sourceforge.net/"
10
HOMEPAGE="http://jackit.sourceforge.net/"
Lines 36-44 Link Here
36
		epatch ${FILESDIR}/${PN}-0.98.1-configure.patch && WANT_AUTOCONF=2.5 autoconf \
36
		epatch ${FILESDIR}/${PN}-0.98.1-configure.patch && WANT_AUTOCONF=2.5 autoconf \
37
			|| die
37
			|| die
38
	fi
38
	fi
39
40
	if use amd64 && has_multilib_profile; then
41
		cp -ar ${S} ${S}-x86
42
		mv ${S} ${S}-amd64
43
	fi
39
}
44
}
40
45
41
src_compile() {
46
src_compile() {
47
	if use amd64 && has_multilib_profile; then
48
		local OPWD=${PWD}
49
		local OABI=${ABI}
50
		local OLDFLAGS="${LDFLAGS}"
51
		cd ${S}-x86
52
		ABI="x86"
53
		LDFLAGS="${OLDFLAGS} -L/usr/lib32"
54
		src_compile-multi --libdir=/usr/lib32
55
		cd ${S}-amd64
56
		ABI="amd64"
57
		LDFLAGS="${OLDFLAGS}"
58
		src_compile-multi --libdir=/usr/lib64
59
		ABI=${OABI}
60
		cd ${OPWD}
61
		unset OLDFLAGS
62
		unset OPWD
63
		unset OABI
64
	else
65
		src_compile-multi
66
	fi
67
}
68
69
src_compile-multi() {
42
	local myconf
70
	local myconf
43
	local myarch
71
	local myarch
44
72
Lines 60-70 Link Here
60
88
61
	myconf="${myconf} `use_enable altivec` `use_enable alsa` `use_enable oss` `use_enable portaudio`"
89
	myconf="${myconf} `use_enable altivec` `use_enable alsa` `use_enable oss` `use_enable portaudio`"
62
90
63
	econf ${myconf} || die "configure failed"
91
	econf ${1} ${myconf} || die "configure failed"
64
	emake || die "compilation failed"
92
	emake || die "compilation failed"
65
}
93
}
66
94
67
src_install() {
95
src_install() {
96
	if use amd64 && has_multilib_profile; then
97
		local OPWD=${PWD}
98
		local OABI=${ABI}
99
		cd ${S}-x86
100
		ABI="x86"
101
		src_install-multi
102
		cd ${S}-amd64
103
		ABI="amd64"
104
		src_install-multi
105
		ABI=${OABI}
106
		cd ${OPWD}
107
		unset OPWD
108
		unset OABI
109
	else
110
		src_install-multi
111
	fi
112
	src_install-doc
113
}
114
115
src_install-multi() {
68
	make DESTDIR=${D} \
116
	make DESTDIR=${D} \
69
		datadir=${D}/usr/share \
117
		datadir=${D}/usr/share \
70
		install || die
118
		install || die
Lines 73-79 Link Here
73
		keepdir /var/run/jack
121
		keepdir /var/run/jack
74
		chmod 4777 ${D}/var/run/jack
122
		chmod 4777 ${D}/var/run/jack
75
	fi
123
	fi
124
}
76
125
126
src_install_doc() {
77
	if use doc; then
127
	if use doc; then
78
		mv ${D}/usr/share/doc/${PF}/reference/html \
128
		mv ${D}/usr/share/doc/${PF}/reference/html \
79
		   ${D}/usr/share/doc/${PF}/
129
		   ${D}/usr/share/doc/${PF}/

Return to bug 83800