summaryrefslogtreecommitdiff
blob: 5569fed8c6b04ec853c01accf2eef7b1b5952580 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/mp3splt/mp3splt-2.1.ebuild,v 1.3 2005/04/15 03:35:13 geoman Exp $

IUSE="oggvorbis"

DESCRIPTION="A command line utility to split mp3 and ogg files"
HOMEPAGE="http://mp3splt.sourceforge.net/"
SRC_URI="mirror://sourceforge/mp3splt/${P}-src.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~alpha ~amd64 ~hppa -mips ~ppc ~sparc ~x86"

DEPEND="oggvorbis? ( media-libs/libogg
	             media-libs/libvorbis )
	media-libs/libmad"

src_compile() {
	local myconf

	# --enable-ogg doesn't enable ogg...
	use oggvorbis || myconf="--disable-ogg"
	econf ${myconf} || die "econf failed"

	emake || die "build failed"
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc AUTHORS ChangeLog NEWS README
}