Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248 - alsa-driver-0.9.0_beta10.ebuild
Summary: alsa-driver-0.9.0_beta10.ebuild
Status: RESOLVED DUPLICATE of bug 250
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Mikael Hallendal (hallski) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-20 18:02 UTC by bnl
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bnl 2002-01-20 18:02:49 UTC
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Daniel Robbins <drobbins@gentoo.org>
# Modified <bnl@eecs.berkeley.edu>

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

#virtual/glibc should depend on specific kernel headers
DEPEND="sys-devel/autoconf virtual/glibc"
PROVIDE="virtual/alsa"

#might be good to roll this into Portage at some point.
KV=`readlink /usr/src/linux`
if [ $? -ne 0 ]
then
        echo
        echo "/usr/src/linux symlink does not exist; cannot continue."
        echo
        exit 1
fi
#alsa-driver will compile modules for the kernel pointed to by 
/usr/src/linux
KV=${KV/linux-/}

src_unpack() {
        unpack ${A}
        cd ${S}
        cp configure.in configure.in.orig
        sed -e 's/-m.86//g' configure.in.orig > configure.in
        autoconf
}

src_compile() {
        try ./configure --with-kernel="${ROOT}usr/src/linux-${KV}" 
--with-sequencer=yes --with-oss=yes --with-cards=all
        emake || die
}

src_install () {
        #point this to the kernel headers in the future, not the kernel 
sources
        insinto /usr/include/sound
        cd ${S}/include
        doins asound.h asoundef.h asoundid.h asequencer.h ainstr_*.h
        dodoc INSTALL FAQ
        dodir /lib/modules/${KV}/misc
        cp ${S}/modules/*.o ${D}/lib/modules/${KV}/misc
        insinto /etc/modules.d
        doins ${FILESDIR}/alsa
        #this is the new modular modules system (from Debian) :)
}

pkg_postinst() {
        if [ -e /sbin/update-modules ]
        then
                /sbin/update-modules
        fi
}
Comment 1 Mikael Hallendal (hallski) (RETIRED) gentoo-dev 2002-01-20 18:56:11 UTC

*** This bug has been marked as a duplicate of 250 ***