summaryrefslogtreecommitdiff
blob: 7e7ac7ed020f9054ff5e2be1d1d19a1a9c59d692 (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/simplecdrx/simplecdrx-1.3.2.ebuild,v 1.12 2006/01/15 02:59:22 metalgod Exp $

inherit eutils

DESCRIPTION="CD ripping/mastering"
HOMEPAGE="http://ogre.rocky-road.net/cdr.shtml"
SRC_URI="http://ogre.rocky-road.net/files/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc"
IUSE=""

#todo: add blade encoder
DEPEND="media-sound/madplay
	app-cdr/cdrtools
	app-cdr/cdrdao
	media-sound/cdparanoia
	media-sound/lame
	media-libs/libogg
	media-libs/libvorbis
	virtual/mpg123
	=x11-libs/gtk+-1.2*
	dev-libs/glib
	media-libs/libao"

src_unpack() {
	unpack ${A}
	cd ${S}

	epatch ${FILESDIR}/${PV}-gcc34.patch
}

src_compile() {
	sed -i -e 's:/usr/local/share:/usr/share:g' src/main.c.orig
	econf || die "econf failed"
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	doman man/simplecdrx.1

	insinto /usr/share/pixmaps
	doins pixmaps/simplecdr.xpm ${FILESDIR}/simplecdrx.png

	# Add the menu entry
	insinto /usr/share/applications/
	doins ${FILESDIR}/simplecdrx.desktop

	dodoc AUTHORS ChangeLog INSTALL README
}