# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libmikmod/libmikmod-3.1.11.ebuild,v 1.5 2004/05/14 04:09:51 geoman Exp $ inherit gnuconfig flag-o-matic 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="x86 ~amd64 hppa sparc mips ~alpha ia64" 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() { filter-flags -Os local myconf myconf="--enable-af" # include AudioFile driver use esd && myconf="${myconf} --enable-esd" use alsa && myconf="${myconf} --enable-alsa" use oss && myconf="${myconf} --enable-oss" # alpha, amd64 and ia64 (at least) need gnuconfig_update gnuconfig_update econf ${myconf} || die emake || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS NEWS README TODO dohtml docs/*.html }