Gentoo Archives: gentoo-commits

From: "Steve Dibb (beandog)" <beandog@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/alsa-driver: ChangeLog alsa-driver-1.0.21.ebuild
Date: Tue, 01 Sep 2009 10:54:18
Message-Id: E1MiVoe-0001ce-FY@stork.gentoo.org
1 beandog 09/09/01 16:02:40
2
3 Modified: ChangeLog
4 Added: alsa-driver-1.0.21.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc40/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.304 media-sound/alsa-driver/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-driver/ChangeLog?rev=1.304&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-driver/ChangeLog?rev=1.304&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-driver/ChangeLog?r1=1.303&r2=1.304
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v
19 retrieving revision 1.303
20 retrieving revision 1.304
21 diff -u -r1.303 -r1.304
22 --- ChangeLog 13 Aug 2009 15:11:32 -0000 1.303
23 +++ ChangeLog 1 Sep 2009 16:02:40 -0000 1.304
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-sound/alsa-driver
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.303 2009/08/13 15:11:32 beandog Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/ChangeLog,v 1.304 2009/09/01 16:02:40 beandog Exp $
29 +
30 +*alsa-driver-1.0.21 (01 Sep 2009)
31 +
32 + 01 Sep 2009; Steve Dibb <beandog@g.o> +alsa-driver-1.0.21.ebuild:
33 + Version bump
34
35 13 Aug 2009; Steve Dibb <beandog@g.o> alsa-driver-9999.ebuild:
36 Add missing cards, bug 269167
37
38
39
40 1.1 media-sound/alsa-driver/alsa-driver-1.0.21.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.21.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.21.ebuild?rev=1.1&content-type=text/plain
44
45 Index: alsa-driver-1.0.21.ebuild
46 ===================================================================
47 # Copyright 1999-2009 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-sound/alsa-driver/alsa-driver-1.0.21.ebuild,v 1.1 2009/09/01 16:02:40 beandog Exp $
50
51 inherit autotools linux-mod flag-o-matic eutils multilib linux-info
52
53 MY_P="${P/_rc/rc}"
54 S="${WORKDIR}/${MY_P}"
55
56 DESCRIPTION="Advanced Linux Sound Architecture kernel modules"
57 HOMEPAGE="http://www.alsa-project.org/"
58
59 if [[ ${MY_P} == ${MY_P/_p*/} ]]; then
60 SRC_URI="mirror://alsaproject/driver/${MY_P}.tar.bz2"
61 else # Gentoo snapshots
62 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
63 fi
64
65 LICENSE="GPL-2"
66 SLOT="0"
67
68 KEYWORDS="~alpha ~amd64 ~mips ~ppc ~ppc64 ~x86"
69 IUSE="oss debug"
70
71 IUSE_CARDS="hrtimer rtctimer hpet pcsp seq-dummy dummy virmidi mtpav mts64 serial-u16550 mpu401
72 loopback portman2x4 ad1848-lib adlib ad1816a ad1848
73 als100 azt2320 cmi8330 cs4231 cs4232 cs4236 dt019x es968 es1688 es18xx
74 gusclassic gusextreme gusmax interwave interwave-stb opl3sa2
75 opti92x-ad1848 opti92x-cs4231 opti93x miro sb8 sb16 sbawe sgalaxy
76 sscape wavefront pc98-cs4232 msnd-pinnacle ad1889 als300 als4000
77 ali5451 atiixp atiixp-modem au8810 au8820 au8830 azt3328 bt87x ca0106
78 cmipci cs4281 cs46xx cs5535audio darla20 gina20 layla20 darla24 gina24
79 layla24 mona mia echo3g indigo indigoio indigodj emu10k1 emu10k1x
80 ens1370 ens1371 es1938 es1968 fm801 fm801-tea575x hda-intel hdsp hdspm
81 ice1712 ice1724 intel8x0 intel8x0m korg1212 maestro3 mixart nm256
82 pcxhr riptide rme32 rme96 rme9652 sonicvibes trident via82xx
83 via82xx-modem vx222 ymfpci pdplus asihpi powermac aoa
84 aoa-fabric-layout aoa-onyx aoa-tas aoa-toonie aoa-soundbus
85 aoa-soundbus-i2s sa11xx-uda1341 armaaci s3c2410 pxa2xx-i2sound au1x00
86 usb-audio usb-usx2y usb-us122l vxpocket pdaudiocf sun-amd7930 sun-cs4231 sun-dbri
87 harmony soc at91-soc at91-soc-eti-b1-wm8731 pxa2xx-soc
88 pxa2xx-soc-corgi pxa2xx-soc-spitz pxa2xx-soc-poodle pxa2xx-soc-tosa hifier
89 ml403-ac97cr oxygen pxa2xx-soc-e800 sis7019 virtuoso"
90
91 for iuse_card in ${IUSE_CARDS}; do
92 IUSE="${IUSE} alsa_cards_${iuse_card}"
93 done
94
95 RDEPEND="virtual/modutils"
96 DEPEND="${RDEPEND}
97 >=media-sound/alsa-headers-1.0.21
98 virtual/linux-sources
99 sys-apps/debianutils"
100
101 PROVIDE="virtual/alsa"
102
103 pkg_setup() {
104 # By default, drivers for all supported cards will be compiled.
105 # If you want to only compile for specific card(s), set ALSA_CARDS
106 # environment to a space-separated list of drivers that you want to build.
107 # For example:
108 #
109 # env ALSA_CARDS='emu10k1 intel8x0 ens1370' emerge alsa-driver
110 #
111 ALSA_CARDS=${ALSA_CARDS:-${IUSE_ALSA_CARDS}}
112
113 local PNP_DRIVERS="interwave interwave-stb"
114 local PNP_ERROR="Some of the drivers you selected require PnP support in your kernel (${PNP_DRIVERS}). Either enable PnP in your kernel or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf."
115
116 local ISA_DRIVERS="cs4232 msnd-pinnacle adlib ad1816a ad1848 als100 azt2320
117 cmi8330 cs4231 cs4236 dt019x es968 es1688 es18xx gusclassic gusextreme gusmax
118 interwave interwave-stb opl3sa2 opti92x-ad1848 opti92x-cs4231 opti93x miro sb8
119 sb16 sbawe sb16_csp sgalaxy sscape wavefront"
120 local ISA_ERROR="Some of the drivers you selected require ISA support in your kernel ($(echo $ISA_DRIVERS)). Either enable ISA in your kernel or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf."
121
122 local FW_DRIVERS="darla20 gina20 layla20 darla24 gina24 layla24 mona mia echo3g indigo
123 indigoio indigodj emu10k1 korg1212 maestro3 riptide ymfpci asihpi"
124 local FW_LOADER_ERROR="Some of the drivers you selected require 'Userspace firmware loading support' in your kernel (${FW_DRIVERS}). Either enable that feature or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf."
125
126 local PARPORT_DRIVERS="portman2x4"
127 local PARPORT_ERROR="Some if the drivers you selected require Parallel Port support (${PARPORT_DRIVERS}). Either enable that feature or trim which drivers get compiled using ALSA_CARDS in /etc/make.conf."
128
129 local TMP_ALSA_CARDS
130 local CHECK_PNP
131 local CHECK_ISA
132 local CHECK_FW
133 local CHECK_PARPORT
134 for card in ${ALSA_CARDS}; do
135 if has alsa_cards_${card} ${IUSE} && use alsa_cards_${card}; then
136 TMP_ALSA_CARDS="${TMP_ALSA_CARDS} ${card}"
137 has ${card} ${PNP_DRIVERS} && CHECK_PNP="PNP"
138 has ${card} ${ISA_DRIVERS} && CHECK_ISA="ISA"
139 has ${card} ${FW_DRIVERS} && CHECK_FW="FW_LOADER"
140 has ${card} ${PARPORT_DRIVERS} && CHECK_PARPORT="PARPORT"
141 fi
142 done
143 ALSA_CARDS="${TMP_ALSA_CARDS}"
144
145 local CONFIG_CHECK="!SND SOUND ${CHECK_PNP} ${CHECK_ISA} ${CHECK_FW} ${CHECK_PARPORT}"
146 local SND_ERROR="ALSA is already compiled into the kernel. This is the recommended configuration, don't emerge alsa-driver."
147 local SOUND_ERROR="Your kernel doesn't have sound support enabled."
148 local SOUND_PRIME_ERROR="Your kernel is configured to use the deprecated OSS drivers. Please disable them and re-emerge alsa-driver."
149
150 linux-mod_pkg_setup
151
152 if [[ ${PROFILE_ARCH} == "sparc64" ]] ; then
153 export CBUILD=${CBUILD-${CHOST}}
154 export CHOST="sparc64-unknown-linux-gnu"
155 fi
156 }
157
158 src_unpack() {
159 unpack ${A}
160
161 cd "${S}"
162
163 convert_to_m "${S}/Makefile"
164 sed -i -e 's:\(.*depmod\):#\1:' "${S}/Makefile"
165 eautoconf
166 }
167
168 src_compile() {
169 local myABI=${ABI:-${DEFAULT_ABI}}
170
171 # Should fix bug #46901
172 is-flag "-malign-double" && filter-flags "-fomit-frame-pointer"
173 append-flags "-I${KV_DIR}/arch/$(tc-arch-kernel)/include"
174
175 econf $(use_with oss) \
176 $(use_with oss pcm-oss-plugins) \
177 $(use_with debug debug full) \
178 --with-kernel="${KV_DIR}" \
179 --with-build="${KV_OUT_DIR}" \
180 --with-redhat=no \
181 --with-suse=no \
182 --with-isapnp=auto \
183 --with-sequencer \
184 --with-cards="${ALSA_CARDS}" \
185 --with-card-options=all || die "econf failed"
186
187 # linux-mod_src_compile doesn't work well with alsa
188
189 ARCH=$(tc-arch-kernel)
190 ABI=${KERNEL_ABI}
191 emake LDFLAGS="$(raw-ldflags)" HOSTCC="$(tc-getBUILD_CC)" CC="$(tc-getCC)" || die "Make Failed"
192 ARCH=$(tc-arch)
193 ABI=${myABI}
194 }
195
196 src_install() {
197 emake DESTDIR="${D}" install-modules || die "make install failed"
198
199 dodoc CARDS-STATUS FAQ README WARNING TODO SUPPORTED_KERNELS
200
201 if kernel_is 2 6; then
202 # mv the drivers somewhere they won't be killed by the kernel's make modules_install
203 mv "${D}/lib/modules/${KV_FULL}/kernel/sound" "${D}/lib/modules/${KV_FULL}/${PN}"
204 rmdir "${D}/lib/modules/${KV_FULL}/kernel" &> /dev/null
205 fi
206 }
207
208 pkg_postinst() {
209 elog
210 elog "Remember that all mixer channels will be MUTED by default."
211 elog "Use the 'alsamixer' program to unmute them, then save your"
212 elog "mixer settings with /etc/init.d/alsasound save"
213 elog
214 elog "If you experience problems, please try building the in-kernel"
215 elog "ALSA drivers instead. This ebuild is unsupported."
216 elog
217
218 linux-mod_pkg_postinst
219
220 if kernel_is 2 6 && [ -e "${ROOT}/lib/modules/${KV_FULL}/kernel/sound" ]; then
221 # Cleanup if they had older alsa installed
222 for file in $(find "${ROOT}/lib/modules/${KV_FULL}/${PN}" -type f); do
223 rm -f ${file//${KV_FULL}\/${PN}/${KV_FULL}\/kernel\/sound}
224 done
225
226 find "${ROOT}/lib/modules/${KV_FULL}/kernel/sound" -type d -print0 | xargs --null rmdir
227 fi
228 }