summaryrefslogtreecommitdiff
blob: 20c017a38d3aeccb2e0481b1a52a666afb914fda (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/alsa-utils-0.5.10.ebuild,v 1.6 2002/07/11 06:30:40 drobbins Exp $

A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Advanced Linux Sound Architecture / Utils"
SRC_URI="ftp://ftp.alsa-project.org/pub/utils/"${A}
HOMEPAGE="http://www.alsa-project.org/"

DEPEND="virtual/glibc
	>=sys-libs/ncurses-5.1
	>=media-libs/alsa-lib-0.5.10"

src_compile() {
	./configure --host=${CHOST} --prefix=/usr || die
	make || die
}

src_install() {
	cd ${S}/aplay
	cd aplay
	cp Makefile Makefile.orig
	sed -e "s:cd \$(bindir):cd \$(DESTDIR)\$(bindir):" \
	sed -e "s:cd \$(mandir):cd \$(DESTDIR)\$(mandir):" \
	Makefile.orig > Makefile
	cd ${S}
	try make DESTDIR=${D} install
	dodoc ChangeLog COPYING README
	newdoc alsamixer/README README.alsamixer
	dodoc seq/aconnect/README* seq/aseqnet/README*

	exeinto /etc/rc.d/init.d
	newexe ${FILESDIR}/alsa.rc5 alsa
}

pkg_postinst() {
	:;
	#this will configure alsa to restore and save settings correctly
	#${ROOT}/usr/sbin/rc-update add alsa	
}