# Copyright 1999-2005 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.11 2005/04/29 00:11:10 vapier Exp $ inherit 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_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-m4.patch epatch "${FILESDIR}"/${P}-amd64-archdef.patch use ppc-macos && elibtoolize filter-flags -Os } src_compile() { econf \ --enable-af \ $(use_enable esd) \ $(use_enable alsa) \ $(use_enable oss) \ || die emake || die } src_install() { make DESTDIR="${D}" install || die dodoc AUTHORS NEWS README TODO dohtml docs/*.html }