summaryrefslogtreecommitdiff
blob: d543c7446d1e036915a2ed6f5795f90cda847e69 (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
51
52
53
54
# 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.9b.ebuild,v 1.2 2000/08/25 15:10:23 achim Exp $

P=alsa-driver-0.5.9b
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/"
#KERNEL="linux-UP-2.4.0_pre6"
#MODULES=2.4.0-test6/kernel/drivers/alsa/
KERNEL="linux-UP-2.2.17_pre13-r6"
MODULES="2.2.17pre13-RAID/misc/"

src_unpack() {
  unpack ${A}
}

src_compile() {                           
  cd ${S}
  ./configure --host=${CHOST} --prefix=/usr \
	--with-kernel=${WORKDIR}/../../${KERNEL}/work/linux \
	--with-moddir=/lib/modules/${MODULES} \
	--with-isapnp=yes --with-sequencer=yes --with-oss=yes
  make
}

src_install() {                               
  cd ${S}
  into /usr
  dosbin snddevices
  insinto /lib/modules/${MODULES}
  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
}