summaryrefslogtreecommitdiff
blob: 080f26dd210eed63fa2cb8587aaf3876a59ab82d (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-utils/alsa-utils-0.5.8-r1.ebuild,v 1.1 2000/08/08 13:26:23 achim Exp $

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

src_unpack() {
  unpack ${A}
}

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

}

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}
  make DESTDIR=${D} install
  dodoc ChangeLog COPYING README
  newdoc alsamixer/README README.alsamixer
  dodoc seq/aconnect/README* seq/aseqnet/README*
  prepman
}