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 / +53 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 18-23 Link Here
18
	dev-libs/glib
18
	dev-libs/glib
19
	dev-util/pkgconfig
19
	dev-util/pkgconfig
20
	sys-libs/ncurses
20
	sys-libs/ncurses
21
	amd64? ( >=app-emulation/emul-linux-x86-soundlibs )
21
	!ppc64? ( !alpha? ( !ia64? ( portaudio? ( media-libs/portaudio ) ) ) )
22
	!ppc64? ( !alpha? ( !ia64? ( portaudio? ( media-libs/portaudio ) ) ) )
22
	!sparc? ( alsa? ( >=media-libs/alsa-lib-0.9.1 ) )
23
	!sparc? ( alsa? ( >=media-libs/alsa-lib-0.9.1 ) )
23
	caps? ( sys-libs/libcap )
24
	caps? ( sys-libs/libcap )
Lines 36-44 Link Here
36
		epatch ${FILESDIR}/${PN}-0.98.1-configure.patch && WANT_AUTOCONF=2.5 autoconf \
37
		epatch ${FILESDIR}/${PN}-0.98.1-configure.patch && WANT_AUTOCONF=2.5 autoconf \
37
			|| die
38
			|| die
38
	fi
39
	fi
40
41
	if use amd64 && has_multilib_profile; then
42
		cp -ar ${S} ${S}-x86
43
		mv ${S} ${S}-amd64
44
	fi
39
}
45
}
40
46
41
src_compile() {
47
src_compile() {
48
	if use amd64 && has_multilib_profile; then
49
		local OPWD=${PWD}
50
		local OABI=${ABI}
51
		local OLDFLAGS="${LDFLAGS}"
52
		cd ${S}-x86
53
		ABI="x86"
54
		LDFLAGS="${OLDFLAGS} -L/usr/lib32"
55
		src_compile-multi --libdir=/usr/lib32
56
		cd ${S}-amd64
57
		ABI="amd64"
58
		LDFLAGS="${OLDFLAGS}"
59
		src_compile-multi --libdir=/usr/lib64
60
		ABI=${OABI}
61
		cd ${OPWD}
62
		unset OLDFLAGS
63
		unset OPWD
64
		unset OABI
65
	else
66
		src_compile-multi
67
	fi
68
}
69
70
src_compile-multi() {
42
	local myconf
71
	local myconf
43
	local myarch
72
	local myarch
44
73
Lines 60-70 Link Here
60
89
61
	myconf="${myconf} `use_enable altivec` `use_enable alsa` `use_enable oss` `use_enable portaudio`"
90
	myconf="${myconf} `use_enable altivec` `use_enable alsa` `use_enable oss` `use_enable portaudio`"
62
91
63
	econf ${myconf} || die "configure failed"
92
	econf ${1} ${myconf} || die "configure failed"
64
	emake || die "compilation failed"
93
	emake || die "compilation failed"
65
}
94
}
66
95
67
src_install() {
96
src_install() {
97
	if use amd64 && has_multilib_profile; then
98
		local OPWD=${PWD}
99
		local OABI=${ABI}
100
		cd ${S}-x86
101
		ABI="x86"
102
		src_install-multi
103
		cd ${S}-amd64
104
		ABI="amd64"
105
		src_install-multi
106
		ABI=${OABI}
107
		cd ${OPWD}
108
		unset OPWD
109
		unset OABI
110
	else
111
		src_install-multi
112
	fi
113
	src_install-doc
114
}
115
116
src_install-multi() {
68
	make DESTDIR=${D} \
117
	make DESTDIR=${D} \
69
		datadir=${D}/usr/share \
118
		datadir=${D}/usr/share \
70
		install || die
119
		install || die
Lines 73-79 Link Here
73
		keepdir /var/run/jack
122
		keepdir /var/run/jack
74
		chmod 4777 ${D}/var/run/jack
123
		chmod 4777 ${D}/var/run/jack
75
	fi
124
	fi
125
}
76
126
127
src_install_doc() {
77
	if use doc; then
128
	if use doc; then
78
		mv ${D}/usr/share/doc/${PF}/reference/html \
129
		mv ${D}/usr/share/doc/${PF}/reference/html \
79
		   ${D}/usr/share/doc/${PF}/
130
		   ${D}/usr/share/doc/${PF}/

Return to bug 83800