summaryrefslogtreecommitdiff
blob: 0df7894b921c6a0825bce9df199d3fc19f65e29d (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/ssrc/ssrc-1.30.ebuild,v 1.5 2009/06/30 08:31:18 fauli Exp $

EAPI=2
inherit eutils flag-o-matic toolchain-funcs

DESCRIPTION="A fast and high quality sampling rate converter"
HOMEPAGE="http://shibatch.sourceforge.net"
SRC_URI="http://shibatch.sf.net/download/${P}.tgz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""

RDEPEND=""
DEPEND="app-arch/unzip"

src_prepare() {
	epatch "${FILESDIR}"/${P}-makefile.patch
}

src_compile() {
	use sparc && append-cflags -DBIGENDIAN
	tc-export CC
	emake || die "emake failed"
}

src_install() {
	dobin ssrc{,_hp} || die "dobin failed"
	dodoc {history,ssrc}.txt
}