Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 82847
Collapse All | Expand All

(-)/usr/portage/media-sound/sox/sox-12.17.7.ebuild (-12 / +6 lines)
Lines 17-23 Link Here
17
DEPEND="virtual/libc
17
DEPEND="virtual/libc
18
	encode? ( media-sound/lame )
18
	encode? ( media-sound/lame )
19
	oggvorbis? ( media-libs/libvorbis )
19
	oggvorbis? ( media-libs/libvorbis )
20
	mad? ( media-sound/madplay )
20
	mad? ( media-libs/libmad )
21
	alsa? ( media-libs/alsa-lib )"
21
	alsa? ( media-libs/alsa-lib )"
22
22
23
src_unpack() {
23
src_unpack() {
Lines 32-52 Link Here
32
}
32
}
33
33
34
src_compile () {
34
src_compile () {
35
	# from version 12.17.4 sox has mp3 encoding/decoding if you have madlibs 
36
	# and lame using alsa by default
37
	local myconf
38
39
	# Fixes wav segfaults. See Bug #35745.
35
	# Fixes wav segfaults. See Bug #35745.
40
	append-flags -fsigned-char
36
	append-flags -fsigned-char
41
37
42
	myconf="${myconf} `use_enable oggvorbis ogg-vorbis`"
43
	myconf="${myconf} `use_enable mad`"
44
	myconf="${myconf} `use_enable encode lame`"
45
#	myconf="${myconf} `use_enable oss oss-dsp`"
46
	myconf="${myconf} --enable-oss-dsp"
47
	myconf="${myconf} `use_enable alsa alsa-dsp`"
48
49
	econf ${myconf} \
38
	econf ${myconf} \
39
		$(use_enable oggvorbis ogg-vorbis) \
40
		$(use_enable mad) \
41
		$(use_enable encode lame) \
42
		$(use_enable alsa alsa-dsp) \
43
		--enable-oss-dsp \
50
		--enable-fast-ulaw \
44
		--enable-fast-ulaw \
51
		--enable-fast-alaw || die "configure failed"
45
		--enable-fast-alaw || die "configure failed"
52
	emake || die "make failed"
46
	emake || die "make failed"

Return to bug 82847