| 1 | # Copyright 1999-2012 Gentoo Foundation |
1 | # Copyright 1999-2012 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/Attic/sdl-mixer-1.2.12.ebuild,v 1.11 2012/04/17 14:46:13 mr_bones_ Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-mixer/Attic/sdl-mixer-1.2.12.ebuild,v 1.12 2012/04/17 21:15:44 mr_bones_ Exp $ |
| 4 | |
4 | |
| 5 | EAPI=4 |
5 | EAPI=4 |
| 6 | inherit eutils |
6 | inherit eutils |
| 7 | |
7 | |
| 8 | MY_P=${P/sdl-/SDL_} |
8 | MY_P=${P/sdl-/SDL_} |
| … | |
… | |
| 12 | |
12 | |
| 13 | LICENSE="ZLIB" |
13 | LICENSE="ZLIB" |
| 14 | SLOT="0" |
14 | SLOT="0" |
| 15 | KEYWORDS="~alpha amd64 arm hppa ~mips ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" |
15 | KEYWORDS="~alpha amd64 arm hppa ~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 fluidsynth mad midi mikmod modplug mp3 playtools static-libs timidity vorbis +wav" |
16 | IUSE="flac fluidsynth mad midi mikmod modplug mp3 playtools static-libs timidity vorbis +wav" |
|
|
17 | REQUIRED_USE=" |
| 17 | REQUIRED_USE="midi? ( || ( timidity fluidsynth ) )" |
18 | midi? ( || ( timidity fluidsynth ) ) |
|
|
19 | timidity? ( midi ) |
|
|
20 | fluidsynth? ( midi ) |
|
|
21 | " |
| 18 | |
22 | |
| 19 | DEPEND=">=media-libs/libsdl-1.2.10 |
23 | DEPEND=">=media-libs/libsdl-1.2.10 |
| 20 | flac? ( media-libs/flac ) |
24 | flac? ( media-libs/flac ) |
| 21 | midi? ( |
25 | midi? ( |
| 22 | fluidsynth? ( media-sound/fluidsynth ) |
26 | fluidsynth? ( media-sound/fluidsynth ) |
| … | |
… | |
| 36 | -e '/link.*play/s/-o/$(LDFLAGS) -o/' \ |
40 | -e '/link.*play/s/-o/$(LDFLAGS) -o/' \ |
| 37 | Makefile.in || die |
41 | Makefile.in || die |
| 38 | } |
42 | } |
| 39 | |
43 | |
| 40 | src_configure() { |
44 | src_configure() { |
| 41 | local myconf |
|
|
| 42 | |
|
|
| 43 | if use midi; then |
|
|
| 44 | myconf=$(use_enable timidity music-timidity-midi) \ |
45 | local myconf=$(use_enable timidity music-timidity-midi) \ |
| 45 | $(use_enable fluidsynth music-fluidsynth-midi) |
46 | $(use_enable fluidsynth music-fluidsynth-midi) |
| 46 | fi |
|
|
| 47 | |
47 | |
| 48 | econf \ |
48 | econf \ |
| 49 | --disable-dependency-tracking \ |
49 | --disable-dependency-tracking \ |
| 50 | --disable-music-flac-shared \ |
50 | --disable-music-flac-shared \ |
| 51 | --disable-music-fluidsynth-shared \ |
51 | --disable-music-fluidsynth-shared \ |