summaryrefslogtreecommitdiff
blob: 608e137b9e6167592e14c3ba3281511f4ac00a31 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/vorbisgain/vorbisgain-0.32-r1.ebuild,v 1.5 2004/06/25 00:28:15 agriffis Exp $

inherit eutils

IUSE=""

DESCRIPTION="vorbisgain calculates a percieved sound level of an Ogg Vorbis file using the ReplayGain algorithm and stores it in the file header"
HOMEPAGE="http://sjeng.sourceforge.net/ftp/vorbis/"
SRC_URI="http://sjeng.sourceforge.net/ftp/vorbis/${P}.zip"

LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~x86"

DEPEND=">=media-libs/libvorbis-1.0_beta4
	app-arch/unzip"

S="${WORKDIR}/${P}"

src_unpack() {
	unpack ${P}.zip
	cd ${S}

	cp Makefile.am Makefile.am~
	sed -e s\/"mandir = @MANDIR@"\/"mandir = @mandir@"/ Makefile.am~ > Makefile.am

	cp Makefile.in Makefile.in~
	sed -e s\/"mandir = @MANDIR@"\/"mandir = @mandir@"/ Makefile.in~ > Makefile.in

	# patch to fix for 48khz files
	epatch ${FILESDIR}/${P}-48k.patch
}

src_compile() {
	econf || die
	emake || die
}

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