/[gentoo-x86]/media-sound/alsa-firmware/alsa-firmware-1.0.24.1.ebuild
Gentoo

Contents of /media-sound/alsa-firmware/alsa-firmware-1.0.24.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Dec 3 16:10:21 2012 UTC (23 months, 3 weeks ago) by ssuominen
Branch: MAIN
Changes since 1.5: +31 -37 lines
Use virtual/udev instead of sys-fs/udev wrt #444398

(Portage version: 2.2.0_alpha144/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-firmware/alsa-firmware-1.0.24.1.ebuild,v 1.5 2011/12/29 21:34:09 halcy0n Exp $
4
5 EAPI=5
6 inherit udev
7
8 DESCRIPTION="Advanced Linux Sound Architecture firmware"
9 HOMEPAGE="http://www.alsa-project.org/"
10 SRC_URI="mirror://alsaproject/firmware/${P}.tar.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ppc64 x86"
15
16 ECHOAUDIO_CARDS="alsa_cards_darla20 alsa_cards_gina20
17 alsa_cards_layla20 alsa_cards_darla24 alsa_cards_gina24
18 alsa_cards_layla24 alsa_cards_mona alsa_cards_mia alsa_cards_indigo
19 alsa_cards_indigoio alsa_cards_echo3g"
20
21 EMU_CARDS="alsa_cards_emu1212 alsa_cards_emu1616 alsa_cards_emu1820
22 alsa_cards_emu10k1"
23
24 IUSE="alsa_cards_pcxhr alsa_cards_vx222 alsa_cards_usb-usx2y
25 alsa_cards_hdsp alsa_cards_hdspm alsa_cards_mixart alsa_cards_asihpi
26 alsa_cards_sb16 alsa_cards_korg1212 alsa_cards_maestro3 alsa_cards_emi26
27 alsa_cards_ymfpci alsa_cards_wavefront alsa_cards_msnd-pinnacle
28 alsa_cards_aica ${ECHOAUDIO_CARDS} ${EMU_CARDS}"
29
30 DEPEND=""
31 RDEPEND="alsa_cards_usb-usx2y? ( sys-apps/fxload )
32 alsa_cards_hdsp? ( media-sound/alsa-tools )
33 alsa_cards_hdspm? ( media-sound/alsa-tools )
34 alsa_cards_mixart? ( || ( virtual/udev media-sound/alsa-tools ) )
35 alsa_cards_vx222? ( || ( virtual/udev media-sound/alsa-tools ) )
36 alsa_cards_pcxhr? ( || ( virtual/udev media-sound/alsa-tools ) )"
37
38 DOCS="README"
39
40 src_configure() {
41 econf --with-hotplug-dir=/lib/firmware
42 }
43
44 src_install() {
45 default
46
47 use alsa_cards_pcxhr || rm -rf "${ED}"/usr/share/alsa/firmware/pcxhrloader "${ED}"/lib/firmware/pcxhr
48 use alsa_cards_vx222 || rm -rf "${ED}"/usr/share/alsa/firmware/vxloader "${ED}"/lib/firmware/vx
49 use alsa_cards_usb-usx2y || rm -rf "${ED}"/usr/share/alsa/firmware/usx2yloader "${ED}"/lib/firmware/vx
50 use alsa_cards_mixart || rm -rf "${ED}"/usr/share/alsa/firmware/mixartloader "${ED}"/lib/firmware/mixart
51 use alsa_cards_hdsp || use alsa_cards_hdspm || rm -rf "${ED}"/usr/share/alsa/firmware/hdsploader
52 use alsa_cards_asihpi || rm -rf "${ED}"/lib/firmware/asihpi
53 use alsa_cards_sb16 || rm -rf "${ED}"/lib/firmware/sb16
54 use alsa_cards_korg1212 || rm -rf "${ED}"/lib/firmware/korg
55 use alsa_cards_maestro3 || rm -rf "${ED}"/lib/firmware/ess
56 use alsa_cards_emi26 || rm -rf "${ED}"/lib/firmware/emagic
57 use alsa_cards_ymfpci || rm -rf "${ED}"/lib/firmware/yamaha
58 use alsa_cards_wavefront || rm -rf "${ED}"/lib/firmware/wavefront
59 use alsa_cards_msnd-pinnacle || rm -rf "${ED}"/lib/firmware/turtlebeach
60 use alsa_cards_aica || rm -rf "${ED}"/lib/firmware/aica_firmware.bin
61
62 local ea="no"
63 for card in ${ECHOAUDIO_CARDS}; do
64 use ${card} && ea="yes" && break
65 done
66
67 local emu="no"
68 for card in ${EMU_CARDS}; do
69 use ${card} && emu="yes" && break
70 done
71
72 [[ ${ea} == "no" ]] && rm -rf "${ED}"/lib/firmware/ea
73 [[ ${emu} == "no" ]] && rm -rf "${ED}"/lib/firmware/emu
74
75 use alsa_cards_usb-usx2y && udev_dorules "${FILESDIR}"/52-usx2yaudio.rules
76 }

  ViewVC Help
Powered by ViewVC 1.1.20