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