blob: f3313756b9151e8208ea13dd41ce8c042eb0cd77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbis-tools/vorbis-tools-1.0.1-r1.ebuild,v 1.5 2006/10/04 17:31:16 grobian Exp $
IUSE="nls flac speex"
inherit toolchain-funcs flag-o-matic autotools eutils
DESCRIPTION="tools for using the Ogg Vorbis sound file format"
HOMEPAGE="http://www.vorbis.com/"
SRC_URI="http://www.vorbis.com/files/${PV}/unix/${P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
RDEPEND=">=media-libs/libvorbis-1.0
>=media-libs/libao-0.8.2
>=net-misc/curl-7.9
speex? ( media-libs/speex )
flac? ( media-libs/flac )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-largefile.patch
eautoconf
}
src_compile() {
use hppa && [ "`gcc-fullversion`" == "3.3.2" ] && replace-flags -march=2.0 -march=1.0
local myconf
# --with-flac is not supported. See bug #49763
use flac || myconf="${myconf} --without-flac"
econf \
$(use_with speex) \
$(use_enable nls) \
${myconf} \
|| die
emake || die
}
src_install() {
make DESTDIR="${D}" install || die
rm -rf ${D}/usr/share/doc
dodoc AUTHORS README
docinto ogg123
dodoc ogg123/ogg123rc-example
}
|