summaryrefslogtreecommitdiff
blob: ef8403f89f8fba7153f91e06f224e974bcf709a7 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/streamixer/streamixer-1.19.0.ebuild,v 1.8 2005/09/04 10:53:23 flameeyes Exp $

IUSE=""

DESCRIPTION="Various audio stream handling tools (non-interactive)"
HOMEPAGE="http://bisqwit.iki.fi/source/streamixer.html"
SRC_URI="http://bisqwit.iki.fi/src/arch/${P}.tar.bz2"

#-sparc: 1.19.0: bad assembly
KEYWORDS="x86 amd64 -sparc"
LICENSE="GPL-2"
SLOT="0"

RDEPEND="virtual/libc"
DEPEND="sys-apps/sed"

INSTALLPROGS="resample mixer mixwrite mixeridle ecat hum mixerscript"

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

	sed -i \
		-e "s:BINDIR=/usr/local/bin:BINDIR=${D}usr/bin:" \
		-e "s:^\\(ARGHLINK.*-L.*\\):#\\1:" \
		-e "s:^#\\(ARGHLINK=.*a\\)$:\\1:" \
		-e "s:\$(CXX):\$(CXX) \$(CXXFLAGS) -I${S}/argh:g" \
		Makefile

	sed -i \
		-e 's:CPPFLAGS=:CPPFLAGS=-I/var/tmp/portage/erec-2.2.0.1/work/erec-2.2.0.1/argh :' \
		Makefile.sets

	echo "" > .depend
	echo "" > argh/.depend
}

src_compile() {
	emake -j1 -C argh libargh.a || die
	emake -j1 ${INSTALLPROGS} || die
}

src_install() {
	dobin ${INSTALLPROGS}
	dohard /usr/bin/mixwrite /usr/bin/mixmon
	dodoc README
	dohtml README.html
}