blob: 09cfd2f7feb4b6391b291eb4a07c2a138bf7aff0 (
plain)
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-sound/sdl-sound-1.0.1.ebuild,v 1.10 2005/12/26 12:50:53 lu_zero Exp $
inherit eutils
MY_P="${P/sdl-/SDL_}"
DESCRIPTION="A library that handles the decoding of sound file formats"
HOMEPAGE="http://icculus.org/SDL_sound/"
SRC_URI="http://icculus.org/SDL_sound/downloads/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE="flac mikmod vorbis speex physfs"
DEPEND=">=media-libs/libsdl-1.2
>=media-libs/smpeg-0.4.4-r1
flac? ( media-libs/flac )
mikmod? ( >=media-libs/libmikmod-3.1.9 )
vorbis? ( >=media-libs/libvorbis-1.0_beta4 )
speex? ( media-libs/speex
media-libs/libogg )
physfs? ( dev-games/physfs )"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/gcc331.patch
rm aclocal.m4
# the patch above plus this overkill ripped off the bootstrap scipt from
# the sdl_sound CVS to address bug 31163 until the next release.
aclocal || die "aclocal failed"
libtoolize --automake --copy --force || die "libtoolize failed"
autoheader || die "autoheader failed"
automake --foreign --add-missing --copy || die "automake failed"
autoconf || die "autoconf failed"
}
src_compile() {
econf \
$(use_enable flac) \
$(use_enable mikmod) \
$(use_enable vorbis ogg) \
$(use_enable physfs) \
$(use_enable speex) \
--enable-midi \
|| die
emake || die "emake failed"
}
src_install() {
einstall || die
dodoc CHANGELOG CREDITS README TODO
}
|