blob: ddef6b81141acf919ac54556c381875e4234a288 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.1.11-r1.ebuild,v 1.10 2004/11/13 05:26:33 kito Exp $
inherit gnuconfig flag-o-matic eutils libtool
DESCRIPTION="A library to play a wide range of module formats"
HOMEPAGE="http://mikmod.raphnet.net/"
SRC_URI="http://mikmod.raphnet.net/files/${P}.tar.gz"
LICENSE="|| ( LGPL-2.1 LGPL-2 )"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ~ppc ppc64 sparc x86 ~ppc-macos"
IUSE="oss esd alsa"
DEPEND=">=media-libs/audiofile-0.2.3
alsa? ( >=media-libs/alsa-lib-0.5.9 )
esd? ( >=media-sound/esound-0.2.19 )"
src_compile() {
local myconf
myconf="--enable-af" # include AudioFile driver
myconf="${myconf} $(use_enable esd)"
myconf="${myconf} $(use_enable alsa)"
myconf="${myconf} $(use_enable oss)"
# alpha, amd64 and ia64 (at least) need gnuconfig_update
gnuconfig_update
# patch for 64bit arch defs for amd64/x86_64
use amd64 && epatch ${FILESDIR}/${P}-amd64-archdef.patch
use ppc-macos && elibtoolize
filter-flags -Os
econf ${myconf} || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die
dodoc AUTHORS NEWS README TODO
dohtml docs/*.html
}
|