/[gentoo-x86]/media-libs/sdl-mixer/sdl-mixer-1.2.11-r1.ebuild
Gentoo

Contents of /media-libs/sdl-mixer/sdl-mixer-1.2.11-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Sat Jul 30 17:03:27 2011 UTC (3 years, 2 months ago) by mr_bones_
Branch: MAIN
Changes since 1.8: +6 -2 lines
add multilib patch from Nathan Phillip (bug #376717

(Portage version: 2.1.10.3/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/sdl-mixer-1.2.11-r1.ebuild,v 1.8 2010/07/27 05:25:15 mr_bones_ Exp $
4
5 EAPI=2
6 inherit eutils
7
8 MY_P=${P/sdl-/SDL_}
9 DESCRIPTION="Simple Direct Media Layer Mixer Library"
10 HOMEPAGE="http://www.libsdl.org/projects/SDL_mixer/"
11 SRC_URI="http://www.libsdl.org/projects/SDL_mixer/release/${MY_P}.tar.gz"
12
13 LICENSE="LGPL-2.1"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
16 IUSE="flac mad +midi mikmod mp3 static-libs timidity vorbis +wav"
17
18 DEPEND=">=media-libs/libsdl-1.2.10
19 flac? ( media-libs/flac )
20 timidity? ( media-sound/timidity++ )
21 mad? ( media-libs/libmad )
22 !mad? ( mp3? ( >=media-libs/smpeg-0.4.4-r1 ) )
23 vorbis? ( >=media-libs/libvorbis-1.0_beta4 media-libs/libogg )
24 mikmod? ( >=media-libs/libmikmod-3.1.10 )"
25
26 S=${WORKDIR}/${MY_P}
27
28 src_prepare() {
29 epatch "${FILESDIR}"/${P}-multilib.patch
30 }
31
32 src_configure() {
33 econf \
34 --disable-dependency-tracking \
35 --disable-music-mod-shared \
36 --disable-music-ogg-shared \
37 --disable-music-flac-shared \
38 --disable-music-mp3-shared \
39 $(use_enable wav music-wave) \
40 $(use_enable midi music-midi) \
41 $(use_enable timidity music-timidity-midi) \
42 $(use_enable mikmod music-mod) \
43 $(use_enable vorbis music-ogg) \
44 $(use_enable flac music-flac) \
45 $(use_enable static-libs static) \
46 $(use mad && echo --disable-music-mp3 || use_enable mp3 music-mp3) \
47 $(use_enable mad music-mp3-mad-gpl)
48 }
49
50 src_install() {
51 emake DESTDIR="${D}" install || die "make install failed"
52 dodoc CHANGES README
53 if ! use static-libs ; then
54 find "${D}" -type f -name '*.la' -exec rm {} + \
55 || die "la removal failed"
56 fi
57 }

  ViewVC Help
Powered by ViewVC 1.1.20