blob: ecedf215c67d03952fee93d13707276c235847e1 (
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-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-driver/alsa-driver-0.5.9a-r1.ebuild,v 1.2 2000/08/16 04:38:09 drobbins Exp $
P=alsa-driver-0.5.9a
A=${P}.tar.bz2
S=${WORKDIR}/${P}
DESCRIPTION="Advanced Linux Sound Architecture / Drivers"
SRC_URI="ftp://ftp.alsa-project.org/pub/driver/"${A}
HOMEPAGE="http://www.alsa-project.org/"
src_unpack() {
unpack ${A}
}
src_compile() {
cd ${S}
./configure --host=${CHOST} --prefix=/usr \
--with-kernel=${WORKDIR}/../../../sys-kernel/linux-UP-2.2.17p13/work/linux \
--with-moddir=/lib/modules/2.2.17pre13-RAID/misc \
--with-isapnp=yes --with-sequencer=yes --with-oss=yes
make
}
src_install() {
cd ${S}
into /usr
dosbin snddevices
insinto /lib/modules/2.2.17pre13-RAID/misc
doins modules/*.o
insinto /usr/src/linux/include/linux
for i in asound asoundid asequencer ainstr_simple ainstr_gf1 ainstr_iw
do
doins include/$i.h
done
insinto /etc/rc.d/init.d
doins utils/alsasound
dodoc COPYING FAQ README WARNING doc/README.1st doc/SOUNDCARDS
}
pkg_postinst() {
. /etc/rc.d/config/functions
if [ "${ROOT}" = "/" ] ; then
einfo "Creating sounddevices..."
/usr/sbin/snddevices
fi
}
|