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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/media-libs/alsa-lib/alsa-lib-0.9.0.1_beta10.ebuild,v 1.3 2002/07/11 06:30:38 drobbins Exp $
######################## Begin version munge #########################
#This alsa version appends a alphabetic character to the beta version.
#Portage doesn't seem to play well with this type of tarball versioning
#Rather than ignore this in the ebuild version, I have encoded the
#alphabetic beta suffix as an extra number suffix on the main version,
#i.e., alsa-lib-0.9.0beta10a --> alsa-lib-0.9.0.1_beta10
#If subsequent alsa-0.9.0beta's are released, this ebuild should be
#version independent, i.e alsa-lib-0.9.0beta10b --> alsa-lib-0.9.0.2_beta10
#just requires a copy of this ebuild to the new name. If alsa releases
#version 1.0, this silliness can end.
#This is probably overkill, but it was fun :)
#Transform P to match tarball version
#Grab the last revision number,
#"bs" is short for "beta suffix", not what you're thinking :)
bs=${PV%_beta*} #wack off _beta*
t=${bs##*.} #wack off first three numbers, save this for later
#Transform to ASCII octal number of tarball beta revision suffix
let "a=141" #The octal number for ASCII lowercase "a"
let "bs=$t+$a-1"
bs=$( echo -e "\\$bs" ) #convert to character
MYPV="${PV/.${t}_beta/beta}${bs}"
MYP="${PN}-${MYPV}"
######################## End version Munge ##########################
S=${WORKDIR}/${MYP}
DESCRIPTION="Advanced Linux Sound Architecture Library"
SRC_URI="ftp://ftp.alsa-project.org/pub/lib/${MYP}.tar.bz2"
HOMEPAGE="http://www.alsa-project.org/"
DEPEND="virtual/glibc
=media-sound/alsa-driver-0.9.0_beta10"
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
|| die "./configure failed"
emake || die "Parallel Make Failed"
}
src_install() {
make DESTDIR=${D} install || die "Installation Failed"
#This alsa version does not provide libasound.so.1
#Without this library just about everything even remotely
#linked to previous versions of alsa-lib will break.
#Fortunately, libasound.so.2 seems to be backwards
#compatible with libasound.so.2 and a simple link
#fixes the problem (fingers crossed)
dosym /usr/lib/libasound.so.2 /usr/lib/libasound.so.1
dodoc ChangeLog COPYING TODO
}
|